{"matchId":"28463290","creationMatch":"exact_match","runtimeMatch":"exact_match","verifiedAt":"2026-05-01T12:24:56Z","creationBytecode":{"onchainBytecode":"0x61014060405230608052348015610014575f5ffd5b503060a0524660c052606080610062604080518082018252600d81526c11195c1bdcda5d15d85b1b195d609a1b602080830191909152825180840190935260018352603160f81b9083015291565b815160209283012081519183019190912060e0829052610100819052604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f8152938401929092529082015246606082015230608082015260a0902061012052506100cf90506100d4565b610139565b63409feecd19805460018116156100f25763f92ee8a95f526004601cfd5b6001600160401b03808260011c14610134578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60805160a05160c05160e05161010051610120516135ec6101875f395f61225b01525f61231501525f6122ef01525f61229f01525f61227c01525f8181611c650152611d9b01526135ec5ff3fe6080604052600436106101a4575f3560e01c80639700d107116100e0578063c987336c11610089578063e63f952f11610063578063e63f952f14610487578063e8c8bf64146104a6578063e9e37136146104c5578063f2fde38b146104e4576101ab565b8063c987336c14610435578063d8cb0d6614610454578063e30c397814610473576101ab565b8063b9ac71d6116100ba578063b9ac71d6146103e3578063c45a015514610402578063c4d66de814610416576101ab565b80639700d1071461039c578063af640d0f146103bb578063affed0e0146103cf576101ab565b806352d1902d1161014d5780637ae26773116101275780637ae26773146103095780638456cb591461032857806384b0196e1461033c5780638da5cb5b14610363576101ab565b806352d1902d146102bf57806354d1f13d146102e15780635c975abb146102f5576101ab565b80633f4ba83a1161017e5780633f4ba83a1461027957806344004cc11461028d5780634f1ef286146102ac576101ab565b80631626ba7e146101e457806324017fae146102395780632a45cacf1461025a576101ab565b366101ab57005b5f3560e01c63bc197c81811463f23a6e6182141763150b7a02821417156101d657806020526020603cf35b50633c10b94e5f526004601cfd5b3480156101ef575f5ffd5b506102036101fe366004612b9e565b610505565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020015b60405180910390f35b348015610244575f5ffd5b50610258610253366004612c07565b6105a1565b005b348015610265575f5ffd5b50610258610274366004612c31565b610638565b348015610284575f5ffd5b50610258610808565b348015610298575f5ffd5b506102586102a7366004612c68565b610977565b6102586102ba366004612ca6565b610b0a565b3480156102ca575f5ffd5b506102d3610bbf565b604051908152602001610230565b3480156102ec575f5ffd5b50610258610bed565b348015610300575f5ffd5b506102d3610c2e565b348015610314575f5ffd5b50610258610323366004612c31565b610c62565b348015610333575f5ffd5b50610258610de7565b348015610347575f5ffd5b50610350610e52565b6040516102309796959493929190612d2a565b34801561036e575f5ffd5b50610377610efa565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610230565b3480156103a7575f5ffd5b506102586103b6366004612b9e565b610f27565b3480156103c6575f5ffd5b506102d3610f32565b3480156103da575f5ffd5b506102d3610f50565b3480156103ee575f5ffd5b506102d36103fd366004612de9565b610f7d565b34801561040d575f5ffd5b50610377610fbb565b348015610421575f5ffd5b50610258610430366004612de9565b610fe0565b348015610440575f5ffd5b5061025861044f366004612ca6565b611074565b34801561045f575f5ffd5b5061025861046e366004612e45565b6110b8565b34801561047e575f5ffd5b506103776112ba565b348015610492575f5ffd5b506102586104a1366004612de9565b6112e7565b3480156104b1575f5ffd5b506102586104c0366004612ed9565b61136d565b3480156104d0575f5ffd5b506102586104df366004612de9565b611931565b3480156104ef575f5ffd5b506102586104fe366004612de9565b611a84565b565b5f5f6105118484611ac9565b905073ffffffffffffffffffffffffffffffffffffffff811661053d57610536610efa565b905061057e565b61054681610f7d565b421061057e576040517f3d4b014500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80608052602060405101604052610596858585611b01565b9150505b9392505050565b3330146105da576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6105e48282611b67565b8173ffffffffffffffffffffffffffffffffffffffff167fcacba9f642804cfed98e2bb1d1c05bc4c78b35a209cdffdb4674b3363bafd92b8260405161062c91815260200190565b60405180910390a25050565b610640610c2e565b5f03610678576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610680610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106c8573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106ec9190612f12565b6106f4610c2e565b6106fe9190612f56565b4211610736576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61073e611ba3565b6040517fa22cb46500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82811660048301525f602483015283169063a22cb465906044015f604051808303815f87803b1580156107aa575f5ffd5b505af11580156107bc573d5f5f3e3d5ffd5b505060405173ffffffffffffffffffffffffffffffffffffffff8085169350851691507ff9dfa223fca66e1e19e96ad420898db0b0ada933c1d0c0953b3d5a44176f495c905f90a35050565b610810610c2e565b5f03610848576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610850610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610898573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108bc9190612f12565b6108c4610c2e565b6108ce9190612f56565b4211610906576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61090e611ba3565b5f61093a60017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99612f69565b5f81556040514281529091507f9dd715fed52c25e642f97653bb4c4339ad98fe6d6e130348be82ae5d86383a8c906020015b60405180910390a150565b61097f610c2e565b5f036109b7576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109bf610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a07573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a2b9190612f12565b610a33610c2e565b610a3d9190612f56565b4211610a75576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a7d611ba3565b610a9e73ffffffffffffffffffffffffffffffffffffffff84168383611c0f565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f2fbb3e8dc2807d6a61feb98fc2120153f77b2c0d25ef6272e1756935dd62c84783604051610afd91815260200190565b60405180910390a3505050565b610b12611c62565b610b1b83611c91565b8260601b60601c92503d5f526352d1902d6001527f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80602060016004601d885afa5114610b70576355299b496001526004601dfd5b837fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b5f38a28390558015610bba57604051818382375f388383875af4610bb8573d5f823e3d81fd5b505b505050565b5f610bc8611d98565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b333014610c26576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610503611dc7565b5f80610c5b60017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99612f69565b5492915050565b610c6a610c2e565b5f03610ca2576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610caa610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610cf2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d169190612f12565b610d1e610c2e565b610d289190612f56565b4211610d60576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d68611ba3565b610d8973ffffffffffffffffffffffffffffffffffffffff8316825f611e6b565b8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8da578e4cb2672c4986388e504a6f639391986195c077e5db9f48e04c97a501b60405160405180910390a35050565b610def611ba3565b5f610e1b60017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99612f69565b428082556040519081529091507f32fb7c9891bc4f963c7de9f1186d2a7755c7d6e9f4604dabe1d8bb3027c2f49e9060200161096c565b7f0f000000000000000000000000000000000000000000000000000000000000006060805f808083610ee8604080518082018252600d81527f4465706f73697457616c6c6574000000000000000000000000000000000000006020808301919091528251808401909352600183527f31000000000000000000000000000000000000000000000000000000000000009083015291565b97989097965046955030945091925090565b5f80610c5b60017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b612f69565b610bba838383611eb4565b5f80610f3d306120ad565b80602001905181019061059a9190612f7c565b5f80610c5b60017f94f7bc44c1694f5bd8c155ad0b7a1459b9ede3ac9b5899315d5f1b0e469b1ee6612f69565b5f80610faa60017f262dd1cbe20a9ecc9fedf7b43d241ce1a18ea01dc95ca2bd68106e58474d85db612f69565b5f9384526020525050604090205490565b5f80610fc6306120ad565b806020019051810190610fd99190612f7c565b5092915050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf60113280546003825580156110315760018160011c14303b106110285763f92ee8a95f526004601cfd5b818160ff1b1b91505b5061103b826120fa565b8015611070576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b5050565b3330146110ad576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610bba838383610b0a565b6110c0610c2e565b5f036110f8576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611100610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611148573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061116c9190612f12565b611174610c2e565b61117e9190612f56565b42116111b6576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111be611ba3565b6040517f2eb2c2d600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff871690632eb2c2d69061121a90309089908990899089908990600401612ff1565b5f604051808303815f87803b158015611231575f5ffd5b505af1158015611243573d5f5f3e3d5ffd5b505050508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fb790ced15183f79ade456fb39c4fc443005b36f92a7318ef6e0e9f18dc05b040868686866040516112aa949392919061306d565b60405180910390a3505050505050565b5f80610c5b60017fa75cd6676e8c6931a1d5524e251b69c2d29aba2b846aed8220a29ba688a14770612f69565b333014611320576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61132a815f611b67565b60405173ffffffffffffffffffffffffffffffffffffffff8216907feac85989fadc30dfe2712c2308dcfecb3f9af1d15422056fc5a98ed1b49ca209905f90a250565b611375610fbb565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146113d9576040517f0c6d42ae00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6113e7606085018561309e565b905011611420576040517fc2e5347d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3061142e6020850185612de9565b73ffffffffffffffffffffffffffffffffffffffff161461147b576040517f23455ba100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f806114a860017f94f7bc44c1694f5bd8c155ad0b7a1459b9ede3ac9b5899315d5f1b0e469b1ee6612f69565b805460018101825592509050602085013582146114f1576040517f756688fe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b846040013542111561152f576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f61154161153c876131ca565b6121bf565b90505f61154d82612259565b90507f1626ba7e0000000000000000000000000000000000000000000000000000000061157b828888610505565b7fffffffff0000000000000000000000000000000000000000000000000000000016146115d4576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f806115e08888611ac9565b73ffffffffffffffffffffffffffffffffffffffff16141590505f5b61160960608a018a61309e565b90508110156118fc5781158061167157503061162860608b018b61309e565b83818110611638576116386133bb565b905060200281019061164a91906133e8565b611658906020810190612de9565b73ffffffffffffffffffffffffffffffffffffffff1614155b6116a7576040517fde4e67c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f806116b660608c018c61309e565b848181106116c6576116c66133bb565b90506020028101906116d891906133e8565b6116e6906020810190612de9565b73ffffffffffffffffffffffffffffffffffffffff1661170960608d018d61309e565b85818110611719576117196133bb565b905060200281019061172b91906133e8565b6020013561173c60608e018e61309e565b8681811061174c5761174c6133bb565b905060200281019061175e91906133e8565b61176c906040810190613424565b60405161177a929190613485565b5f6040518083038185875af1925050503d805f81146117b4576040519150601f19603f3d011682016040523d82523d5f602084013e6117b9565b606091505b5091509150816117f5576040517f3204506f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61180260608c018c61309e565b84818110611812576118126133bb565b905060200281019061182491906133e8565b611832906020810190612de9565b73ffffffffffffffffffffffffffffffffffffffff167ffde9c64d8b0b21fe439285c271603188269ad7c561364f724d48e9846120d7b661187660608e018e61309e565b86818110611886576118866133bb565b905060200281019061189891906133e8565b602001356118a960608f018f61309e565b878181106118b9576118b96133bb565b90506020028101906118cb91906133e8565b6118d9906040810190613424565b856040516118ea9493929190613494565b60405180910390a250506001016115fc565b60405186907fe9cc9bbe7de1cbb097a6357ca3182909488efe8d793e25665befc064a02d10a7905f90a2505050505050505050565b611939610c2e565b5f03611971576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611979610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156119c1573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906119e59190612f12565b6119ed610c2e565b6119f79190612f56565b4211611a2f576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611a37611ba3565b611a41815f611b67565b60405173ffffffffffffffffffffffffffffffffffffffff8216907f61be9e006b8f5c6e0e05905bb6a35efabbb3343c37d33552f634bd1d20f64141905f90a250565b333014611abd576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611ac68161236f565b50565b5f7f64926492649264926492649264926492649264926492649264926492649264926020830384013503611afb575081355b92915050565b5f81611b3e5761773961ffff831904028403611b3e57507f773900010000000000000000000000000000000000000000000000000000000061059a565b5f611b5285611b4d8686612408565b612456565b155f03631626ba7e1760e01b95945050505050565b5f611b9360017f262dd1cbe20a9ecc9fedf7b43d241ce1a18ea01dc95ca2bd68106e58474d85db612f69565b5f93845260205250604090912055565b611bab610efa565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610503576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81601452806034526fa9059cbb0000000000000000000000005f5260205f604460105f875af18060015f511416611c5857803d853b151710611c58576390b8ec185f526004601cfd5b505f603452505050565b307f0000000000000000000000000000000000000000000000000000000000000000036105035761050361248c565b333014611cca576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611cd2610fbb565b6040517f5325ad3d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301529190911690635325ad3d90602401602060405180830381865afa158015611d3e573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611d6291906134f4565b611ac6576040517f68155f9a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b307f0000000000000000000000000000000000000000000000000000000000000000146105035761050361248c565b5f611dd06112ba565b905073ffffffffffffffffffffffffffffffffffffffff8116611e1f576040517f7c63ac3600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611e285f612499565b60405173ffffffffffffffffffffffffffffffffffffffff8216907ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92905f90a250565b81601452806034526f095ea7b30000000000000000000000005f5260205f604460105f875af18060015f511416611c5857803d853b151710611c5857633e3f8f735f526004601cfd5b82421115611eee576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611ef76112ba565b905073ffffffffffffffffffffffffffffffffffffffff8116611f46576040517f7c63ac3600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604080517f8ea7943d1925a9cf7a830334250df14108b2abed2aa45d82a4dd473c4eef5e58602082015273ffffffffffffffffffffffffffffffffffffffff831691810191909152606081018590525f906080016040516020818303038152906040528051906020012090505f611fbc82612259565b90508273ffffffffffffffffffffffffffffffffffffffff16611fe08287876124cc565b73ffffffffffffffffffffffffffffffffffffffff161461202d576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f612036610efa565b90506120415f612499565b61204a8461256d565b8373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f38bafbf020d44b4ca47fda166836e6a0e0a15a9d6fec166834c0125e193830ff60405160405180910390a350505050505050565b60405164ffffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3833b0116808252602090810190603d908301843c60408101815101604052919050565b73ffffffffffffffffffffffffffffffffffffffff8116612147576040517f49e27cff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f61217360017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b612f69565b82815560405190915073ffffffffffffffffffffffffffffffffffffffff8316905f907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35050565b5f6040518060a00160405280606e8152602001613549606e913980519060200120825f0151836020015184604001516121fb86606001516125f4565b60408051602081019690965273ffffffffffffffffffffffffffffffffffffffff909416938501939093526060840191909152608083015260a082015260c0015b604051602081830303815290604052805190602001209050919050565b7f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000030147f000000000000000000000000000000000000000000000000000000000000000046141661234c5750604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81527f000000000000000000000000000000000000000000000000000000000000000060208201527f00000000000000000000000000000000000000000000000000000000000000009181019190915246606082015230608082015260a090205b6719010000000000005f5280601a5281603a52604260182090505f603a52919050565b73ffffffffffffffffffffffffffffffffffffffff81166123bc576040517f49e27cff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6123c581612499565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d905f90a250565b818161649261ffff30801c1904028183017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001350361244f57506040810135016020810190355b9250929050565b5f6124628484846126be565b8061247357506124738484846126d7565b806124845750612484848484612946565b949350505050565b639f03a0265f526004601cfd5b5f6124c560017fa75cd6676e8c6931a1d5524e251b69c2d29aba2b846aed8220a29ba688a14770612f69565b9190915550565b5f60405182604081146124e757604181146125275750612558565b60208581013560ff81901c601b0190915285356040527f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16606052612538565b60408501355f1a6020526040856040375b50845f526020600160805f60015afa5191505f606052806040523d612565575b638baa579f5f526004601cfd5b509392505050565b5f612576610efa565b90505f6125a460017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b612f69565b83815560405190915073ffffffffffffffffffffffffffffffffffffffff80851691908416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f825167ffffffffffffffff81111561261057612610613102565b604051908082528060200260200182016040528015612639578160200160208202803683370190505b5090505f5b835181101561268e5761266984828151811061265c5761265c6133bb565b60200260200101516129b1565b82828151811061267b5761267b6133bb565b602090810291909101015260010161263e565b50806040516020016126a09190613513565b60405160208183030381529060405280519060200120915050919050565b5f6126c7612a22565b1561059a57612484848484612a5e565b5f308015612743575f5f5f5f5f6126ec610e52565b5060408051865160209788012081830152855195909601949094206060860152608085019290925273ffffffffffffffffffffffffffffffffffffffff1660a084015260c083015260e08201905296505050505050505b6040516002840385013560f01c8060420180860387016119015f52604081602037821582881017896042601e201817156127ae575f94507f983e65e5148e570cd828ead231ee759a8d7958721a768f93bc4483ba005c32de8552886020526040852098505050612926565b7f5479706564446174615369676e280000000000000000000000000000000000008452600e84018360408301823760288185019081527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01515f1a602914612846575f6001858301035b6001820191506029828203515f1a148683101161281857508085039450808560408501018337602881830153505b6f07fffffe00000000000001000000000081515f1a1c5b602882515f1a1461288357806512010000000183515f1a1c17905060018201915061285d565b7f20636f6e74656e74732c737472696e67206e616d652c737472696e670000000082527f2076657273696f6e2c75696e7432353620636861696e49642c61646472657373601c8301527f20766572696679696e67436f6e74726163742c627974657333322073616c7429603c830152605c820191508460408401833760408388379084018590038520865260e08620604052600116604201601e20985050909403935b506040528061293b5761293885612259565b94505b610596858585612a5e565b5f3a61059a573a3a526d378edcd5b5b0a24f5342d8c1048560203a3a388461fffffa503a516129a557604051631626ba7e3a528160205260408052454561ffff0117805a10838814171561299657fe5b3a3a6064601c3085fa50506040525b50612484848484612a5e565b805160208083015160408085015180519084012081517f84fa2cf05cd88e992eae77e851af68a4ee278dcff6ef504e487a55b3baadfbe59481019490945273ffffffffffffffffffffffffffffffffffffffff90941690830152606082015260808101919091525f9060a00161223c565b5f612a2b610fbb565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b5f5f612a6960805190565b905073ffffffffffffffffffffffffffffffffffffffff81161580159061059657508073ffffffffffffffffffffffffffffffffffffffff16612aad868686612acd565b73ffffffffffffffffffffffffffffffffffffffff161495945050505050565b5f6040518260408114612ae85760418114612b285750612565565b60208581013560ff81901c601b0190915285356040527f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16606052612b39565b60408501355f1a6020526040856040375b50845f526020604060805f60015afa505f6060523d60601851915080604052509392505050565b5f5f83601f840112612b70575f5ffd5b50813567ffffffffffffffff811115612b87575f5ffd5b60208301915083602082850101111561244f575f5ffd5b5f5f5f60408486031215612bb0575f5ffd5b83359250602084013567ffffffffffffffff811115612bcd575f5ffd5b612bd986828701612b60565b9497909650939450505050565b73ffffffffffffffffffffffffffffffffffffffff81168114611ac6575f5ffd5b5f5f60408385031215612c18575f5ffd5b8235612c2381612be6565b946020939093013593505050565b5f5f60408385031215612c42575f5ffd5b8235612c4d81612be6565b91506020830135612c5d81612be6565b809150509250929050565b5f5f5f60608486031215612c7a575f5ffd5b8335612c8581612be6565b92506020840135612c9581612be6565b929592945050506040919091013590565b5f5f5f60408486031215612cb8575f5ffd5b8335612cc381612be6565b9250602084013567ffffffffffffffff811115612bcd575f5ffd5b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b7fff000000000000000000000000000000000000000000000000000000000000008816815260e060208201525f612d6460e0830189612cde565b8281036040840152612d768189612cde565b6060840188905273ffffffffffffffffffffffffffffffffffffffff8716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015612dd8578351835260209384019390920191600101612dba565b50909b9a5050505050505050505050565b5f60208284031215612df9575f5ffd5b813561059a81612be6565b5f5f83601f840112612e14575f5ffd5b50813567ffffffffffffffff811115612e2b575f5ffd5b6020830191508360208260051b850101111561244f575f5ffd5b5f5f5f5f5f5f60808789031215612e5a575f5ffd5b8635612e6581612be6565b95506020870135612e7581612be6565b9450604087013567ffffffffffffffff811115612e90575f5ffd5b612e9c89828a01612e04565b909550935050606087013567ffffffffffffffff811115612ebb575f5ffd5b612ec789828a01612e04565b979a9699509497509295939492505050565b5f5f5f60408486031215612eeb575f5ffd5b833567ffffffffffffffff811115612f01575f5ffd5b840160808187031215612cc3575f5ffd5b5f60208284031215612f22575f5ffd5b5051919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b80820180821115611afb57611afb612f29565b81810381811115611afb57611afb612f29565b5f5f60408385031215612f8d575f5ffd5b8251612f9881612be6565b6020939093015192949293505050565b8183525f7f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115612fd8575f5ffd5b8260051b80836020870137939093016020019392505050565b73ffffffffffffffffffffffffffffffffffffffff8716815273ffffffffffffffffffffffffffffffffffffffff8616602082015260a060408201525f61303c60a083018688612fa8565b828103606084015261304f818587612fa8565b83810360809094019390935250505f81526020019695505050505050565b604081525f613080604083018688612fa8565b8281036020840152613093818587612fa8565b979650505050505050565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126130d1575f5ffd5b83018035915067ffffffffffffffff8211156130eb575f5ffd5b6020019150600581901b360382131561244f575f5ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040516080810167ffffffffffffffff8111828210171561315257613152613102565b60405290565b6040516060810167ffffffffffffffff8111828210171561315257613152613102565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156131c2576131c2613102565b604052919050565b5f608082360312156131da575f5ffd5b6131e261312f565b82356131ed81612be6565b81526020838101359082015260408084013590820152606083013567ffffffffffffffff81111561321c575f5ffd5b830136601f82011261322c575f5ffd5b803567ffffffffffffffff81111561324657613246613102565b8060051b6132566020820161317b565b91825260208184018101929081019036841115613271575f5ffd5b6020850192505b838310156133ab57823567ffffffffffffffff811115613296575f5ffd5b85016060368290037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe00112156132ca575f5ffd5b6132d2613158565b60208201356132e081612be6565b815260408201356020820152606082013567ffffffffffffffff811115613305575f5ffd5b60208184010192505036601f83011261331c575f5ffd5b813567ffffffffffffffff81111561333657613336613102565b61336760207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160161317b565b81815236602083860101111561337b575f5ffd5b816020850160208301375f6020838301015280604084015250508084525050602082019150602083019250613278565b6060860152509295945050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f82357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa183360301811261341a575f5ffd5b9190910192915050565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112613457575f5ffd5b83018035915067ffffffffffffffff821115613471575f5ffd5b60200191503681900382131561244f575f5ffd5b818382375f9101908152919050565b84815260606020820152826060820152828460808301375f608084830101525f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f850116820160808382030160408401526130936080820185612cde565b5f60208284031215613504575f5ffd5b8151801515811461059a575f5ffd5b81515f90829060208501835b8281101561353d57815184526020938401939091019060010161351f565b50919594505050505056fe426174636828616464726573732077616c6c65742c75696e74323536206e6f6e63652c75696e7432353620646561646c696e652c43616c6c5b5d2063616c6c732943616c6c2861646472657373207461726765742c75696e743235362076616c75652c6279746573206461746129a2646970667358221220be1e7a1f3704ea0561b079fd27a95bb5471874ad6e2df4c7543ca448cd586c0964736f6c63430008220033","recompiledBytecode":"0x61014060405230608052348015610014575f5ffd5b503060a0524660c052606080610062604080518082018252600d81526c11195c1bdcda5d15d85b1b195d609a1b602080830191909152825180840190935260018352603160f81b9083015291565b815160209283012081519183019190912060e0829052610100819052604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f8152938401929092529082015246606082015230608082015260a0902061012052506100cf90506100d4565b610139565b63409feecd19805460018116156100f25763f92ee8a95f526004601cfd5b6001600160401b03808260011c14610134578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60805160a05160c05160e05161010051610120516135ec6101875f395f61225b01525f61231501525f6122ef01525f61229f01525f61227c01525f8181611c650152611d9b01526135ec5ff3fe6080604052600436106101a4575f3560e01c80639700d107116100e0578063c987336c11610089578063e63f952f11610063578063e63f952f14610487578063e8c8bf64146104a6578063e9e37136146104c5578063f2fde38b146104e4576101ab565b8063c987336c14610435578063d8cb0d6614610454578063e30c397814610473576101ab565b8063b9ac71d6116100ba578063b9ac71d6146103e3578063c45a015514610402578063c4d66de814610416576101ab565b80639700d1071461039c578063af640d0f146103bb578063affed0e0146103cf576101ab565b806352d1902d1161014d5780637ae26773116101275780637ae26773146103095780638456cb591461032857806384b0196e1461033c5780638da5cb5b14610363576101ab565b806352d1902d146102bf57806354d1f13d146102e15780635c975abb146102f5576101ab565b80633f4ba83a1161017e5780633f4ba83a1461027957806344004cc11461028d5780634f1ef286146102ac576101ab565b80631626ba7e146101e457806324017fae146102395780632a45cacf1461025a576101ab565b366101ab57005b5f3560e01c63bc197c81811463f23a6e6182141763150b7a02821417156101d657806020526020603cf35b50633c10b94e5f526004601cfd5b3480156101ef575f5ffd5b506102036101fe366004612b9e565b610505565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020015b60405180910390f35b348015610244575f5ffd5b50610258610253366004612c07565b6105a1565b005b348015610265575f5ffd5b50610258610274366004612c31565b610638565b348015610284575f5ffd5b50610258610808565b348015610298575f5ffd5b506102586102a7366004612c68565b610977565b6102586102ba366004612ca6565b610b0a565b3480156102ca575f5ffd5b506102d3610bbf565b604051908152602001610230565b3480156102ec575f5ffd5b50610258610bed565b348015610300575f5ffd5b506102d3610c2e565b348015610314575f5ffd5b50610258610323366004612c31565b610c62565b348015610333575f5ffd5b50610258610de7565b348015610347575f5ffd5b50610350610e52565b6040516102309796959493929190612d2a565b34801561036e575f5ffd5b50610377610efa565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610230565b3480156103a7575f5ffd5b506102586103b6366004612b9e565b610f27565b3480156103c6575f5ffd5b506102d3610f32565b3480156103da575f5ffd5b506102d3610f50565b3480156103ee575f5ffd5b506102d36103fd366004612de9565b610f7d565b34801561040d575f5ffd5b50610377610fbb565b348015610421575f5ffd5b50610258610430366004612de9565b610fe0565b348015610440575f5ffd5b5061025861044f366004612ca6565b611074565b34801561045f575f5ffd5b5061025861046e366004612e45565b6110b8565b34801561047e575f5ffd5b506103776112ba565b348015610492575f5ffd5b506102586104a1366004612de9565b6112e7565b3480156104b1575f5ffd5b506102586104c0366004612ed9565b61136d565b3480156104d0575f5ffd5b506102586104df366004612de9565b611931565b3480156104ef575f5ffd5b506102586104fe366004612de9565b611a84565b565b5f5f6105118484611ac9565b905073ffffffffffffffffffffffffffffffffffffffff811661053d57610536610efa565b905061057e565b61054681610f7d565b421061057e576040517f3d4b014500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80608052602060405101604052610596858585611b01565b9150505b9392505050565b3330146105da576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6105e48282611b67565b8173ffffffffffffffffffffffffffffffffffffffff167fcacba9f642804cfed98e2bb1d1c05bc4c78b35a209cdffdb4674b3363bafd92b8260405161062c91815260200190565b60405180910390a25050565b610640610c2e565b5f03610678576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610680610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106c8573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106ec9190612f12565b6106f4610c2e565b6106fe9190612f56565b4211610736576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61073e611ba3565b6040517fa22cb46500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82811660048301525f602483015283169063a22cb465906044015f604051808303815f87803b1580156107aa575f5ffd5b505af11580156107bc573d5f5f3e3d5ffd5b505060405173ffffffffffffffffffffffffffffffffffffffff8085169350851691507ff9dfa223fca66e1e19e96ad420898db0b0ada933c1d0c0953b3d5a44176f495c905f90a35050565b610810610c2e565b5f03610848576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610850610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610898573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108bc9190612f12565b6108c4610c2e565b6108ce9190612f56565b4211610906576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61090e611ba3565b5f61093a60017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99612f69565b5f81556040514281529091507f9dd715fed52c25e642f97653bb4c4339ad98fe6d6e130348be82ae5d86383a8c906020015b60405180910390a150565b61097f610c2e565b5f036109b7576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109bf610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a07573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a2b9190612f12565b610a33610c2e565b610a3d9190612f56565b4211610a75576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a7d611ba3565b610a9e73ffffffffffffffffffffffffffffffffffffffff84168383611c0f565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f2fbb3e8dc2807d6a61feb98fc2120153f77b2c0d25ef6272e1756935dd62c84783604051610afd91815260200190565b60405180910390a3505050565b610b12611c62565b610b1b83611c91565b8260601b60601c92503d5f526352d1902d6001527f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80602060016004601d885afa5114610b70576355299b496001526004601dfd5b837fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b5f38a28390558015610bba57604051818382375f388383875af4610bb8573d5f823e3d81fd5b505b505050565b5f610bc8611d98565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b333014610c26576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610503611dc7565b5f80610c5b60017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99612f69565b5492915050565b610c6a610c2e565b5f03610ca2576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610caa610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610cf2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d169190612f12565b610d1e610c2e565b610d289190612f56565b4211610d60576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d68611ba3565b610d8973ffffffffffffffffffffffffffffffffffffffff8316825f611e6b565b8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8da578e4cb2672c4986388e504a6f639391986195c077e5db9f48e04c97a501b60405160405180910390a35050565b610def611ba3565b5f610e1b60017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99612f69565b428082556040519081529091507f32fb7c9891bc4f963c7de9f1186d2a7755c7d6e9f4604dabe1d8bb3027c2f49e9060200161096c565b7f0f000000000000000000000000000000000000000000000000000000000000006060805f808083610ee8604080518082018252600d81527f4465706f73697457616c6c6574000000000000000000000000000000000000006020808301919091528251808401909352600183527f31000000000000000000000000000000000000000000000000000000000000009083015291565b97989097965046955030945091925090565b5f80610c5b60017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b612f69565b610bba838383611eb4565b5f80610f3d306120ad565b80602001905181019061059a9190612f7c565b5f80610c5b60017f94f7bc44c1694f5bd8c155ad0b7a1459b9ede3ac9b5899315d5f1b0e469b1ee6612f69565b5f80610faa60017f262dd1cbe20a9ecc9fedf7b43d241ce1a18ea01dc95ca2bd68106e58474d85db612f69565b5f9384526020525050604090205490565b5f80610fc6306120ad565b806020019051810190610fd99190612f7c565b5092915050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf60113280546003825580156110315760018160011c14303b106110285763f92ee8a95f526004601cfd5b818160ff1b1b91505b5061103b826120fa565b8015611070576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b5050565b3330146110ad576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610bba838383610b0a565b6110c0610c2e565b5f036110f8576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611100610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611148573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061116c9190612f12565b611174610c2e565b61117e9190612f56565b42116111b6576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111be611ba3565b6040517f2eb2c2d600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff871690632eb2c2d69061121a90309089908990899089908990600401612ff1565b5f604051808303815f87803b158015611231575f5ffd5b505af1158015611243573d5f5f3e3d5ffd5b505050508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fb790ced15183f79ade456fb39c4fc443005b36f92a7318ef6e0e9f18dc05b040868686866040516112aa949392919061306d565b60405180910390a3505050505050565b5f80610c5b60017fa75cd6676e8c6931a1d5524e251b69c2d29aba2b846aed8220a29ba688a14770612f69565b333014611320576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61132a815f611b67565b60405173ffffffffffffffffffffffffffffffffffffffff8216907feac85989fadc30dfe2712c2308dcfecb3f9af1d15422056fc5a98ed1b49ca209905f90a250565b611375610fbb565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146113d9576040517f0c6d42ae00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6113e7606085018561309e565b905011611420576040517fc2e5347d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3061142e6020850185612de9565b73ffffffffffffffffffffffffffffffffffffffff161461147b576040517f23455ba100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f806114a860017f94f7bc44c1694f5bd8c155ad0b7a1459b9ede3ac9b5899315d5f1b0e469b1ee6612f69565b805460018101825592509050602085013582146114f1576040517f756688fe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b846040013542111561152f576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f61154161153c876131ca565b6121bf565b90505f61154d82612259565b90507f1626ba7e0000000000000000000000000000000000000000000000000000000061157b828888610505565b7fffffffff0000000000000000000000000000000000000000000000000000000016146115d4576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f806115e08888611ac9565b73ffffffffffffffffffffffffffffffffffffffff16141590505f5b61160960608a018a61309e565b90508110156118fc5781158061167157503061162860608b018b61309e565b83818110611638576116386133bb565b905060200281019061164a91906133e8565b611658906020810190612de9565b73ffffffffffffffffffffffffffffffffffffffff1614155b6116a7576040517fde4e67c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f806116b660608c018c61309e565b848181106116c6576116c66133bb565b90506020028101906116d891906133e8565b6116e6906020810190612de9565b73ffffffffffffffffffffffffffffffffffffffff1661170960608d018d61309e565b85818110611719576117196133bb565b905060200281019061172b91906133e8565b6020013561173c60608e018e61309e565b8681811061174c5761174c6133bb565b905060200281019061175e91906133e8565b61176c906040810190613424565b60405161177a929190613485565b5f6040518083038185875af1925050503d805f81146117b4576040519150601f19603f3d011682016040523d82523d5f602084013e6117b9565b606091505b5091509150816117f5576040517f3204506f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61180260608c018c61309e565b84818110611812576118126133bb565b905060200281019061182491906133e8565b611832906020810190612de9565b73ffffffffffffffffffffffffffffffffffffffff167ffde9c64d8b0b21fe439285c271603188269ad7c561364f724d48e9846120d7b661187660608e018e61309e565b86818110611886576118866133bb565b905060200281019061189891906133e8565b602001356118a960608f018f61309e565b878181106118b9576118b96133bb565b90506020028101906118cb91906133e8565b6118d9906040810190613424565b856040516118ea9493929190613494565b60405180910390a250506001016115fc565b60405186907fe9cc9bbe7de1cbb097a6357ca3182909488efe8d793e25665befc064a02d10a7905f90a2505050505050505050565b611939610c2e565b5f03611971576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611979610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156119c1573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906119e59190612f12565b6119ed610c2e565b6119f79190612f56565b4211611a2f576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611a37611ba3565b611a41815f611b67565b60405173ffffffffffffffffffffffffffffffffffffffff8216907f61be9e006b8f5c6e0e05905bb6a35efabbb3343c37d33552f634bd1d20f64141905f90a250565b333014611abd576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611ac68161236f565b50565b5f7f64926492649264926492649264926492649264926492649264926492649264926020830384013503611afb575081355b92915050565b5f81611b3e5761773961ffff831904028403611b3e57507f773900010000000000000000000000000000000000000000000000000000000061059a565b5f611b5285611b4d8686612408565b612456565b155f03631626ba7e1760e01b95945050505050565b5f611b9360017f262dd1cbe20a9ecc9fedf7b43d241ce1a18ea01dc95ca2bd68106e58474d85db612f69565b5f93845260205250604090912055565b611bab610efa565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610503576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81601452806034526fa9059cbb0000000000000000000000005f5260205f604460105f875af18060015f511416611c5857803d853b151710611c58576390b8ec185f526004601cfd5b505f603452505050565b307f0000000000000000000000000000000000000000000000000000000000000000036105035761050361248c565b333014611cca576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611cd2610fbb565b6040517f5325ad3d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301529190911690635325ad3d90602401602060405180830381865afa158015611d3e573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611d6291906134f4565b611ac6576040517f68155f9a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b307f0000000000000000000000000000000000000000000000000000000000000000146105035761050361248c565b5f611dd06112ba565b905073ffffffffffffffffffffffffffffffffffffffff8116611e1f576040517f7c63ac3600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611e285f612499565b60405173ffffffffffffffffffffffffffffffffffffffff8216907ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92905f90a250565b81601452806034526f095ea7b30000000000000000000000005f5260205f604460105f875af18060015f511416611c5857803d853b151710611c5857633e3f8f735f526004601cfd5b82421115611eee576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611ef76112ba565b905073ffffffffffffffffffffffffffffffffffffffff8116611f46576040517f7c63ac3600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604080517f8ea7943d1925a9cf7a830334250df14108b2abed2aa45d82a4dd473c4eef5e58602082015273ffffffffffffffffffffffffffffffffffffffff831691810191909152606081018590525f906080016040516020818303038152906040528051906020012090505f611fbc82612259565b90508273ffffffffffffffffffffffffffffffffffffffff16611fe08287876124cc565b73ffffffffffffffffffffffffffffffffffffffff161461202d576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f612036610efa565b90506120415f612499565b61204a8461256d565b8373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f38bafbf020d44b4ca47fda166836e6a0e0a15a9d6fec166834c0125e193830ff60405160405180910390a350505050505050565b60405164ffffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3833b0116808252602090810190603d908301843c60408101815101604052919050565b73ffffffffffffffffffffffffffffffffffffffff8116612147576040517f49e27cff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f61217360017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b612f69565b82815560405190915073ffffffffffffffffffffffffffffffffffffffff8316905f907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35050565b5f6040518060a00160405280606e8152602001613549606e913980519060200120825f0151836020015184604001516121fb86606001516125f4565b60408051602081019690965273ffffffffffffffffffffffffffffffffffffffff909416938501939093526060840191909152608083015260a082015260c0015b604051602081830303815290604052805190602001209050919050565b7f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000030147f000000000000000000000000000000000000000000000000000000000000000046141661234c5750604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81527f000000000000000000000000000000000000000000000000000000000000000060208201527f00000000000000000000000000000000000000000000000000000000000000009181019190915246606082015230608082015260a090205b6719010000000000005f5280601a5281603a52604260182090505f603a52919050565b73ffffffffffffffffffffffffffffffffffffffff81166123bc576040517f49e27cff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6123c581612499565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d905f90a250565b818161649261ffff30801c1904028183017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001350361244f57506040810135016020810190355b9250929050565b5f6124628484846126be565b8061247357506124738484846126d7565b806124845750612484848484612946565b949350505050565b639f03a0265f526004601cfd5b5f6124c560017fa75cd6676e8c6931a1d5524e251b69c2d29aba2b846aed8220a29ba688a14770612f69565b9190915550565b5f60405182604081146124e757604181146125275750612558565b60208581013560ff81901c601b0190915285356040527f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16606052612538565b60408501355f1a6020526040856040375b50845f526020600160805f60015afa5191505f606052806040523d612565575b638baa579f5f526004601cfd5b509392505050565b5f612576610efa565b90505f6125a460017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b612f69565b83815560405190915073ffffffffffffffffffffffffffffffffffffffff80851691908416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f825167ffffffffffffffff81111561261057612610613102565b604051908082528060200260200182016040528015612639578160200160208202803683370190505b5090505f5b835181101561268e5761266984828151811061265c5761265c6133bb565b60200260200101516129b1565b82828151811061267b5761267b6133bb565b602090810291909101015260010161263e565b50806040516020016126a09190613513565b60405160208183030381529060405280519060200120915050919050565b5f6126c7612a22565b1561059a57612484848484612a5e565b5f308015612743575f5f5f5f5f6126ec610e52565b5060408051865160209788012081830152855195909601949094206060860152608085019290925273ffffffffffffffffffffffffffffffffffffffff1660a084015260c083015260e08201905296505050505050505b6040516002840385013560f01c8060420180860387016119015f52604081602037821582881017896042601e201817156127ae575f94507f983e65e5148e570cd828ead231ee759a8d7958721a768f93bc4483ba005c32de8552886020526040852098505050612926565b7f5479706564446174615369676e280000000000000000000000000000000000008452600e84018360408301823760288185019081527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01515f1a602914612846575f6001858301035b6001820191506029828203515f1a148683101161281857508085039450808560408501018337602881830153505b6f07fffffe00000000000001000000000081515f1a1c5b602882515f1a1461288357806512010000000183515f1a1c17905060018201915061285d565b7f20636f6e74656e74732c737472696e67206e616d652c737472696e670000000082527f2076657273696f6e2c75696e7432353620636861696e49642c61646472657373601c8301527f20766572696679696e67436f6e74726163742c627974657333322073616c7429603c830152605c820191508460408401833760408388379084018590038520865260e08620604052600116604201601e20985050909403935b506040528061293b5761293885612259565b94505b610596858585612a5e565b5f3a61059a573a3a526d378edcd5b5b0a24f5342d8c1048560203a3a388461fffffa503a516129a557604051631626ba7e3a528160205260408052454561ffff0117805a10838814171561299657fe5b3a3a6064601c3085fa50506040525b50612484848484612a5e565b805160208083015160408085015180519084012081517f84fa2cf05cd88e992eae77e851af68a4ee278dcff6ef504e487a55b3baadfbe59481019490945273ffffffffffffffffffffffffffffffffffffffff90941690830152606082015260808101919091525f9060a00161223c565b5f612a2b610fbb565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b5f5f612a6960805190565b905073ffffffffffffffffffffffffffffffffffffffff81161580159061059657508073ffffffffffffffffffffffffffffffffffffffff16612aad868686612acd565b73ffffffffffffffffffffffffffffffffffffffff161495945050505050565b5f6040518260408114612ae85760418114612b285750612565565b60208581013560ff81901c601b0190915285356040527f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16606052612b39565b60408501355f1a6020526040856040375b50845f526020604060805f60015afa505f6060523d60601851915080604052509392505050565b5f5f83601f840112612b70575f5ffd5b50813567ffffffffffffffff811115612b87575f5ffd5b60208301915083602082850101111561244f575f5ffd5b5f5f5f60408486031215612bb0575f5ffd5b83359250602084013567ffffffffffffffff811115612bcd575f5ffd5b612bd986828701612b60565b9497909650939450505050565b73ffffffffffffffffffffffffffffffffffffffff81168114611ac6575f5ffd5b5f5f60408385031215612c18575f5ffd5b8235612c2381612be6565b946020939093013593505050565b5f5f60408385031215612c42575f5ffd5b8235612c4d81612be6565b91506020830135612c5d81612be6565b809150509250929050565b5f5f5f60608486031215612c7a575f5ffd5b8335612c8581612be6565b92506020840135612c9581612be6565b929592945050506040919091013590565b5f5f5f60408486031215612cb8575f5ffd5b8335612cc381612be6565b9250602084013567ffffffffffffffff811115612bcd575f5ffd5b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b7fff000000000000000000000000000000000000000000000000000000000000008816815260e060208201525f612d6460e0830189612cde565b8281036040840152612d768189612cde565b6060840188905273ffffffffffffffffffffffffffffffffffffffff8716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015612dd8578351835260209384019390920191600101612dba565b50909b9a5050505050505050505050565b5f60208284031215612df9575f5ffd5b813561059a81612be6565b5f5f83601f840112612e14575f5ffd5b50813567ffffffffffffffff811115612e2b575f5ffd5b6020830191508360208260051b850101111561244f575f5ffd5b5f5f5f5f5f5f60808789031215612e5a575f5ffd5b8635612e6581612be6565b95506020870135612e7581612be6565b9450604087013567ffffffffffffffff811115612e90575f5ffd5b612e9c89828a01612e04565b909550935050606087013567ffffffffffffffff811115612ebb575f5ffd5b612ec789828a01612e04565b979a9699509497509295939492505050565b5f5f5f60408486031215612eeb575f5ffd5b833567ffffffffffffffff811115612f01575f5ffd5b840160808187031215612cc3575f5ffd5b5f60208284031215612f22575f5ffd5b5051919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b80820180821115611afb57611afb612f29565b81810381811115611afb57611afb612f29565b5f5f60408385031215612f8d575f5ffd5b8251612f9881612be6565b6020939093015192949293505050565b8183525f7f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115612fd8575f5ffd5b8260051b80836020870137939093016020019392505050565b73ffffffffffffffffffffffffffffffffffffffff8716815273ffffffffffffffffffffffffffffffffffffffff8616602082015260a060408201525f61303c60a083018688612fa8565b828103606084015261304f818587612fa8565b83810360809094019390935250505f81526020019695505050505050565b604081525f613080604083018688612fa8565b8281036020840152613093818587612fa8565b979650505050505050565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126130d1575f5ffd5b83018035915067ffffffffffffffff8211156130eb575f5ffd5b6020019150600581901b360382131561244f575f5ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040516080810167ffffffffffffffff8111828210171561315257613152613102565b60405290565b6040516060810167ffffffffffffffff8111828210171561315257613152613102565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156131c2576131c2613102565b604052919050565b5f608082360312156131da575f5ffd5b6131e261312f565b82356131ed81612be6565b81526020838101359082015260408084013590820152606083013567ffffffffffffffff81111561321c575f5ffd5b830136601f82011261322c575f5ffd5b803567ffffffffffffffff81111561324657613246613102565b8060051b6132566020820161317b565b91825260208184018101929081019036841115613271575f5ffd5b6020850192505b838310156133ab57823567ffffffffffffffff811115613296575f5ffd5b85016060368290037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe00112156132ca575f5ffd5b6132d2613158565b60208201356132e081612be6565b815260408201356020820152606082013567ffffffffffffffff811115613305575f5ffd5b60208184010192505036601f83011261331c575f5ffd5b813567ffffffffffffffff81111561333657613336613102565b61336760207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160161317b565b81815236602083860101111561337b575f5ffd5b816020850160208301375f6020838301015280604084015250508084525050602082019150602083019250613278565b6060860152509295945050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f82357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa183360301811261341a575f5ffd5b9190910192915050565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112613457575f5ffd5b83018035915067ffffffffffffffff821115613471575f5ffd5b60200191503681900382131561244f575f5ffd5b818382375f9101908152919050565b84815260606020820152826060820152828460808301375f608084830101525f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f850116820160808382030160408401526130936080820185612cde565b5f60208284031215613504575f5ffd5b8151801515811461059a575f5ffd5b81515f90829060208501835b8281101561353d57815184526020938401939091019060010161351f565b50919594505050505056fe426174636828616464726573732077616c6c65742c75696e74323536206e6f6e63652c75696e7432353620646561646c696e652c43616c6c5b5d2063616c6c732943616c6c2861646472657373207461726765742c75696e743235362076616c75652c6279746573206461746129a2646970667358221220be1e7a1f3704ea0561b079fd27a95bb5471874ad6e2df4c7543ca448cd586c0964736f6c63430008220033","sourceMap":"1378:18115:13:-:0;;;1279:4:5;1220:66;;4092:53:13;;;;;;;;;-1:-1:-1;3066:4:7;3028:45;;3100:13;3083:30;;3124:18;;3240:23;19439:22:13;;;;;;;;;;;-1:-1:-1;;;19439:22:13;;;;;;;;19471:13;;;;;;;;;;;-1:-1:-1;;;19471:13:13;;;;19439:22;19269:222;3240:23:7;3340:22;;;;;;;3454:25;;;;;;;;;3489:26;;;;3525:32;;;;3737:4;3731:11;;3802:16;3792:27;;3843:12;;;3836:30;;;;3890:12;;;3883:33;3954:9;3947:4;3940:12;;3933:31;4002:9;3995:4;3988:12;;3981:31;4055:4;4042:18;;4093:34;;-1:-1:-1;4116:22:13;;-1:-1:-1;4116:20:13;:22::i;:::-;1378:18115;;7121:737:8;-1:-1:-1;;7297:8:8;;7328:1;7321:9;;7318:134;;;7362:10;7356:4;7349:24;7433:4;7427;7420:18;7318:134;-1:-1:-1;;;;;7537:9:8;7533:1;7530;7526:9;7523:24;7513:329;;7665:9;7662:1;7658:17;7655:1;7648:28;7755:9;7749:4;7742:23;7799:28;7793:4;7787;7782:46;7513:329;;;7274:578;7121:737::o;1378:18115:13:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","linkReferences":{},"cborAuxdata":{"1":{"value":"0xa2646970667358221220be1e7a1f3704ea0561b079fd27a95bb5471874ad6e2df4c7543ca448cd586c0964736f6c63430008220033","offset":14142}},"transformations":[],"transformationValues":{}},"runtimeBytecode":{"onchainBytecode":"0x6080604052600436106101a4575f3560e01c80639700d107116100e0578063c987336c11610089578063e63f952f11610063578063e63f952f14610487578063e8c8bf64146104a6578063e9e37136146104c5578063f2fde38b146104e4576101ab565b8063c987336c14610435578063d8cb0d6614610454578063e30c397814610473576101ab565b8063b9ac71d6116100ba578063b9ac71d6146103e3578063c45a015514610402578063c4d66de814610416576101ab565b80639700d1071461039c578063af640d0f146103bb578063affed0e0146103cf576101ab565b806352d1902d1161014d5780637ae26773116101275780637ae26773146103095780638456cb591461032857806384b0196e1461033c5780638da5cb5b14610363576101ab565b806352d1902d146102bf57806354d1f13d146102e15780635c975abb146102f5576101ab565b80633f4ba83a1161017e5780633f4ba83a1461027957806344004cc11461028d5780634f1ef286146102ac576101ab565b80631626ba7e146101e457806324017fae146102395780632a45cacf1461025a576101ab565b366101ab57005b5f3560e01c63bc197c81811463f23a6e6182141763150b7a02821417156101d657806020526020603cf35b50633c10b94e5f526004601cfd5b3480156101ef575f5ffd5b506102036101fe366004612b9e565b610505565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020015b60405180910390f35b348015610244575f5ffd5b50610258610253366004612c07565b6105a1565b005b348015610265575f5ffd5b50610258610274366004612c31565b610638565b348015610284575f5ffd5b50610258610808565b348015610298575f5ffd5b506102586102a7366004612c68565b610977565b6102586102ba366004612ca6565b610b0a565b3480156102ca575f5ffd5b506102d3610bbf565b604051908152602001610230565b3480156102ec575f5ffd5b50610258610bed565b348015610300575f5ffd5b506102d3610c2e565b348015610314575f5ffd5b50610258610323366004612c31565b610c62565b348015610333575f5ffd5b50610258610de7565b348015610347575f5ffd5b50610350610e52565b6040516102309796959493929190612d2a565b34801561036e575f5ffd5b50610377610efa565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610230565b3480156103a7575f5ffd5b506102586103b6366004612b9e565b610f27565b3480156103c6575f5ffd5b506102d3610f32565b3480156103da575f5ffd5b506102d3610f50565b3480156103ee575f5ffd5b506102d36103fd366004612de9565b610f7d565b34801561040d575f5ffd5b50610377610fbb565b348015610421575f5ffd5b50610258610430366004612de9565b610fe0565b348015610440575f5ffd5b5061025861044f366004612ca6565b611074565b34801561045f575f5ffd5b5061025861046e366004612e45565b6110b8565b34801561047e575f5ffd5b506103776112ba565b348015610492575f5ffd5b506102586104a1366004612de9565b6112e7565b3480156104b1575f5ffd5b506102586104c0366004612ed9565b61136d565b3480156104d0575f5ffd5b506102586104df366004612de9565b611931565b3480156104ef575f5ffd5b506102586104fe366004612de9565b611a84565b565b5f5f6105118484611ac9565b905073ffffffffffffffffffffffffffffffffffffffff811661053d57610536610efa565b905061057e565b61054681610f7d565b421061057e576040517f3d4b014500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80608052602060405101604052610596858585611b01565b9150505b9392505050565b3330146105da576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6105e48282611b67565b8173ffffffffffffffffffffffffffffffffffffffff167fcacba9f642804cfed98e2bb1d1c05bc4c78b35a209cdffdb4674b3363bafd92b8260405161062c91815260200190565b60405180910390a25050565b610640610c2e565b5f03610678576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610680610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106c8573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106ec9190612f12565b6106f4610c2e565b6106fe9190612f56565b4211610736576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61073e611ba3565b6040517fa22cb46500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82811660048301525f602483015283169063a22cb465906044015f604051808303815f87803b1580156107aa575f5ffd5b505af11580156107bc573d5f5f3e3d5ffd5b505060405173ffffffffffffffffffffffffffffffffffffffff8085169350851691507ff9dfa223fca66e1e19e96ad420898db0b0ada933c1d0c0953b3d5a44176f495c905f90a35050565b610810610c2e565b5f03610848576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610850610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610898573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108bc9190612f12565b6108c4610c2e565b6108ce9190612f56565b4211610906576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61090e611ba3565b5f61093a60017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99612f69565b5f81556040514281529091507f9dd715fed52c25e642f97653bb4c4339ad98fe6d6e130348be82ae5d86383a8c906020015b60405180910390a150565b61097f610c2e565b5f036109b7576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109bf610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a07573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a2b9190612f12565b610a33610c2e565b610a3d9190612f56565b4211610a75576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a7d611ba3565b610a9e73ffffffffffffffffffffffffffffffffffffffff84168383611c0f565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f2fbb3e8dc2807d6a61feb98fc2120153f77b2c0d25ef6272e1756935dd62c84783604051610afd91815260200190565b60405180910390a3505050565b610b12611c62565b610b1b83611c91565b8260601b60601c92503d5f526352d1902d6001527f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80602060016004601d885afa5114610b70576355299b496001526004601dfd5b837fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b5f38a28390558015610bba57604051818382375f388383875af4610bb8573d5f823e3d81fd5b505b505050565b5f610bc8611d98565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b333014610c26576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610503611dc7565b5f80610c5b60017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99612f69565b5492915050565b610c6a610c2e565b5f03610ca2576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610caa610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610cf2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d169190612f12565b610d1e610c2e565b610d289190612f56565b4211610d60576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d68611ba3565b610d8973ffffffffffffffffffffffffffffffffffffffff8316825f611e6b565b8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8da578e4cb2672c4986388e504a6f639391986195c077e5db9f48e04c97a501b60405160405180910390a35050565b610def611ba3565b5f610e1b60017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99612f69565b428082556040519081529091507f32fb7c9891bc4f963c7de9f1186d2a7755c7d6e9f4604dabe1d8bb3027c2f49e9060200161096c565b7f0f000000000000000000000000000000000000000000000000000000000000006060805f808083610ee8604080518082018252600d81527f4465706f73697457616c6c6574000000000000000000000000000000000000006020808301919091528251808401909352600183527f31000000000000000000000000000000000000000000000000000000000000009083015291565b97989097965046955030945091925090565b5f80610c5b60017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b612f69565b610bba838383611eb4565b5f80610f3d306120ad565b80602001905181019061059a9190612f7c565b5f80610c5b60017f94f7bc44c1694f5bd8c155ad0b7a1459b9ede3ac9b5899315d5f1b0e469b1ee6612f69565b5f80610faa60017f262dd1cbe20a9ecc9fedf7b43d241ce1a18ea01dc95ca2bd68106e58474d85db612f69565b5f9384526020525050604090205490565b5f80610fc6306120ad565b806020019051810190610fd99190612f7c565b5092915050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf60113280546003825580156110315760018160011c14303b106110285763f92ee8a95f526004601cfd5b818160ff1b1b91505b5061103b826120fa565b8015611070576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b5050565b3330146110ad576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610bba838383610b0a565b6110c0610c2e565b5f036110f8576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611100610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611148573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061116c9190612f12565b611174610c2e565b61117e9190612f56565b42116111b6576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111be611ba3565b6040517f2eb2c2d600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff871690632eb2c2d69061121a90309089908990899089908990600401612ff1565b5f604051808303815f87803b158015611231575f5ffd5b505af1158015611243573d5f5f3e3d5ffd5b505050508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fb790ced15183f79ade456fb39c4fc443005b36f92a7318ef6e0e9f18dc05b040868686866040516112aa949392919061306d565b60405180910390a3505050505050565b5f80610c5b60017fa75cd6676e8c6931a1d5524e251b69c2d29aba2b846aed8220a29ba688a14770612f69565b333014611320576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61132a815f611b67565b60405173ffffffffffffffffffffffffffffffffffffffff8216907feac85989fadc30dfe2712c2308dcfecb3f9af1d15422056fc5a98ed1b49ca209905f90a250565b611375610fbb565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146113d9576040517f0c6d42ae00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6113e7606085018561309e565b905011611420576040517fc2e5347d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3061142e6020850185612de9565b73ffffffffffffffffffffffffffffffffffffffff161461147b576040517f23455ba100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f806114a860017f94f7bc44c1694f5bd8c155ad0b7a1459b9ede3ac9b5899315d5f1b0e469b1ee6612f69565b805460018101825592509050602085013582146114f1576040517f756688fe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b846040013542111561152f576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f61154161153c876131ca565b6121bf565b90505f61154d82612259565b90507f1626ba7e0000000000000000000000000000000000000000000000000000000061157b828888610505565b7fffffffff0000000000000000000000000000000000000000000000000000000016146115d4576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f806115e08888611ac9565b73ffffffffffffffffffffffffffffffffffffffff16141590505f5b61160960608a018a61309e565b90508110156118fc5781158061167157503061162860608b018b61309e565b83818110611638576116386133bb565b905060200281019061164a91906133e8565b611658906020810190612de9565b73ffffffffffffffffffffffffffffffffffffffff1614155b6116a7576040517fde4e67c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f806116b660608c018c61309e565b848181106116c6576116c66133bb565b90506020028101906116d891906133e8565b6116e6906020810190612de9565b73ffffffffffffffffffffffffffffffffffffffff1661170960608d018d61309e565b85818110611719576117196133bb565b905060200281019061172b91906133e8565b6020013561173c60608e018e61309e565b8681811061174c5761174c6133bb565b905060200281019061175e91906133e8565b61176c906040810190613424565b60405161177a929190613485565b5f6040518083038185875af1925050503d805f81146117b4576040519150601f19603f3d011682016040523d82523d5f602084013e6117b9565b606091505b5091509150816117f5576040517f3204506f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61180260608c018c61309e565b84818110611812576118126133bb565b905060200281019061182491906133e8565b611832906020810190612de9565b73ffffffffffffffffffffffffffffffffffffffff167ffde9c64d8b0b21fe439285c271603188269ad7c561364f724d48e9846120d7b661187660608e018e61309e565b86818110611886576118866133bb565b905060200281019061189891906133e8565b602001356118a960608f018f61309e565b878181106118b9576118b96133bb565b90506020028101906118cb91906133e8565b6118d9906040810190613424565b856040516118ea9493929190613494565b60405180910390a250506001016115fc565b60405186907fe9cc9bbe7de1cbb097a6357ca3182909488efe8d793e25665befc064a02d10a7905f90a2505050505050505050565b611939610c2e565b5f03611971576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611979610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156119c1573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906119e59190612f12565b6119ed610c2e565b6119f79190612f56565b4211611a2f576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611a37611ba3565b611a41815f611b67565b60405173ffffffffffffffffffffffffffffffffffffffff8216907f61be9e006b8f5c6e0e05905bb6a35efabbb3343c37d33552f634bd1d20f64141905f90a250565b333014611abd576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611ac68161236f565b50565b5f7f64926492649264926492649264926492649264926492649264926492649264926020830384013503611afb575081355b92915050565b5f81611b3e5761773961ffff831904028403611b3e57507f773900010000000000000000000000000000000000000000000000000000000061059a565b5f611b5285611b4d8686612408565b612456565b155f03631626ba7e1760e01b95945050505050565b5f611b9360017f262dd1cbe20a9ecc9fedf7b43d241ce1a18ea01dc95ca2bd68106e58474d85db612f69565b5f93845260205250604090912055565b611bab610efa565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610503576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81601452806034526fa9059cbb0000000000000000000000005f5260205f604460105f875af18060015f511416611c5857803d853b151710611c58576390b8ec185f526004601cfd5b505f603452505050565b307f00000000000000000000000058ca52ebe0dadfdf531cde7062e76746de4db1eb036105035761050361248c565b333014611cca576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611cd2610fbb565b6040517f5325ad3d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301529190911690635325ad3d90602401602060405180830381865afa158015611d3e573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611d6291906134f4565b611ac6576040517f68155f9a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b307f00000000000000000000000058ca52ebe0dadfdf531cde7062e76746de4db1eb146105035761050361248c565b5f611dd06112ba565b905073ffffffffffffffffffffffffffffffffffffffff8116611e1f576040517f7c63ac3600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611e285f612499565b60405173ffffffffffffffffffffffffffffffffffffffff8216907ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92905f90a250565b81601452806034526f095ea7b30000000000000000000000005f5260205f604460105f875af18060015f511416611c5857803d853b151710611c5857633e3f8f735f526004601cfd5b82421115611eee576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611ef76112ba565b905073ffffffffffffffffffffffffffffffffffffffff8116611f46576040517f7c63ac3600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604080517f8ea7943d1925a9cf7a830334250df14108b2abed2aa45d82a4dd473c4eef5e58602082015273ffffffffffffffffffffffffffffffffffffffff831691810191909152606081018590525f906080016040516020818303038152906040528051906020012090505f611fbc82612259565b90508273ffffffffffffffffffffffffffffffffffffffff16611fe08287876124cc565b73ffffffffffffffffffffffffffffffffffffffff161461202d576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f612036610efa565b90506120415f612499565b61204a8461256d565b8373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f38bafbf020d44b4ca47fda166836e6a0e0a15a9d6fec166834c0125e193830ff60405160405180910390a350505050505050565b60405164ffffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3833b0116808252602090810190603d908301843c60408101815101604052919050565b73ffffffffffffffffffffffffffffffffffffffff8116612147576040517f49e27cff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f61217360017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b612f69565b82815560405190915073ffffffffffffffffffffffffffffffffffffffff8316905f907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35050565b5f6040518060a00160405280606e8152602001613549606e913980519060200120825f0151836020015184604001516121fb86606001516125f4565b60408051602081019690965273ffffffffffffffffffffffffffffffffffffffff909416938501939093526060840191909152608083015260a082015260c0015b604051602081830303815290604052805190602001209050919050565b7fb3443f073d0c805a9f042b5280f80cd88e81e20571f9cfe84d54f1fd5164ec857f00000000000000000000000058ca52ebe0dadfdf531cde7062e76746de4db1eb30147f000000000000000000000000000000000000000000000000000000000000008946141661234c5750604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81527fd682b529a17cda19aa275f3a050608f9e9401fadd1b0d233d81519972295828b60208201527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc69181019190915246606082015230608082015260a090205b6719010000000000005f5280601a5281603a52604260182090505f603a52919050565b73ffffffffffffffffffffffffffffffffffffffff81166123bc576040517f49e27cff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6123c581612499565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d905f90a250565b818161649261ffff30801c1904028183017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001350361244f57506040810135016020810190355b9250929050565b5f6124628484846126be565b8061247357506124738484846126d7565b806124845750612484848484612946565b949350505050565b639f03a0265f526004601cfd5b5f6124c560017fa75cd6676e8c6931a1d5524e251b69c2d29aba2b846aed8220a29ba688a14770612f69565b9190915550565b5f60405182604081146124e757604181146125275750612558565b60208581013560ff81901c601b0190915285356040527f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16606052612538565b60408501355f1a6020526040856040375b50845f526020600160805f60015afa5191505f606052806040523d612565575b638baa579f5f526004601cfd5b509392505050565b5f612576610efa565b90505f6125a460017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b612f69565b83815560405190915073ffffffffffffffffffffffffffffffffffffffff80851691908416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f825167ffffffffffffffff81111561261057612610613102565b604051908082528060200260200182016040528015612639578160200160208202803683370190505b5090505f5b835181101561268e5761266984828151811061265c5761265c6133bb565b60200260200101516129b1565b82828151811061267b5761267b6133bb565b602090810291909101015260010161263e565b50806040516020016126a09190613513565b60405160208183030381529060405280519060200120915050919050565b5f6126c7612a22565b1561059a57612484848484612a5e565b5f308015612743575f5f5f5f5f6126ec610e52565b5060408051865160209788012081830152855195909601949094206060860152608085019290925273ffffffffffffffffffffffffffffffffffffffff1660a084015260c083015260e08201905296505050505050505b6040516002840385013560f01c8060420180860387016119015f52604081602037821582881017896042601e201817156127ae575f94507f983e65e5148e570cd828ead231ee759a8d7958721a768f93bc4483ba005c32de8552886020526040852098505050612926565b7f5479706564446174615369676e280000000000000000000000000000000000008452600e84018360408301823760288185019081527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01515f1a602914612846575f6001858301035b6001820191506029828203515f1a148683101161281857508085039450808560408501018337602881830153505b6f07fffffe00000000000001000000000081515f1a1c5b602882515f1a1461288357806512010000000183515f1a1c17905060018201915061285d565b7f20636f6e74656e74732c737472696e67206e616d652c737472696e670000000082527f2076657273696f6e2c75696e7432353620636861696e49642c61646472657373601c8301527f20766572696679696e67436f6e74726163742c627974657333322073616c7429603c830152605c820191508460408401833760408388379084018590038520865260e08620604052600116604201601e20985050909403935b506040528061293b5761293885612259565b94505b610596858585612a5e565b5f3a61059a573a3a526d378edcd5b5b0a24f5342d8c1048560203a3a388461fffffa503a516129a557604051631626ba7e3a528160205260408052454561ffff0117805a10838814171561299657fe5b3a3a6064601c3085fa50506040525b50612484848484612a5e565b805160208083015160408085015180519084012081517f84fa2cf05cd88e992eae77e851af68a4ee278dcff6ef504e487a55b3baadfbe59481019490945273ffffffffffffffffffffffffffffffffffffffff90941690830152606082015260808101919091525f9060a00161223c565b5f612a2b610fbb565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b5f5f612a6960805190565b905073ffffffffffffffffffffffffffffffffffffffff81161580159061059657508073ffffffffffffffffffffffffffffffffffffffff16612aad868686612acd565b73ffffffffffffffffffffffffffffffffffffffff161495945050505050565b5f6040518260408114612ae85760418114612b285750612565565b60208581013560ff81901c601b0190915285356040527f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16606052612b39565b60408501355f1a6020526040856040375b50845f526020604060805f60015afa505f6060523d60601851915080604052509392505050565b5f5f83601f840112612b70575f5ffd5b50813567ffffffffffffffff811115612b87575f5ffd5b60208301915083602082850101111561244f575f5ffd5b5f5f5f60408486031215612bb0575f5ffd5b83359250602084013567ffffffffffffffff811115612bcd575f5ffd5b612bd986828701612b60565b9497909650939450505050565b73ffffffffffffffffffffffffffffffffffffffff81168114611ac6575f5ffd5b5f5f60408385031215612c18575f5ffd5b8235612c2381612be6565b946020939093013593505050565b5f5f60408385031215612c42575f5ffd5b8235612c4d81612be6565b91506020830135612c5d81612be6565b809150509250929050565b5f5f5f60608486031215612c7a575f5ffd5b8335612c8581612be6565b92506020840135612c9581612be6565b929592945050506040919091013590565b5f5f5f60408486031215612cb8575f5ffd5b8335612cc381612be6565b9250602084013567ffffffffffffffff811115612bcd575f5ffd5b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b7fff000000000000000000000000000000000000000000000000000000000000008816815260e060208201525f612d6460e0830189612cde565b8281036040840152612d768189612cde565b6060840188905273ffffffffffffffffffffffffffffffffffffffff8716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015612dd8578351835260209384019390920191600101612dba565b50909b9a5050505050505050505050565b5f60208284031215612df9575f5ffd5b813561059a81612be6565b5f5f83601f840112612e14575f5ffd5b50813567ffffffffffffffff811115612e2b575f5ffd5b6020830191508360208260051b850101111561244f575f5ffd5b5f5f5f5f5f5f60808789031215612e5a575f5ffd5b8635612e6581612be6565b95506020870135612e7581612be6565b9450604087013567ffffffffffffffff811115612e90575f5ffd5b612e9c89828a01612e04565b909550935050606087013567ffffffffffffffff811115612ebb575f5ffd5b612ec789828a01612e04565b979a9699509497509295939492505050565b5f5f5f60408486031215612eeb575f5ffd5b833567ffffffffffffffff811115612f01575f5ffd5b840160808187031215612cc3575f5ffd5b5f60208284031215612f22575f5ffd5b5051919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b80820180821115611afb57611afb612f29565b81810381811115611afb57611afb612f29565b5f5f60408385031215612f8d575f5ffd5b8251612f9881612be6565b6020939093015192949293505050565b8183525f7f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115612fd8575f5ffd5b8260051b80836020870137939093016020019392505050565b73ffffffffffffffffffffffffffffffffffffffff8716815273ffffffffffffffffffffffffffffffffffffffff8616602082015260a060408201525f61303c60a083018688612fa8565b828103606084015261304f818587612fa8565b83810360809094019390935250505f81526020019695505050505050565b604081525f613080604083018688612fa8565b8281036020840152613093818587612fa8565b979650505050505050565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126130d1575f5ffd5b83018035915067ffffffffffffffff8211156130eb575f5ffd5b6020019150600581901b360382131561244f575f5ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040516080810167ffffffffffffffff8111828210171561315257613152613102565b60405290565b6040516060810167ffffffffffffffff8111828210171561315257613152613102565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156131c2576131c2613102565b604052919050565b5f608082360312156131da575f5ffd5b6131e261312f565b82356131ed81612be6565b81526020838101359082015260408084013590820152606083013567ffffffffffffffff81111561321c575f5ffd5b830136601f82011261322c575f5ffd5b803567ffffffffffffffff81111561324657613246613102565b8060051b6132566020820161317b565b91825260208184018101929081019036841115613271575f5ffd5b6020850192505b838310156133ab57823567ffffffffffffffff811115613296575f5ffd5b85016060368290037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe00112156132ca575f5ffd5b6132d2613158565b60208201356132e081612be6565b815260408201356020820152606082013567ffffffffffffffff811115613305575f5ffd5b60208184010192505036601f83011261331c575f5ffd5b813567ffffffffffffffff81111561333657613336613102565b61336760207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160161317b565b81815236602083860101111561337b575f5ffd5b816020850160208301375f6020838301015280604084015250508084525050602082019150602083019250613278565b6060860152509295945050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f82357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa183360301811261341a575f5ffd5b9190910192915050565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112613457575f5ffd5b83018035915067ffffffffffffffff821115613471575f5ffd5b60200191503681900382131561244f575f5ffd5b818382375f9101908152919050565b84815260606020820152826060820152828460808301375f608084830101525f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f850116820160808382030160408401526130936080820185612cde565b5f60208284031215613504575f5ffd5b8151801515811461059a575f5ffd5b81515f90829060208501835b8281101561353d57815184526020938401939091019060010161351f565b50919594505050505056fe426174636828616464726573732077616c6c65742c75696e74323536206e6f6e63652c75696e7432353620646561646c696e652c43616c6c5b5d2063616c6c732943616c6c2861646472657373207461726765742c75696e743235362076616c75652c6279746573206461746129a2646970667358221220be1e7a1f3704ea0561b079fd27a95bb5471874ad6e2df4c7543ca448cd586c0964736f6c63430008220033","recompiledBytecode":"0x6080604052600436106101a4575f3560e01c80639700d107116100e0578063c987336c11610089578063e63f952f11610063578063e63f952f14610487578063e8c8bf64146104a6578063e9e37136146104c5578063f2fde38b146104e4576101ab565b8063c987336c14610435578063d8cb0d6614610454578063e30c397814610473576101ab565b8063b9ac71d6116100ba578063b9ac71d6146103e3578063c45a015514610402578063c4d66de814610416576101ab565b80639700d1071461039c578063af640d0f146103bb578063affed0e0146103cf576101ab565b806352d1902d1161014d5780637ae26773116101275780637ae26773146103095780638456cb591461032857806384b0196e1461033c5780638da5cb5b14610363576101ab565b806352d1902d146102bf57806354d1f13d146102e15780635c975abb146102f5576101ab565b80633f4ba83a1161017e5780633f4ba83a1461027957806344004cc11461028d5780634f1ef286146102ac576101ab565b80631626ba7e146101e457806324017fae146102395780632a45cacf1461025a576101ab565b366101ab57005b5f3560e01c63bc197c81811463f23a6e6182141763150b7a02821417156101d657806020526020603cf35b50633c10b94e5f526004601cfd5b3480156101ef575f5ffd5b506102036101fe366004612b9e565b610505565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020015b60405180910390f35b348015610244575f5ffd5b50610258610253366004612c07565b6105a1565b005b348015610265575f5ffd5b50610258610274366004612c31565b610638565b348015610284575f5ffd5b50610258610808565b348015610298575f5ffd5b506102586102a7366004612c68565b610977565b6102586102ba366004612ca6565b610b0a565b3480156102ca575f5ffd5b506102d3610bbf565b604051908152602001610230565b3480156102ec575f5ffd5b50610258610bed565b348015610300575f5ffd5b506102d3610c2e565b348015610314575f5ffd5b50610258610323366004612c31565b610c62565b348015610333575f5ffd5b50610258610de7565b348015610347575f5ffd5b50610350610e52565b6040516102309796959493929190612d2a565b34801561036e575f5ffd5b50610377610efa565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610230565b3480156103a7575f5ffd5b506102586103b6366004612b9e565b610f27565b3480156103c6575f5ffd5b506102d3610f32565b3480156103da575f5ffd5b506102d3610f50565b3480156103ee575f5ffd5b506102d36103fd366004612de9565b610f7d565b34801561040d575f5ffd5b50610377610fbb565b348015610421575f5ffd5b50610258610430366004612de9565b610fe0565b348015610440575f5ffd5b5061025861044f366004612ca6565b611074565b34801561045f575f5ffd5b5061025861046e366004612e45565b6110b8565b34801561047e575f5ffd5b506103776112ba565b348015610492575f5ffd5b506102586104a1366004612de9565b6112e7565b3480156104b1575f5ffd5b506102586104c0366004612ed9565b61136d565b3480156104d0575f5ffd5b506102586104df366004612de9565b611931565b3480156104ef575f5ffd5b506102586104fe366004612de9565b611a84565b565b5f5f6105118484611ac9565b905073ffffffffffffffffffffffffffffffffffffffff811661053d57610536610efa565b905061057e565b61054681610f7d565b421061057e576040517f3d4b014500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80608052602060405101604052610596858585611b01565b9150505b9392505050565b3330146105da576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6105e48282611b67565b8173ffffffffffffffffffffffffffffffffffffffff167fcacba9f642804cfed98e2bb1d1c05bc4c78b35a209cdffdb4674b3363bafd92b8260405161062c91815260200190565b60405180910390a25050565b610640610c2e565b5f03610678576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610680610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106c8573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106ec9190612f12565b6106f4610c2e565b6106fe9190612f56565b4211610736576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61073e611ba3565b6040517fa22cb46500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82811660048301525f602483015283169063a22cb465906044015f604051808303815f87803b1580156107aa575f5ffd5b505af11580156107bc573d5f5f3e3d5ffd5b505060405173ffffffffffffffffffffffffffffffffffffffff8085169350851691507ff9dfa223fca66e1e19e96ad420898db0b0ada933c1d0c0953b3d5a44176f495c905f90a35050565b610810610c2e565b5f03610848576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610850610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610898573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108bc9190612f12565b6108c4610c2e565b6108ce9190612f56565b4211610906576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61090e611ba3565b5f61093a60017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99612f69565b5f81556040514281529091507f9dd715fed52c25e642f97653bb4c4339ad98fe6d6e130348be82ae5d86383a8c906020015b60405180910390a150565b61097f610c2e565b5f036109b7576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109bf610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a07573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a2b9190612f12565b610a33610c2e565b610a3d9190612f56565b4211610a75576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a7d611ba3565b610a9e73ffffffffffffffffffffffffffffffffffffffff84168383611c0f565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f2fbb3e8dc2807d6a61feb98fc2120153f77b2c0d25ef6272e1756935dd62c84783604051610afd91815260200190565b60405180910390a3505050565b610b12611c62565b610b1b83611c91565b8260601b60601c92503d5f526352d1902d6001527f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80602060016004601d885afa5114610b70576355299b496001526004601dfd5b837fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b5f38a28390558015610bba57604051818382375f388383875af4610bb8573d5f823e3d81fd5b505b505050565b5f610bc8611d98565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b333014610c26576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610503611dc7565b5f80610c5b60017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99612f69565b5492915050565b610c6a610c2e565b5f03610ca2576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610caa610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610cf2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d169190612f12565b610d1e610c2e565b610d289190612f56565b4211610d60576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d68611ba3565b610d8973ffffffffffffffffffffffffffffffffffffffff8316825f611e6b565b8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8da578e4cb2672c4986388e504a6f639391986195c077e5db9f48e04c97a501b60405160405180910390a35050565b610def611ba3565b5f610e1b60017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99612f69565b428082556040519081529091507f32fb7c9891bc4f963c7de9f1186d2a7755c7d6e9f4604dabe1d8bb3027c2f49e9060200161096c565b7f0f000000000000000000000000000000000000000000000000000000000000006060805f808083610ee8604080518082018252600d81527f4465706f73697457616c6c6574000000000000000000000000000000000000006020808301919091528251808401909352600183527f31000000000000000000000000000000000000000000000000000000000000009083015291565b97989097965046955030945091925090565b5f80610c5b60017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b612f69565b610bba838383611eb4565b5f80610f3d306120ad565b80602001905181019061059a9190612f7c565b5f80610c5b60017f94f7bc44c1694f5bd8c155ad0b7a1459b9ede3ac9b5899315d5f1b0e469b1ee6612f69565b5f80610faa60017f262dd1cbe20a9ecc9fedf7b43d241ce1a18ea01dc95ca2bd68106e58474d85db612f69565b5f9384526020525050604090205490565b5f80610fc6306120ad565b806020019051810190610fd99190612f7c565b5092915050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf60113280546003825580156110315760018160011c14303b106110285763f92ee8a95f526004601cfd5b818160ff1b1b91505b5061103b826120fa565b8015611070576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b5050565b3330146110ad576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610bba838383610b0a565b6110c0610c2e565b5f036110f8576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611100610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611148573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061116c9190612f12565b611174610c2e565b61117e9190612f56565b42116111b6576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111be611ba3565b6040517f2eb2c2d600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff871690632eb2c2d69061121a90309089908990899089908990600401612ff1565b5f604051808303815f87803b158015611231575f5ffd5b505af1158015611243573d5f5f3e3d5ffd5b505050508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fb790ced15183f79ade456fb39c4fc443005b36f92a7318ef6e0e9f18dc05b040868686866040516112aa949392919061306d565b60405180910390a3505050505050565b5f80610c5b60017fa75cd6676e8c6931a1d5524e251b69c2d29aba2b846aed8220a29ba688a14770612f69565b333014611320576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61132a815f611b67565b60405173ffffffffffffffffffffffffffffffffffffffff8216907feac85989fadc30dfe2712c2308dcfecb3f9af1d15422056fc5a98ed1b49ca209905f90a250565b611375610fbb565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146113d9576040517f0c6d42ae00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6113e7606085018561309e565b905011611420576040517fc2e5347d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3061142e6020850185612de9565b73ffffffffffffffffffffffffffffffffffffffff161461147b576040517f23455ba100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f806114a860017f94f7bc44c1694f5bd8c155ad0b7a1459b9ede3ac9b5899315d5f1b0e469b1ee6612f69565b805460018101825592509050602085013582146114f1576040517f756688fe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b846040013542111561152f576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f61154161153c876131ca565b6121bf565b90505f61154d82612259565b90507f1626ba7e0000000000000000000000000000000000000000000000000000000061157b828888610505565b7fffffffff0000000000000000000000000000000000000000000000000000000016146115d4576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f806115e08888611ac9565b73ffffffffffffffffffffffffffffffffffffffff16141590505f5b61160960608a018a61309e565b90508110156118fc5781158061167157503061162860608b018b61309e565b83818110611638576116386133bb565b905060200281019061164a91906133e8565b611658906020810190612de9565b73ffffffffffffffffffffffffffffffffffffffff1614155b6116a7576040517fde4e67c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f806116b660608c018c61309e565b848181106116c6576116c66133bb565b90506020028101906116d891906133e8565b6116e6906020810190612de9565b73ffffffffffffffffffffffffffffffffffffffff1661170960608d018d61309e565b85818110611719576117196133bb565b905060200281019061172b91906133e8565b6020013561173c60608e018e61309e565b8681811061174c5761174c6133bb565b905060200281019061175e91906133e8565b61176c906040810190613424565b60405161177a929190613485565b5f6040518083038185875af1925050503d805f81146117b4576040519150601f19603f3d011682016040523d82523d5f602084013e6117b9565b606091505b5091509150816117f5576040517f3204506f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61180260608c018c61309e565b84818110611812576118126133bb565b905060200281019061182491906133e8565b611832906020810190612de9565b73ffffffffffffffffffffffffffffffffffffffff167ffde9c64d8b0b21fe439285c271603188269ad7c561364f724d48e9846120d7b661187660608e018e61309e565b86818110611886576118866133bb565b905060200281019061189891906133e8565b602001356118a960608f018f61309e565b878181106118b9576118b96133bb565b90506020028101906118cb91906133e8565b6118d9906040810190613424565b856040516118ea9493929190613494565b60405180910390a250506001016115fc565b60405186907fe9cc9bbe7de1cbb097a6357ca3182909488efe8d793e25665befc064a02d10a7905f90a2505050505050505050565b611939610c2e565b5f03611971576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611979610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156119c1573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906119e59190612f12565b6119ed610c2e565b6119f79190612f56565b4211611a2f576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611a37611ba3565b611a41815f611b67565b60405173ffffffffffffffffffffffffffffffffffffffff8216907f61be9e006b8f5c6e0e05905bb6a35efabbb3343c37d33552f634bd1d20f64141905f90a250565b333014611abd576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611ac68161236f565b50565b5f7f64926492649264926492649264926492649264926492649264926492649264926020830384013503611afb575081355b92915050565b5f81611b3e5761773961ffff831904028403611b3e57507f773900010000000000000000000000000000000000000000000000000000000061059a565b5f611b5285611b4d8686612408565b612456565b155f03631626ba7e1760e01b95945050505050565b5f611b9360017f262dd1cbe20a9ecc9fedf7b43d241ce1a18ea01dc95ca2bd68106e58474d85db612f69565b5f93845260205250604090912055565b611bab610efa565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610503576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81601452806034526fa9059cbb0000000000000000000000005f5260205f604460105f875af18060015f511416611c5857803d853b151710611c58576390b8ec185f526004601cfd5b505f603452505050565b307f0000000000000000000000000000000000000000000000000000000000000000036105035761050361248c565b333014611cca576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611cd2610fbb565b6040517f5325ad3d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301529190911690635325ad3d90602401602060405180830381865afa158015611d3e573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611d6291906134f4565b611ac6576040517f68155f9a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b307f0000000000000000000000000000000000000000000000000000000000000000146105035761050361248c565b5f611dd06112ba565b905073ffffffffffffffffffffffffffffffffffffffff8116611e1f576040517f7c63ac3600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611e285f612499565b60405173ffffffffffffffffffffffffffffffffffffffff8216907ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92905f90a250565b81601452806034526f095ea7b30000000000000000000000005f5260205f604460105f875af18060015f511416611c5857803d853b151710611c5857633e3f8f735f526004601cfd5b82421115611eee576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611ef76112ba565b905073ffffffffffffffffffffffffffffffffffffffff8116611f46576040517f7c63ac3600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604080517f8ea7943d1925a9cf7a830334250df14108b2abed2aa45d82a4dd473c4eef5e58602082015273ffffffffffffffffffffffffffffffffffffffff831691810191909152606081018590525f906080016040516020818303038152906040528051906020012090505f611fbc82612259565b90508273ffffffffffffffffffffffffffffffffffffffff16611fe08287876124cc565b73ffffffffffffffffffffffffffffffffffffffff161461202d576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f612036610efa565b90506120415f612499565b61204a8461256d565b8373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f38bafbf020d44b4ca47fda166836e6a0e0a15a9d6fec166834c0125e193830ff60405160405180910390a350505050505050565b60405164ffffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3833b0116808252602090810190603d908301843c60408101815101604052919050565b73ffffffffffffffffffffffffffffffffffffffff8116612147576040517f49e27cff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f61217360017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b612f69565b82815560405190915073ffffffffffffffffffffffffffffffffffffffff8316905f907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35050565b5f6040518060a00160405280606e8152602001613549606e913980519060200120825f0151836020015184604001516121fb86606001516125f4565b60408051602081019690965273ffffffffffffffffffffffffffffffffffffffff909416938501939093526060840191909152608083015260a082015260c0015b604051602081830303815290604052805190602001209050919050565b7f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000030147f000000000000000000000000000000000000000000000000000000000000000046141661234c5750604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81527f000000000000000000000000000000000000000000000000000000000000000060208201527f00000000000000000000000000000000000000000000000000000000000000009181019190915246606082015230608082015260a090205b6719010000000000005f5280601a5281603a52604260182090505f603a52919050565b73ffffffffffffffffffffffffffffffffffffffff81166123bc576040517f49e27cff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6123c581612499565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d905f90a250565b818161649261ffff30801c1904028183017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001350361244f57506040810135016020810190355b9250929050565b5f6124628484846126be565b8061247357506124738484846126d7565b806124845750612484848484612946565b949350505050565b639f03a0265f526004601cfd5b5f6124c560017fa75cd6676e8c6931a1d5524e251b69c2d29aba2b846aed8220a29ba688a14770612f69565b9190915550565b5f60405182604081146124e757604181146125275750612558565b60208581013560ff81901c601b0190915285356040527f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16606052612538565b60408501355f1a6020526040856040375b50845f526020600160805f60015afa5191505f606052806040523d612565575b638baa579f5f526004601cfd5b509392505050565b5f612576610efa565b90505f6125a460017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b612f69565b83815560405190915073ffffffffffffffffffffffffffffffffffffffff80851691908416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f825167ffffffffffffffff81111561261057612610613102565b604051908082528060200260200182016040528015612639578160200160208202803683370190505b5090505f5b835181101561268e5761266984828151811061265c5761265c6133bb565b60200260200101516129b1565b82828151811061267b5761267b6133bb565b602090810291909101015260010161263e565b50806040516020016126a09190613513565b60405160208183030381529060405280519060200120915050919050565b5f6126c7612a22565b1561059a57612484848484612a5e565b5f308015612743575f5f5f5f5f6126ec610e52565b5060408051865160209788012081830152855195909601949094206060860152608085019290925273ffffffffffffffffffffffffffffffffffffffff1660a084015260c083015260e08201905296505050505050505b6040516002840385013560f01c8060420180860387016119015f52604081602037821582881017896042601e201817156127ae575f94507f983e65e5148e570cd828ead231ee759a8d7958721a768f93bc4483ba005c32de8552886020526040852098505050612926565b7f5479706564446174615369676e280000000000000000000000000000000000008452600e84018360408301823760288185019081527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01515f1a602914612846575f6001858301035b6001820191506029828203515f1a148683101161281857508085039450808560408501018337602881830153505b6f07fffffe00000000000001000000000081515f1a1c5b602882515f1a1461288357806512010000000183515f1a1c17905060018201915061285d565b7f20636f6e74656e74732c737472696e67206e616d652c737472696e670000000082527f2076657273696f6e2c75696e7432353620636861696e49642c61646472657373601c8301527f20766572696679696e67436f6e74726163742c627974657333322073616c7429603c830152605c820191508460408401833760408388379084018590038520865260e08620604052600116604201601e20985050909403935b506040528061293b5761293885612259565b94505b610596858585612a5e565b5f3a61059a573a3a526d378edcd5b5b0a24f5342d8c1048560203a3a388461fffffa503a516129a557604051631626ba7e3a528160205260408052454561ffff0117805a10838814171561299657fe5b3a3a6064601c3085fa50506040525b50612484848484612a5e565b805160208083015160408085015180519084012081517f84fa2cf05cd88e992eae77e851af68a4ee278dcff6ef504e487a55b3baadfbe59481019490945273ffffffffffffffffffffffffffffffffffffffff90941690830152606082015260808101919091525f9060a00161223c565b5f612a2b610fbb565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b5f5f612a6960805190565b905073ffffffffffffffffffffffffffffffffffffffff81161580159061059657508073ffffffffffffffffffffffffffffffffffffffff16612aad868686612acd565b73ffffffffffffffffffffffffffffffffffffffff161495945050505050565b5f6040518260408114612ae85760418114612b285750612565565b60208581013560ff81901c601b0190915285356040527f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16606052612b39565b60408501355f1a6020526040856040375b50845f526020604060805f60015afa505f6060523d60601851915080604052509392505050565b5f5f83601f840112612b70575f5ffd5b50813567ffffffffffffffff811115612b87575f5ffd5b60208301915083602082850101111561244f575f5ffd5b5f5f5f60408486031215612bb0575f5ffd5b83359250602084013567ffffffffffffffff811115612bcd575f5ffd5b612bd986828701612b60565b9497909650939450505050565b73ffffffffffffffffffffffffffffffffffffffff81168114611ac6575f5ffd5b5f5f60408385031215612c18575f5ffd5b8235612c2381612be6565b946020939093013593505050565b5f5f60408385031215612c42575f5ffd5b8235612c4d81612be6565b91506020830135612c5d81612be6565b809150509250929050565b5f5f5f60608486031215612c7a575f5ffd5b8335612c8581612be6565b92506020840135612c9581612be6565b929592945050506040919091013590565b5f5f5f60408486031215612cb8575f5ffd5b8335612cc381612be6565b9250602084013567ffffffffffffffff811115612bcd575f5ffd5b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b7fff000000000000000000000000000000000000000000000000000000000000008816815260e060208201525f612d6460e0830189612cde565b8281036040840152612d768189612cde565b6060840188905273ffffffffffffffffffffffffffffffffffffffff8716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015612dd8578351835260209384019390920191600101612dba565b50909b9a5050505050505050505050565b5f60208284031215612df9575f5ffd5b813561059a81612be6565b5f5f83601f840112612e14575f5ffd5b50813567ffffffffffffffff811115612e2b575f5ffd5b6020830191508360208260051b850101111561244f575f5ffd5b5f5f5f5f5f5f60808789031215612e5a575f5ffd5b8635612e6581612be6565b95506020870135612e7581612be6565b9450604087013567ffffffffffffffff811115612e90575f5ffd5b612e9c89828a01612e04565b909550935050606087013567ffffffffffffffff811115612ebb575f5ffd5b612ec789828a01612e04565b979a9699509497509295939492505050565b5f5f5f60408486031215612eeb575f5ffd5b833567ffffffffffffffff811115612f01575f5ffd5b840160808187031215612cc3575f5ffd5b5f60208284031215612f22575f5ffd5b5051919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b80820180821115611afb57611afb612f29565b81810381811115611afb57611afb612f29565b5f5f60408385031215612f8d575f5ffd5b8251612f9881612be6565b6020939093015192949293505050565b8183525f7f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115612fd8575f5ffd5b8260051b80836020870137939093016020019392505050565b73ffffffffffffffffffffffffffffffffffffffff8716815273ffffffffffffffffffffffffffffffffffffffff8616602082015260a060408201525f61303c60a083018688612fa8565b828103606084015261304f818587612fa8565b83810360809094019390935250505f81526020019695505050505050565b604081525f613080604083018688612fa8565b8281036020840152613093818587612fa8565b979650505050505050565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126130d1575f5ffd5b83018035915067ffffffffffffffff8211156130eb575f5ffd5b6020019150600581901b360382131561244f575f5ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040516080810167ffffffffffffffff8111828210171561315257613152613102565b60405290565b6040516060810167ffffffffffffffff8111828210171561315257613152613102565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156131c2576131c2613102565b604052919050565b5f608082360312156131da575f5ffd5b6131e261312f565b82356131ed81612be6565b81526020838101359082015260408084013590820152606083013567ffffffffffffffff81111561321c575f5ffd5b830136601f82011261322c575f5ffd5b803567ffffffffffffffff81111561324657613246613102565b8060051b6132566020820161317b565b91825260208184018101929081019036841115613271575f5ffd5b6020850192505b838310156133ab57823567ffffffffffffffff811115613296575f5ffd5b85016060368290037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe00112156132ca575f5ffd5b6132d2613158565b60208201356132e081612be6565b815260408201356020820152606082013567ffffffffffffffff811115613305575f5ffd5b60208184010192505036601f83011261331c575f5ffd5b813567ffffffffffffffff81111561333657613336613102565b61336760207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160161317b565b81815236602083860101111561337b575f5ffd5b816020850160208301375f6020838301015280604084015250508084525050602082019150602083019250613278565b6060860152509295945050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f82357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa183360301811261341a575f5ffd5b9190910192915050565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112613457575f5ffd5b83018035915067ffffffffffffffff821115613471575f5ffd5b60200191503681900382131561244f575f5ffd5b818382375f9101908152919050565b84815260606020820152826060820152828460808301375f608084830101525f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f850116820160808382030160408401526130936080820185612cde565b5f60208284031215613504575f5ffd5b8151801515811461059a575f5ffd5b81515f90829060208501835b8281101561353d57815184526020938401939091019060010161351f565b50919594505050505056fe426174636828616464726573732077616c6c65742c75696e74323536206e6f6e63652c75696e7432353620646561646c696e652c43616c6c5b5d2063616c6c732943616c6c2861646472657373207461726765742c75696e743235362076616c75652c6279746573206461746129a2646970667358221220be1e7a1f3704ea0561b079fd27a95bb5471874ad6e2df4c7543ca448cd586c0964736f6c63430008220033","sourceMap":"1378:18115:13:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1815:1:1;1802:15;1797:3;1793:25;2161:10;2158:1;2155:17;2142:10;2139:1;2136:17;2133:40;2120:10;2117:1;2114:17;2111:63;2108:298;;;2306:1;2300:4;2293:15;2300:4;2356;2349:18;2108:298;;1408:10:::1;1402:4;1395:24;1477:4;1471;1464:18;17218:637:13::0;;;;;;;;;;-1:-1:-1;17218:637:13;;;;;:::i;:::-;;:::i;:::-;;;1022:66:21;1010:79;;;992:98;;980:2;965:18;17218:637:13;;;;;;;;9403:226;;;;;;;;;;-1:-1:-1;9403:226:13;;;;;:::i;:::-;;:::i;:::-;;14631:219;;;;;;;;;;-1:-1:-1;14631:219:13;;;;;:::i;:::-;;:::i;12490:207::-;;;;;;;;;;;;;:::i;12993:230::-;;;;;;;;;;-1:-1:-1;12993:230:13;;;;;:::i;:::-;;:::i;3586:1618:12:-;;;;;;:::i;:::-;;:::i;3153:227::-;;;;;;;;;;;;;:::i;:::-;;;3233:25:21;;;3221:2;3206:18;3153:227:12;3087:177:21;10442:96:13;;;;;;;;;;;;;:::i;5234:180::-;;;;;;;;;;;;;:::i;14182:187::-;;;;;;;;;;-1:-1:-1;14182:187:13;;;;;:::i;:::-;;:::i;12159:202::-;;;;;;;;;;;;;:::i;11383:596:7:-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;:::i;1806:168:18:-;;;;;;;;;;;;;:::i;:::-;;;5299:42:21;5287:55;;;5269:74;;5257:2;5242:18;1806:168:18;5123:226:21;11593:156:13;;;;;;;;;;-1:-1:-1;11593:156:13;;;;;:::i;:::-;;:::i;6159:160::-;;;;;;;;;;;;;:::i;4913:176::-;;;;;;;;;;;;;:::i;5653:343::-;;;;;;;;;;-1:-1:-1;5653:343:13;;;;;:::i;:::-;;:::i;6475:174::-;;;;;;;;;;;;;:::i;4527:98::-;;;;;;;;;;-1:-1:-1;4527:98:13;;;;;:::i;:::-;;:::i;10912:139::-;;;;;;;;;;-1:-1:-1;10912:139:13;;;;;:::i;:::-;;:::i;13574:337::-;;;;;;;;;;-1:-1:-1;13574:337:13;;;;;:::i;:::-;;:::i;2127:183:18:-;;;;;;;;;;;;;:::i;9827:176:13:-;;;;;;;;;;-1:-1:-1;9827:176:13;;;;;:::i;:::-;;:::i;7380:1538::-;;;;;;;;;;-1:-1:-1;7380:1538:13;;;;;:::i;:::-;;:::i;15073:206::-;;;;;;;;;;-1:-1:-1;15073:206:13;;;;;:::i;:::-;;:::i;10204:110::-;;;;;;;;;;-1:-1:-1;10204:110:13;;;;;:::i;:::-;;:::i;2751:58:1:-;:::o;17218:637:13:-;17348:13;17377:14;17394:33;:10;;:31;:33::i;:::-;17377:50;-1:-1:-1;17442:20:13;;;17438:220;;17487:7;:5;:7::i;:::-;17478:16;;17438:220;;;17568:36;17597:6;17568:28;:36::i;:::-;17550:15;:54;17525:122;;;;;;;;;;;;;;;;;17724:6;17698:24;17691:40;17774:4;17767;17761:11;17757:22;17751:4;17744:36;17807:41;17830:5;17837:10;;17807:22;:41::i;:::-;17800:48;;;17218:637;;;;;;:::o;9403:226::-;3308:10;3330:4;3308:27;3300:48;;;;;;;;;;;;;;;;;9508:46:::1;9526:14;9542:11;9508:17;:46::i;:::-;9594:14;9570:52;;;9610:11;9570:52;;;;3233:25:21::0;;3221:2;3206:18;;3087:177;9570:52:13::1;;;;;;;;9403:226:::0;;:::o;14631:219::-;3498:8;:6;:8::i;:::-;3510:1;3498:13;3490:35;;;;;;;;;;;;;;;;;3606:9;:7;:9::i;:::-;3585:45;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3574:8;:6;:8::i;:::-;:58;;;;:::i;:::-;3556:15;:76;3535:148;;;;;;;;;;;;;;;;;3789:13:::1;:11;:13::i;:::-;14736:51:::2;::::0;;;;:33:::2;8943:55:21::0;;;14736:51:13::2;::::0;::::2;8925:74:21::0;14781:5:13::2;9015:18:21::0;;;9008:50;14736:33:13;::::2;::::0;::::2;::::0;8898:18:21;;14736:51:13::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;14803:40:13::2;::::0;::::2;::::0;;::::2;::::0;-1:-1:-1;14803:40:13;::::2;::::0;-1:-1:-1;14803:40:13::2;::::0;;;::::2;14631:219:::0;;:::o;12490:207::-;3498:8;:6;:8::i;:::-;3510:1;3498:13;3490:35;;;;;;;;;;;;;;;;;3606:9;:7;:9::i;:::-;3585:45;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3574:8;:6;:8::i;:::-;:58;;;;:::i;:::-;3556:15;:76;3535:148;;;;;;;;;;;;;;;;;3789:13:::1;:11;:13::i;:::-;12549:12:::2;2495:46;2540:1;2503:33;2495:46;:::i;:::-;2487:55;12625:15:::0;;12665:25:::2;::::0;12674:15:::2;3233:25:21::0;;2487:55:13;;-1:-1:-1;12665:25:13::2;::::0;3221:2:21;3206:18;12665:25:13::2;;;;;;;;12539:158;12490:207::o:0;12993:230::-;3498:8;:6;:8::i;:::-;3510:1;3498:13;3490:35;;;;;;;;;;;;;;;;;3606:9;:7;:9::i;:::-;3585:45;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3574:8;:6;:8::i;:::-;:58;;;;:::i;:::-;3556:15;:76;3535:148;;;;;;;;;;;;;;;;;3789:13:::1;:11;:13::i;:::-;13130:33:::2;:19;::::0;::::2;13150:3:::0;13155:7;13130:19:::2;:33::i;:::-;13203:3;13179:37;;13195:6;13179:37;;;13208:7;13179:37;;;;3233:25:21::0;;3221:2;3206:18;;3087:177;13179:37:13::2;;;;;;;;12993:230:::0;;;:::o;3586:1618:12:-;3720:17:5;:15;:17::i;:::-;3739:36:12::1;3757:17;3739;:36::i;:::-;3888:17;3884:2;3880:26;3876:2;3872:35;3851:56;;3958:16;3952:4;3945:30;4001:10;3995:4;3988:24;4056:28;4261:1;4253:4;4247;4241;4235;4216:17;4209:5;4198:60;4192:67;4189:74;4179:199;;4296:10;4290:4;4283:24;4359:4;4353;4346:18;4179:199;4483:17;4456:25;4450:4;4438:10;4433:68;4514:28:::0;;;4672:516;::::1;;;4800:4;4794:11;4851;4838;4835:1;4822:41;4957:4;4945:10;4932:11;4929:1;4910:17;4903:5;4890:72;4880:294;;5091:16;5085:4;5082:1;5067:41;5139:16;5136:1;5129:27;4880:294;;4672:516;3586:1618:::0;;;:::o;3153:227::-;3220:7;3930:20:5;:18;:20::i;:::-;-1:-1:-1;2188:66:12::1;3153:227:::0;:::o;10442:96:13:-;3308:10;3330:4;3308:27;3300:48;;;;;;;;;;;;;;;;;10505:26:::1;:24;:26::i;5234:180::-:0;5273:15;;2495:46;2540:1;2503:33;2495:46;:::i;:::-;5387:11;;5234:180;-1:-1:-1;;5234:180:13:o;14182:187::-;3498:8;:6;:8::i;:::-;3510:1;3498:13;3490:35;;;;;;;;;;;;;;;;;3606:9;:7;:9::i;:::-;3585:45;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3574:8;:6;:8::i;:::-;:58;;;;:::i;:::-;3556:15;:76;3535:148;;;;;;;;;;;;;;;;;3789:13:::1;:11;:13::i;:::-;14281:31:::2;:18;::::0;::::2;14300:8:::0;14310:1:::2;14281:18;:31::i;:::-;14353:8;14328:34;;14345:6;14328:34;;;;;;;;;;;;14182:187:::0;;:::o;12159:202::-;3789:13;:11;:13::i;:::-;12205:12:::1;2495:46;2540:1;2503:33;2495:46;:::i;:::-;12294:11;12281:25:::0;;;12331:23:::1;::::0;3233:25:21;;;2487:55:13;;-1:-1:-1;12331:23:13::1;::::0;3221:2:21;3206:18;12331:23:13::1;3087:177:21::0;11383:596:7;11721:16;11508:18;;11481:13;;;11508:18;11779:23;19439:22:13;;;;;;;;;;;;;;;;;;;;19471:13;;;;;;;;;;;;;;;;19439:22;19269:222;11779:23:7;11383:596;;11761:41;;;-1:-1:-1;11822:13:7;;-1:-1:-1;11873:4:7;;-1:-1:-1;11383:596:7;;-1:-1:-1;11383:596:7;:::o;1806:168:18:-;1852:14;;1049:45;1093:1;1057:32;1049:45;:::i;11593:156:13:-;11693:49;11720:9;11731:10;;11693:26;:49::i;6159:160::-;6194:7;;6242:29;6250:4;6242:27;:29::i;:::-;6231:61;;;;;;;;;;;;:::i;4913:176::-;4951:14;;2304:45;2348:1;2312:32;2304:45;:::i;5653:343::-;5753:19;;2744:68;2811:1;2752:55;2744:68;:::i;:::-;2736:77;5872:21;;;5913:4;5906:18;-1:-1:-1;;5974:4:13;5958:21;;5952:28;;5653:343::o;6475:174::-;6515:7;;6567:29;6575:4;6567:27;:29::i;:::-;6556:61;;;;;;;;;;;;:::i;:::-;-1:-1:-1;6534:83:13;6475:174;-1:-1:-1;;6475:174:13:o;4527:98::-;2002:66:8;3769:8;;3867:1;3857:12;;3951:398;;;;4111:1;4107;4104;4100:9;4097:16;4085:9;4073:22;4070:44;4060:189;;4151:10;4145:4;4138:24;4226:4;4220;4213:18;4060:189;4288:1;4284;4279:3;4275:11;4271:19;4266:24;;3951:398;;4594:24:13::1;4611:6;4594:16;:24::i;:::-;4448:1:8::0;4445:264;;;4549:1;4546;4539:12;4630:1;4624:4;4617:15;4666:28;4660:4;4654;4649:46;4445:264;4431:288;4527:98:13;:::o;10912:139::-;3308:10;3330:4;3308:27;3300:48;;;;;;;;;;;;;;;;;11004:40:::1;11021:15;11038:5;;11004:16;:40::i;13574:337::-:0;3498:8;:6;:8::i;:::-;3510:1;3498:13;3490:35;;;;;;;;;;;;;;;;;3606:9;:7;:9::i;:::-;3585:45;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3574:8;:6;:8::i;:::-;:58;;;;:::i;:::-;3556:15;:76;3535:148;;;;;;;;;;;;;;;;;3789:13:::1;:11;:13::i;:::-;13760:77:::2;::::0;;;;:37:::2;::::0;::::2;::::0;::::2;::::0;:77:::2;::::0;13806:4:::2;::::0;13813:3;;13818:4;;;;13824:8;;;;13760:77:::2;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13884:3;13853:51;;13876:6;13853:51;;;13889:4;;13895:8;;13853:51;;;;;;;;;:::i;:::-;;;;;;;;13574:337:::0;;;;;;:::o;2127:183:18:-;2180:14;;1267:52;1318:1;1275:39;1267:52;:::i;9827:176:13:-;3308:10;3330:4;3308:27;3300:48;;;;;;;;;;;;;;;;;9908:36:::1;9926:14;9942:1;9908:17;:36::i;:::-;9960;::::0;::::1;::::0;::::1;::::0;::::1;::::0;;;::::1;9827:176:::0;:::o;7380:1538::-;3110:9;:7;:9::i;:::-;3096:23;;:10;:23;;;3088:47;;;;;;;;;;;;;;;;;7508:1:::1;7486:12;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;:19;;:23;7478:46;;;;;;;;;;;;;;;;;7567:4;7542:13;;::::0;::::1;:6:::0;:13:::1;:::i;:::-;:30;;;7534:56;;;;;;;;;;;;;;;;;7600:21;::::0;2304:45:::1;2348:1;2312:32;2304:45;:::i;:::-;7728:16:::0;;7794:1:::1;7775:21:::0;::::1;7757:40:::0;;7728:16;-1:-1:-1;2296:54:13;-1:-1:-1;7824:12:13::1;::::0;::::1;;:29:::0;::::1;7816:54;;;;;;;;;;;;;;;;;7907:6;:15;;;7888;:34;;7880:54;;;;;;;;;;;;;;;;;7945:17;7965:13;:11;:6:::0;:11:::1;:::i;:::-;;:13::i;:::-;7945:33;;7988:19;8010:25;8025:9;8010:14;:25::i;:::-;7988:47:::0;-1:-1:-1;8112:19:13;8067:41:::1;7988:47:::0;8097:10;;8067:16:::1;:41::i;:::-;:64:::0;::::1;;8046:115;;;;;;;;;;;;;;;;;8172:20;::::0;8195:33:::1;:10:::0;;:31:::1;:33::i;:::-;:47;;;;8172:70;;8253:9;8272:596;8283:12;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;:19;;8279:1;:23;8272:596;;;8345:15;8344:16;:59;;;-1:-1:-1::0;8398:4:13::1;8364:12;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;8377:1;8364:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:22;::::0;::::1;::::0;::::1;::::0;::::1;:::i;:::-;:39;;;;8344:59;8319:149;;;;;;;;;;;;;;;;;8484:12;::::0;8537::::1;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;8550:1;8537:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:22;::::0;::::1;::::0;::::1;::::0;::::1;:::i;:::-;:27;;8572:12;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;8585:1;8572:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:21;;;8595:12;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;8608:1;8595:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:20;::::0;::::1;::::0;::::1;::::0;::::1;:::i;:::-;8537:79;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8483:133;;;;8639:7;8631:30;;;;;;;;;;;;;;;;;8708:12;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;8721:1;8708:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:22;::::0;::::1;::::0;::::1;::::0;::::1;:::i;:::-;8681:116;;;8732:12;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;8745:1;8732:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:21;;;8755:12;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;8768:1;8755:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:20;::::0;::::1;::::0;::::1;::::0;::::1;:::i;:::-;8777:6;8681:116;;;;;;;;;:::i;:::-;;;;;;;;-1:-1:-1::0;;8840:3:13::1;;8272:596;;;8883:28;::::0;8897:13;;8883:28:::1;::::0;;;::::1;7468:1450;;;;;;7380:1538:::0;;;:::o;15073:206::-;3498:8;:6;:8::i;:::-;3510:1;3498:13;3490:35;;;;;;;;;;;;;;;;;3606:9;:7;:9::i;:::-;3585:45;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3574:8;:6;:8::i;:::-;:58;;;;:::i;:::-;3556:15;:76;3535:148;;;;;;;;;;;;;;;;;3789:13:::1;:11;:13::i;:::-;15175:36:::2;15193:14;15209:1;15175:17;:36::i;:::-;15227:45;::::0;::::2;::::0;::::2;::::0;::::2;::::0;;;::::2;15073:206:::0;:::o;10204:110::-;3308:10;3330:4;3308:27;3300:48;;;;;;;;;;;;;;;;;10278:29:::1;10297:9;10278:18;:29::i;:::-;10204:110:::0;:::o;1055:648:19:-;1159:21;1486:26;1461:4;1442:17;1438:28;1419:17;1415:52;1402:66;1382:144;1379:308;;-1:-1:-1;1642:31:19;;1379:308;1055:648;;;;:::o;1237:1144:0:-;1364:13;1721:9;1717:222;;1899:6;1890;1870:17;;:26;:35;1853:52;;1849:75;;-1:-1:-1;1907:17:0;;;1849:75;1958:12;1973:66;1998:4;2004:34;2028:9;;2004:23;:34::i;:::-;1973:24;:66::i;:::-;2347:15;2344:1;2340:23;2328:10;2325:39;2320:3;2316:49;;1237:1144;-1:-1:-1;;;;;1237:1144:0:o;16126:291:13:-;16210:12;2744:68;2811:1;2752:55;2744:68;:::i;:::-;2736:77;16294:21;;;16335:4;16328:18;-1:-1:-1;16382:4:13;16366:21;;;16359:42;16126:291::o;3734:108:18:-;3811:7;:5;:7::i;:::-;3797:21;;:10;:21;;;3789:46;;;;;;;;;;;;;;;;16340:887:10;16503:2;16497:4;16490:16;16560:6;16554:4;16547:20;16625:34;16619:4;16612:48;16821:4;16815;16809;16803;16800:1;16793:5;16786;16781:45;16873:7;16869:1;16862:4;16856:11;16853:18;16849:32;16839:275;;16964:7;16945:16;16936:5;16924:18;16917:26;16914:48;16911:61;16901:199;;17009:10;17003:4;16996:24;17077:4;17071;17064:18;16901:199;16839:275;17140:1;17134:4;17127:15;16340:887;;;:::o;3017:123:5:-;2687:4;2661:6;:32;3076:57;;3101:32;:30;:32::i;15691:242:13:-;3308:10;3330:4;3308:27;3300:48;;;;;;;;;;;;;;;;;15827:9:::1;:7;:9::i;:::-;15806:73;::::0;;;;:56:::1;5287:55:21::0;;;15806:73:13::1;::::0;::::1;5269:74:21::0;15806:56:13;;;::::1;::::0;::::1;::::0;5242:18:21;;15806:73:13::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;15785:141;;;;;;;;;;;;;;;;3278:127:5::0;2687:4;2661:6;:32;3340:58;;3366:32;:30;:32::i;4735:250:18:-;4798:15;4816:14;:12;:14::i;:::-;4798:32;-1:-1:-1;4849:21:18;;;4841:48;;;;;;;;;;;;;;;;;4900:28;4925:1;4900:16;:28::i;:::-;4944:34;;;;;;;;;;;4788:197;4735:250::o;19032:823:10:-;19194:2;19188:4;19181:16;19251:6;19245:4;19238:20;19316:34;19310:4;19303:48;19450:4;19444;19438;19432;19429:1;19422:5;19415;19410:45;19502:7;19498:1;19491:4;19485:11;19482:18;19478:32;19468:274;;19593:7;19574:16;19565:5;19553:18;19546:26;19543:48;19540:61;19530:198;;19638:10;19632:4;19625:24;19705:4;19699;19692:18;5361:850:18;5561:9;5542:15;:28;;5534:48;;;;;;;;;;;;;;;;;5593:15;5611:14;:12;:14::i;:::-;5593:32;-1:-1:-1;5687:21:18;;;5679:48;;;;;;;;;;;;;;;;;5769:60;;;1457:65;5769:60;;;18676:25:21;18749:42;18737:55;;18717:18;;;18710:83;;;;18809:18;;;18802:34;;;5738:18:18;;18649::21;;5769:60:18;;;;;;;;;;;;5759:71;;;;;;5738:92;;5840:14;5857:26;5872:10;5857:14;:26::i;:::-;5840:43;;5977:7;5932:52;;:41;5954:6;5962:10;;5932:21;:41::i;:::-;:52;;;5924:81;;;;;;;;;;;;;;;;;6016:21;6040:7;:5;:7::i;:::-;6016:31;;6082:28;6107:1;6082:16;:28::i;:::-;6120:18;6130:7;6120:9;:18::i;:::-;6196:7;6154:50;;6181:13;6154:50;;;;;;;;;;;;5480:731;;;;5361:850;;;:::o;62337:454:9:-;62510:4;62504:11;62545:12;62559:32;62563:21;;62559:32;62541:51;62528:65;;;62689:4;62672:22;;;;62586:4;;62649:15;;62575:8;62627:68;62748:4;62742;62738:15;62731:4;62725:11;62721:33;62715:4;62708:47;62337:454;;;:::o;2677:289:18:-;2757:23;;;2749:48;;;;;;;;;;;;;;;;;2808:12;1049:45;1093:1;1057:32;1049:45;:::i;:::-;2868:23;;;2916:43;;1041:54;;-1:-1:-1;2916:43:18;;;;1041:54;;2916:43;;1041:54;;2916:43;2739:227;2677:289;:::o;1943:246:20:-;2001:7;868:19;;;;;;;;;;;;;;;;;852:37;;;;;;2094:6;:13;;;2109:6;:12;;;2123:6;:15;;;2140:18;2145:6;:12;;;2140:4;:18::i;:::-;2050:122;;;;;;19106:25:21;;;;19179:42;19167:55;;;19147:18;;;19140:83;;;;19239:18;;;19232:34;;;;19282:18;;;19275:34;19325:19;;;19318:35;19078:19;;2050:122:20;;;;;;;;;;;;;2027:155;;;;;;2020:162;;1943:246;;;:::o;6666:885:7:-;6975:22;13508:11;13649:9;13646:25;13463:14;13619:9;13616:28;13612:60;7011:73;;-1:-1:-1;12939:4:7;12933:11;;13000:16;12990:27;;12777:15;13044:4;13037:12;;13030:31;12820:18;13095:12;;;13088:33;;;;13155:9;13148:4;13141:12;;13134:31;13199:9;13192:4;13185:12;;13178:31;13248:4;13235:18;;7011:73;7218:18;7212:4;7205:32;7284:6;7278:4;7271:20;7348:10;7342:4;7335:24;7424:4;7418;7408:21;7398:31;;7533:1;7527:4;7520:15;6666:885;;;:::o;4402:220:18:-;4484:23;;;4476:48;;;;;;;;;;;;;;;;;4535:27;4552:9;4535:16;:27::i;:::-;4578:37;;;;;;;;;;;4402:220;:::o;3600:770:0:-;3768:9;;4073:6;4117;4104:9;4089:25;;4085:30;4081:43;4069:56;4006:44;;;4025:24;4006:44;3993:58;3973:186;3970:384;;-1:-1:-1;4238:4:0;4219:24;;4206:38;4187:58;4335:4;4328:12;;;4279:15;3970:384;3600:770;;;;;:::o;4445:360::-;4582:4;4609:54;4647:4;4653:9;;4609:37;:54::i;:::-;:126;;;;4679:56;4719:4;4725:9;;4679:39;:56::i;:::-;4609:189;;;;4751:47;4782:4;4788:9;;4751:30;:47::i;:::-;4602:196;4445:360;-1:-1:-1;;;;4445:360:0:o;4257:234:5:-;4401:10;4395:4;4388:24;4470:4;4464;4457:18;3475:187:18;3551:12;1267:52;1318:1;1275:39;1267:52;:::i;:::-;3619:27;;;;-1:-1:-1;3475:187:18:o;4336:1373:6:-;4448:14;4565:4;4559:11;4717:16;4755:2;4750:297;;;;5069:2;5064:204;;;;5295:8;;;4750:297;4825:4;4803:27;;;4790:41;4873:3;4869:12;;;4883:2;4865:21;4852:35;;;4929:30;;4923:4;4916:44;5002:18;;4996:4;4989:32;4750:297;;5064:204;5150:4;5132:16;5128:27;5115:41;5112:1;5107:50;5101:4;5094:64;5224:4;5206:16;5200:4;5187:42;4710:595;;5335:4;5329;5322:18;5412:4;5406;5400;5394;5391:1;5384:5;5373:44;5367:51;5357:61;;5448:1;5442:4;5435:15;5506:1;5500:4;5493:15;5653:16;5672:5;5650:29;;4606:10;4600:4;4593:24;4672:4;4666;4659:18;4544:1149;4548:24;4336:1373;;;;;:::o;3090:257:18:-;3155:16;3174:7;:5;:7::i;:::-;3155:26;-1:-1:-1;3191:12:18;1049:45;1093:1;1057:32;1049:45;:::i;:::-;3251:23;;;3299:41;;1041:54;;-1:-1:-1;3299:41:18;;;;;;;;;;;1041:54;;3299:41;3145:202;;3090:257;:::o;2385:292:20:-;2444:7;2463:23;2503:6;:13;2489:28;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2489:28:20;;2463:54;;2532:9;2527:92;2547:6;:13;2543:1;:17;2527:92;;;2593:15;2598:6;2605:1;2598:9;;;;;;;;:::i;:::-;;;;;;;2593:4;:15::i;:::-;2581:6;2588:1;2581:9;;;;;;;;:::i;:::-;;;;;;;;;;:27;2562:3;;2527:92;;;;2662:6;2645:24;;;;;;;;:::i;:::-;;;;;;;;;;;;;2635:35;;;;;;2628:42;;;2385:292;;;:::o;4989:273:0:-;5139:11;5170:22;:20;:22::i;:::-;5166:89;;;5203:52;5239:4;5245:9;;5203:35;:52::i;9312:5575::-;9464:11;9527:4;9642:15;;9638:911;;9709:18;9745:21;9784:15;9817:25;9860:12;9890:14;:12;:14::i;:::-;-1:-1:-1;10003:4:0;9997:11;;10198;;10191:4;10181:15;;;10171:39;10157:12;;;10150:61;10279:14;;10259:18;;;;10249:45;;;;10242:4;10235:12;;10228:67;10326:4;10319:12;;10312:29;;;;10379:35;;10372:4;10365:12;;10358:57;10446:4;10439:12;;10432:26;10495:4;10488:12;;10475:26;;9997:11;-1:-1:-1;;;;;;;9638:911:0;10639:4;10633:11;10872:1;10854:16;10850:24;10832:16;10828:47;10815:61;10810:3;10806:71;10939:1;10933:4;10929:12;11063:1;11045:16;11041:24;11023:16;11019:47;11124:6;11118:4;11111:20;11202:4;11199:1;11193:4;11180:27;11610:1;11603:9;11599:1;11581:16;11578:23;11575:38;11568:4;11561;11555;11545:21;11541:32;11538:76;11535:434;;;11642:1;11637:6;;11747:23;11744:1;11737:34;11805:4;11799;11792:18;11877:4;11874:1;11864:18;11856:26;;11946:5;;;;11535:434;12146:16;12143:1;12136:27;12251:4;12248:1;12244:12;12349:1;12342:4;12339:1;12335:12;12332:1;12319:32;12426:2;12415:9;;;12408:21;;;12503:17;;12497:24;12494:1;12489:33;12524:2;12486:41;12476:669;;12560:1;12658;12654;12651;12647:9;12643:17;12628:239;12706:1;12703;12699:9;12694:14;;12830:2;12824:1;12821;12817:9;12811:16;12808:1;12803:25;12800:33;12796:1;12793;12790:8;12787:47;12628:239;12777:68;12632:30;12900:1;12897;12893:9;12888:14;;13014:1;13010;13003:4;13000:1;12996:12;12992:20;12989:1;12976:40;13080:2;13076:1;13073;13069:9;13061:22;;12476:669;13264:33;13259:1;13253:8;13250:1;13245:17;13241:57;13395:178;13431:2;13426:1;13420:8;13417:1;13412:17;13409:25;13395:178;;13525:1;13508:14;13503:1;13497:8;13494:1;13489:17;13485:38;13482:45;13477:50;;13450:1;13447;13443:9;13438:14;;13395:178;;;13600:30;13597:1;13590:41;13704:34;13697:4;13694:1;13690:12;13683:56;13777:34;13770:4;13767:1;13763:12;13756:56;13841:4;13838:1;13834:12;13829:17;;13893:1;13886:4;13883:1;13879:12;13876:1;13863:32;14025:4;14022:1;14019;14006:24;14128:9;;;14124:17;;;14111:31;;14101:42;;14343:4;14330:18;;14324:4;14317:32;14519:1;14515:9;14509:4;14505:20;14499:4;14489:37;;-1:-1:-1;;14563:24:0;;;;10890:3760;-1:-1:-1;14670:4:0;14663:15;14737:1;14733:48;;14761:20;14776:4;14761:14;:20::i;:::-;14754:27;;14733:48;14828:52;14864:4;14870:9;;14828:35;:52::i;15068:2123::-;15211:11;15460;15456:1729;;15594:10;15582;15575:30;15723:42;15865:4;15853:10;15841;15829;15826:1;15818:6;15807:63;15803:68;16007:10;16001:17;15991:1095;;16057:4;16051:11;16136:10;16124;16117:30;16219:1;16213:4;16206:15;16304:4;16298;16291:18;16375:10;16362;16354:6;16350:23;16347:39;16537:9;16530:5;16527:20;16523:1;16517:4;16514:11;16511:37;16508:54;;;16551:9;16508:54;16984:10;16972;16966:4;16960;16949:9;16938;16927:68;-1:-1:-1;;17024:4:0;17017:15;15991:1095;;17122:52;17158:4;17164:9;;17122:35;:52::i;2830:306:20:-;2994:12;;3024:11;;;;;3063:10;;;;;3053:21;;;;;;2935:184;;328:58;2935:184;;;20126:25:21;;;;20199:42;20187:55;;;20167:18;;;20160:83;20259:18;;;20252:34;20302:18;;;20295:34;;;;2886:7:20;;20098:19:21;;2935:184:20;19895:440:21;18271:125:13;18343:4;18380:9;:7;:9::i;:::-;18366:23;;:10;:23;;;18359:30;;18271:125;:::o;18647:363::-;18796:4;18816:14;18833:16;18073:24;18067:31;;17942:172;18833:16;18816:33;-1:-1:-1;18925:20:13;;;;;;;18924:79;;;18996:6;18951:51;;:41;18976:4;18982:9;;18951:24;:41::i;:::-;:51;;;;18647:363;-1:-1:-1;;;;;18647:363:13:o;9664:1284:6:-;9779:14;9896:4;9890:11;9934:16;9972:2;9967:297;;;;10286:2;10281:204;;;;10512:5;;;9967:297;10042:4;10020:27;;;10007:41;10090:3;10086:12;;;10100:2;10082:21;10069:35;;;10146:30;;10140:4;10133:44;10219:18;;10213:4;10206:32;9967:297;;10281:204;10367:4;10349:16;10345:27;10332:41;10329:1;10324:50;10318:4;10311:64;10441:4;10423:16;10417:4;10404:42;9927:592;;10549:4;10543;10536:18;10614:4;10608;10602;10596;10593:1;10586:5;10575:44;10571:49;10650:1;10644:4;10637:15;10810:16;10804:4;10800:27;10794:34;10784:44;;10858:1;10852:4;10845:15;9879:24;9664:1284;;;;;:::o;14:347:21:-;65:8;75:6;129:3;122:4;114:6;110:17;106:27;96:55;;147:1;144;137:12;96:55;-1:-1:-1;170:20:21;;213:18;202:30;;199:50;;;245:1;242;235:12;199:50;282:4;274:6;270:17;258:29;;334:3;327:4;318:6;310;306:19;302:30;299:39;296:59;;;351:1;348;341:12;366:477;445:6;453;461;514:2;502:9;493:7;489:23;485:32;482:52;;;530:1;527;520:12;482:52;566:9;553:23;543:33;;627:2;616:9;612:18;599:32;654:18;646:6;643:30;640:50;;;686:1;683;676:12;640:50;725:58;775:7;766:6;755:9;751:22;725:58;:::i;:::-;366:477;;802:8;;-1:-1:-1;699:84:21;;-1:-1:-1;;;;366:477:21:o;1101:154::-;1187:42;1180:5;1176:54;1169:5;1166:65;1156:93;;1245:1;1242;1235:12;1260:367;1328:6;1336;1389:2;1377:9;1368:7;1364:23;1360:32;1357:52;;;1405:1;1402;1395:12;1357:52;1444:9;1431:23;1463:31;1488:5;1463:31;:::i;:::-;1513:5;1591:2;1576:18;;;;1563:32;;-1:-1:-1;;;1260:367:21:o;1632:388::-;1700:6;1708;1761:2;1749:9;1740:7;1736:23;1732:32;1729:52;;;1777:1;1774;1767:12;1729:52;1816:9;1803:23;1835:31;1860:5;1835:31;:::i;:::-;1885:5;-1:-1:-1;1942:2:21;1927:18;;1914:32;1955:33;1914:32;1955:33;:::i;:::-;2007:7;1997:17;;;1632:388;;;;;:::o;2025:508::-;2102:6;2110;2118;2171:2;2159:9;2150:7;2146:23;2142:32;2139:52;;;2187:1;2184;2177:12;2139:52;2226:9;2213:23;2245:31;2270:5;2245:31;:::i;:::-;2295:5;-1:-1:-1;2352:2:21;2337:18;;2324:32;2365:33;2324:32;2365:33;:::i;:::-;2025:508;;2417:7;;-1:-1:-1;;;2497:2:21;2482:18;;;;2469:32;;2025:508::o;2538:544::-;2617:6;2625;2633;2686:2;2674:9;2665:7;2661:23;2657:32;2654:52;;;2702:1;2699;2692:12;2654:52;2741:9;2728:23;2760:31;2785:5;2760:31;:::i;:::-;2810:5;-1:-1:-1;2866:2:21;2851:18;;2838:32;2893:18;2882:30;;2879:50;;;2925:1;2922;2915:12;3451:348;3493:3;3531:5;3525:12;3558:6;3553:3;3546:19;3614:6;3607:4;3600:5;3596:16;3589:4;3584:3;3580:14;3574:47;3666:1;3659:4;3650:6;3645:3;3641:16;3637:27;3630:38;3788:4;3718:66;3713:2;3705:6;3701:15;3697:88;3692:3;3688:98;3684:109;3677:116;;;3451:348;;;;:::o;3804:1314::-;4201:66;4193:6;4189:79;4178:9;4171:98;4305:3;4300:2;4289:9;4285:18;4278:31;4152:4;4332:46;4373:3;4362:9;4358:19;4350:6;4332:46;:::i;:::-;4426:9;4418:6;4414:22;4409:2;4398:9;4394:18;4387:50;4460:33;4486:6;4478;4460:33;:::i;:::-;4524:2;4509:18;;4502:34;;;4585:42;4573:55;;4567:3;4552:19;;4545:84;4660:3;4645:19;;4638:35;;;4710:22;;;4704:3;4689:19;;4682:51;4782:13;;4804:22;;;4854:2;4880:15;;;;-1:-1:-1;4842:15:21;;;;-1:-1:-1;4923:169:21;4937:6;4934:1;4931:13;4923:169;;;4998:13;;4986:26;;5041:2;5067:15;;;;5032:12;;;;4959:1;4952:9;4923:169;;;-1:-1:-1;5109:3:21;;3804:1314;-1:-1:-1;;;;;;;;;;;3804:1314:21:o;5882:247::-;5941:6;5994:2;5982:9;5973:7;5969:23;5965:32;5962:52;;;6010:1;6007;6000:12;5962:52;6049:9;6036:23;6068:31;6093:5;6068:31;:::i;6134:367::-;6197:8;6207:6;6261:3;6254:4;6246:6;6242:17;6238:27;6228:55;;6279:1;6276;6269:12;6228:55;-1:-1:-1;6302:20:21;;6345:18;6334:30;;6331:50;;;6377:1;6374;6367:12;6331:50;6414:4;6406:6;6402:17;6390:29;;6474:3;6467:4;6457:6;6454:1;6450:14;6442:6;6438:27;6434:38;6431:47;6428:67;;;6491:1;6488;6481:12;6506:1045;6646:6;6654;6662;6670;6678;6686;6739:3;6727:9;6718:7;6714:23;6710:33;6707:53;;;6756:1;6753;6746:12;6707:53;6795:9;6782:23;6814:31;6839:5;6814:31;:::i;:::-;6864:5;-1:-1:-1;6921:2:21;6906:18;;6893:32;6934:33;6893:32;6934:33;:::i;:::-;6986:7;-1:-1:-1;7044:2:21;7029:18;;7016:32;7071:18;7060:30;;7057:50;;;7103:1;7100;7093:12;7057:50;7142:70;7204:7;7195:6;7184:9;7180:22;7142:70;:::i;:::-;7231:8;;-1:-1:-1;7116:96:21;-1:-1:-1;;7319:2:21;7304:18;;7291:32;7348:18;7335:32;;7332:52;;;7380:1;7377;7370:12;7332:52;7419:72;7483:7;7472:8;7461:9;7457:24;7419:72;:::i;:::-;6506:1045;;;;-1:-1:-1;6506:1045:21;;-1:-1:-1;6506:1045:21;;7510:8;;6506:1045;-1:-1:-1;;;6506:1045:21:o;7556:688::-;7660:6;7668;7676;7729:2;7717:9;7708:7;7704:23;7700:32;7697:52;;;7745:1;7742;7735:12;7697:52;7785:9;7772:23;7818:18;7810:6;7807:30;7804:50;;;7850:1;7847;7840:12;7804:50;7873:22;;7929:3;7911:16;;;7907:26;7904:46;;;7946:1;7943;7936:12;8249:184;8319:6;8372:2;8360:9;8351:7;8347:23;8343:32;8340:52;;;8388:1;8385;8378:12;8340:52;-1:-1:-1;8411:16:21;;8249:184;-1:-1:-1;8249:184:21:o;8438:::-;8490:77;8487:1;8480:88;8587:4;8584:1;8577:15;8611:4;8608:1;8601:15;8627:125;8692:9;;;8713:10;;;8710:36;;;8726:18;;:::i;9069:128::-;9136:9;;;9157:11;;;9154:37;;;9171:18;;:::i;9202:320::-;9289:6;9297;9350:2;9338:9;9329:7;9325:23;9321:32;9318:52;;;9366:1;9363;9356:12;9318:52;9398:9;9392:16;9417:31;9442:5;9417:31;:::i;:::-;9512:2;9497:18;;;;9491:25;9467:5;;9491:25;;-1:-1:-1;;;9202:320:21:o;9527:358::-;9627:6;9622:3;9615:19;9597:3;9657:66;9649:6;9646:78;9643:98;;;9737:1;9734;9727:12;9643:98;9773:6;9770:1;9766:14;9825:8;9818:5;9811:4;9806:3;9802:14;9789:45;9854:18;;;;9874:4;9850:29;;9527:358;-1:-1:-1;;;9527:358:21:o;9890:985::-;10335:42;10327:6;10323:55;10312:9;10305:74;10427:42;10419:6;10415:55;10410:2;10399:9;10395:18;10388:83;10507:3;10502:2;10491:9;10487:18;10480:31;10286:4;10534:74;10603:3;10592:9;10588:19;10580:6;10572;10534:74;:::i;:::-;10656:9;10648:6;10644:22;10639:2;10628:9;10624:18;10617:50;10690:61;10744:6;10736;10728;10690:61;:::i;:::-;10788:22;;;10782:3;10767:19;;;10760:51;;;;-1:-1:-1;;10835:1:21;10820:17;;10866:2;10854:15;;9890:985;-1:-1:-1;;;;;;9890:985:21:o;10880:519::-;11157:2;11146:9;11139:21;11120:4;11183:73;11252:2;11241:9;11237:18;11229:6;11221;11183:73;:::i;:::-;11304:9;11296:6;11292:22;11287:2;11276:9;11272:18;11265:50;11332:61;11386:6;11378;11370;11332:61;:::i;:::-;11324:69;10880:519;-1:-1:-1;;;;;;;10880:519:21:o;11404:628::-;11521:4;11527:6;11587:11;11574:25;11677:66;11666:8;11650:14;11646:29;11642:102;11622:18;11618:127;11608:155;;11759:1;11756;11749:12;11608:155;11786:33;;11838:20;;;-1:-1:-1;11881:18:21;11870:30;;11867:50;;;11913:1;11910;11903:12;11867:50;11946:4;11934:17;;-1:-1:-1;11997:1:21;11993:14;;;11977;11973:35;11963:46;;11960:66;;;12022:1;12019;12012:12;12037:184;12089:77;12086:1;12079:88;12186:4;12183:1;12176:15;12210:4;12207:1;12200:15;12226:253;12298:2;12292:9;12340:4;12328:17;;12375:18;12360:34;;12396:22;;;12357:62;12354:88;;;12422:18;;:::i;:::-;12458:2;12451:22;12226:253;:::o;12484:251::-;12556:2;12550:9;12598:2;12586:15;;12631:18;12616:34;;12652:22;;;12613:62;12610:88;;;12678:18;;:::i;12740:334::-;12811:2;12805:9;12867:2;12857:13;;12872:66;12853:86;12841:99;;12970:18;12955:34;;12991:22;;;12952:62;12949:88;;;13017:18;;:::i;:::-;13053:2;13046:22;12740:334;;-1:-1:-1;12740:334:21:o;13079:2799::-;13177:9;13236:4;13228:5;13212:14;13208:26;13204:37;13201:57;;;13254:1;13251;13244:12;13201:57;13282:22;;:::i;:::-;13341:5;13328:19;13356:33;13381:7;13356:33;:::i;:::-;13398:24;;13491:2;13480:14;;;13467:28;13511:16;;;13504:33;13606:2;13595:14;;;13582:28;13626:16;;;13619:33;13699:2;13688:14;;13675:28;13726:18;13715:30;;13712:50;;;13758:1;13755;13748:12;13712:50;13781:18;;13837:14;13830:4;13822:13;;13818:34;13808:62;;13866:1;13863;13856:12;13808:62;13906:2;13893:16;13932:18;13924:6;13921:30;13918:56;;;13954:18;;:::i;:::-;14000:6;13997:1;13993:14;14027:28;14051:2;14047;14043:11;14027:28;:::i;:::-;14089:19;;;14133:2;14163:11;;;14159:20;;;14124:12;;;;14202:14;14191:26;;14188:46;;;14230:1;14227;14220:12;14188:46;14262:2;14258;14254:11;14243:22;;14274:1529;14290:6;14285:3;14282:15;14274:1529;;;14376:3;14363:17;14412:18;14399:11;14396:35;14393:55;;;14444:1;14441;14434:12;14393:55;14471:20;;14609:2;14519:14;14515:23;;;14540:66;14511:96;14507:105;14504:125;;;14625:1;14622;14615:12;14504:125;14657:22;;:::i;:::-;14728:2;14724;14720:11;14707:25;14745:33;14770:7;14745:33;:::i;:::-;14791:24;;14889:2;14881:11;;14868:25;14926:2;14913:16;;14906:33;14989:2;14981:11;;14968:25;15022:18;15009:32;;15006:52;;;15054:1;15051;15044:12;15006:52;15104:2;15093:8;15089:2;15085:17;15081:26;15071:36;;;15149:14;15142:4;15138:2;15134:13;15130:34;15120:62;;15178:1;15175;15168:12;15120:62;15224:2;15211:16;15256:18;15246:8;15243:32;15240:58;;;15278:18;;:::i;:::-;15326:118;15440:2;15371:66;15364:4;15354:8;15350:19;15346:92;15342:101;15326:118;:::i;:::-;15473:8;15464:7;15457:25;15529:14;15524:2;15513:8;15509:2;15505:17;15501:26;15498:46;15495:66;;;15557:1;15554;15547:12;15495:66;15618:8;15613:2;15609;15605:11;15600:2;15591:7;15587:16;15574:53;15680:1;15675:2;15664:8;15655:7;15651:22;15647:31;15640:42;15720:7;15715:2;15706:7;15702:16;15695:33;;;15753:7;15748:3;15741:20;;;15790:2;15785:3;15781:12;15774:19;;14316:2;14311:3;14307:12;14300:19;;14274:1529;;;15832:2;15819:16;;15812:31;-1:-1:-1;15823:7:21;;13079:2799;-1:-1:-1;;;;;13079:2799:21:o;15883:184::-;15935:77;15932:1;15925:88;16032:4;16029:1;16022:15;16056:4;16053:1;16046:15;16072:380;16162:4;16220:11;16207:25;16310:66;16299:8;16283:14;16279:29;16275:102;16255:18;16251:127;16241:155;;16392:1;16389;16382:12;16241:155;16413:33;;;;;16072:380;-1:-1:-1;;16072:380:21:o;16457:580::-;16534:4;16540:6;16600:11;16587:25;16690:66;16679:8;16663:14;16659:29;16655:102;16635:18;16631:127;16621:155;;16772:1;16769;16762:12;16621:155;16799:33;;16851:20;;;-1:-1:-1;16894:18:21;16883:30;;16880:50;;;16926:1;16923;16916:12;16880:50;16959:4;16947:17;;-1:-1:-1;16990:14:21;16986:27;;;16976:38;;16973:58;;;17027:1;17024;17017:12;17042:271;17225:6;17217;17212:3;17199:33;17181:3;17251:16;;17276:13;;;17251:16;17042:271;-1:-1:-1;17042:271:21:o;17318:680::-;17549:6;17538:9;17531:25;17592:2;17587;17576:9;17572:18;17565:30;17631:6;17626:2;17615:9;17611:18;17604:34;17689:6;17681;17675:3;17664:9;17660:19;17647:49;17746:1;17740:3;17731:6;17720:9;17716:22;17712:32;17705:43;17512:4;17803:66;17798:2;17790:6;17786:15;17782:88;17771:9;17767:104;17931:3;17919:9;17915:2;17911:18;17907:28;17902:2;17891:9;17887:18;17880:56;17953:39;17987:3;17983:2;17979:12;17971:6;17953:39;:::i;18192:277::-;18259:6;18312:2;18300:9;18291:7;18287:23;18283:32;18280:52;;;18328:1;18325;18318:12;18280:52;18360:9;18354:16;18413:5;18406:13;18399:21;18392:5;18389:32;18379:60;;18435:1;18432;18425:12;19364:526;19582:13;;19525:3;;19556;;19651:4;19639:17;;19525:3;19684:179;19698:6;19695:1;19692:13;19684:179;;;19761:13;;19747:28;;19808:4;19797:16;;;;19836:17;;;;19720:1;19713:9;19684:179;;;-1:-1:-1;19879:5:21;;19364:526;-1:-1:-1;;;;;19364:526:21:o","linkReferences":{},"cborAuxdata":{"1":{"value":"0xa2646970667358221220be1e7a1f3704ea0561b079fd27a95bb5471874ad6e2df4c7543ca448cd586c0964736f6c63430008220033","offset":13751}},"immutableReferences":{"2880":[{"start":7269,"length":32},{"start":7579,"length":32}],"3203":[{"start":8828,"length":32}],"3205":[{"start":8863,"length":32}],"3207":[{"start":8943,"length":32}],"3209":[{"start":8981,"length":32}],"3211":[{"start":8795,"length":32}]},"transformations":[{"id":"2880","type":"replace","offset":7269,"reason":"immutable"},{"id":"2880","type":"replace","offset":7579,"reason":"immutable"},{"id":"3203","type":"replace","offset":8828,"reason":"immutable"},{"id":"3205","type":"replace","offset":8863,"reason":"immutable"},{"id":"3207","type":"replace","offset":8943,"reason":"immutable"},{"id":"3209","type":"replace","offset":8981,"reason":"immutable"},{"id":"3211","type":"replace","offset":8795,"reason":"immutable"}],"transformationValues":{"immutables":{"2880":"0x00000000000000000000000058ca52ebe0dadfdf531cde7062e76746de4db1eb","3203":"0x00000000000000000000000058ca52ebe0dadfdf531cde7062e76746de4db1eb","3205":"0x0000000000000000000000000000000000000000000000000000000000000089","3207":"0xd682b529a17cda19aa275f3a050608f9e9401fadd1b0d233d81519972295828b","3209":"0xc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6","3211":"0xb3443f073d0c805a9f042b5280f80cd88e81e20571f9cfe84d54f1fd5164ec85"}}},"deployment":{"transactionHash":"0xc658e1af203addb06c4d50ea8fa923ec8904942975dbb89df87b7ba8b849667d","blockNumber":"84902646","transactionIndex":"123","deployer":"0xcA71EA69c54c163D17beB90BeB8D001E1Eb538A1"},"sources":{"src/DepositWallet.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity 0.8.34;\n\nimport {ERC1271} from \"@solady/src/accounts/ERC1271.sol\";\nimport {Receiver} from \"@solady/src/accounts/Receiver.sol\";\nimport {ERC1155} from \"@solady/src/tokens/ERC1155.sol\";\nimport {ECDSA} from \"@solady/src/utils/ECDSA.sol\";\nimport {Initializable} from \"@solady/src/utils/Initializable.sol\";\nimport {LibClone} from \"@solady/src/utils/LibClone.sol\";\nimport {SafeTransferLib} from \"@solady/src/utils/SafeTransferLib.sol\";\nimport {UUPSUpgradeable} from \"@solady/src/utils/UUPSUpgradeable.sol\";\n\nimport {DepositWalletFactory} from \"@deposit-wallet/src/DepositWalletFactory.sol\";\nimport {Ownable} from \"@deposit-wallet/src/libraries/Ownable.sol\";\nimport {SessionSignerLib} from \"@deposit-wallet/src/libraries/SessionSignerLib.sol\";\nimport {\n    Batch,\n    Call,\n    WalletLib,\n    ERC1271_MAGIC_VALUE\n} from \"@deposit-wallet/src/libraries/WalletLib.sol\";\n\n/// @title DepositWallet\n/// @author Polymarket\n/// @notice Minimal, upgradeable smart-contract wallet for deposit operations.\n/// @dev Deployed as an ERC-1967 proxy via {DepositWalletFactory}. Supports batch execution\n///      of arbitrary calls signed by the owner or an authorized session signer, ERC-1271\n///      signature validation, two-step ownership transfers, and an owner-controlled pause\n///      mechanism with a timelock for emergency asset recovery.\ncontract DepositWallet is UUPSUpgradeable, Initializable, Receiver, ERC1271, Ownable {\n    using LibClone for address;\n    using SafeTransferLib for address;\n    using SessionSignerLib for bytes;\n    using WalletLib for Batch;\n\n    /*--------------------------------------------------------------\n                                 STATE\n    --------------------------------------------------------------*/\n\n    /// @dev Memory slot used to pass the resolved signer from `isValidSignature` to\n    /// `_erc1271Signer`. Chosen at 0x80 (first allocatable slot). Before the super call we advance\n    /// the free memory\n    /// pointer to 0xa0 so the parent and all callees allocate above this slot and do not overwrite.\n    uint256 private constant _ERC1271_SIGNER_MEM_SLOT = 0x80;\n\n    /// @dev Storage slot for the replay-protection nonce. keccak256(\"DepositWallet.nonce\") - 1\n    bytes32 private constant _NONCE_SLOT = bytes32(uint256(keccak256(\"DepositWallet.nonce\")) - 1);\n\n    /// @dev Storage slot for the paused timestamp. keccak256(\"DepositWallet.paused\") - 1\n    bytes32 private constant _PAUSED_SLOT = bytes32(uint256(keccak256(\"DepositWallet.paused\")) - 1);\n\n    /// @dev Base storage slot for the session signer mapping.\n    /// keccak256(\"DepositWallet.sessionSignerAuthorizedUntil\") - 1\n    bytes32 private constant _SESSION_SIGNER_SLOT =\n        bytes32(uint256(keccak256(\"DepositWallet.sessionSignerAuthorizedUntil\")) - 1);\n\n    /*--------------------------------------------------------------\n                               MODIFIERS\n    --------------------------------------------------------------*/\n\n    /// @dev Restricts access to the factory contract.\n    modifier onlyFactory() {\n        require(msg.sender == factory(), OnlyFactory());\n        _;\n    }\n\n    /// @dev Restricts access to calls originating from the wallet itself (i.e., via batch\n    /// execution).\n    modifier onlySelf() {\n        require(msg.sender == address(this), OnlySelf());\n        _;\n    }\n\n    /// @dev Enforces that the contract is paused and the timelock delay has elapsed.\n    modifier onlyPaused() {\n        require(paused() != 0, NotPaused());\n        require(\n            block.timestamp > paused() + DepositWalletFactory(factory()).timelockDelay(),\n            TimelockInsufficientDelay()\n        );\n        _;\n    }\n\n    /// @dev Restricts access to the wallet owner.\n    modifier onlyOwner() {\n        _checkOwner();\n        _;\n    }\n\n    /*--------------------------------------------------------------\n                              CONSTRUCTOR\n    --------------------------------------------------------------*/\n\n    /// @dev Disables initializers on the implementation contract to prevent misuse.\n    constructor() {\n        _disableInitializers();\n    }\n\n    /*--------------------------------------------------------------\n                             INITIALIZER\n    --------------------------------------------------------------*/\n\n    /// @notice Initializes the wallet with a designated owner.\n    /// @dev This replaces the constructor for upgradeable contracts.\n    /// @param _owner The address to set as the wallet owner.\n    function initialize(address _owner) external initializer {\n        _initializeOwner(_owner);\n    }\n\n    /*--------------------------------------------------------------\n                                  VIEW\n    --------------------------------------------------------------*/\n\n    /// @notice Returns the wallet's current execution nonce.\n    /// @return nonce_ The current nonce.\n    function nonce() public view returns (uint256 nonce_) {\n        bytes32 slot = _NONCE_SLOT;\n        assembly (\"memory-safe\") {\n            nonce_ := sload(slot)\n        }\n    }\n\n    /// @notice Returns the timestamp at which the wallet was paused.\n    /// @return paused_ The paused timestamp, or zero if not paused.\n    function paused() public view returns (uint256 paused_) {\n        bytes32 slot = _PAUSED_SLOT;\n        assembly (\"memory-safe\") {\n            paused_ := sload(slot)\n        }\n    }\n\n    /// @notice Returns the timestamp until which a session signer is authorized.\n    /// @param _signer The session signer address to query.\n    /// @return validUntil_ The authorization expiry timestamp, or zero if not authorized.\n    function sessionSignerAuthorizedUntil(address _signer)\n        public\n        view\n        returns (uint256 validUntil_)\n    {\n        bytes32 slot = _SESSION_SIGNER_SLOT;\n        assembly (\"memory-safe\") {\n            mstore(0x00, _signer)\n            mstore(0x20, slot)\n            validUntil_ := sload(keccak256(0x00, 0x40))\n        }\n    }\n\n    /// @notice Returns the unique identifier assigned to this wallet at deployment.\n    /// @return The wallet ID decoded from the ERC-1967 immutable args.\n    function id() public view returns (bytes32) {\n        (, bytes32 id_) = abi.decode(address(this).argsOnERC1967(), (address, bytes32));\n        return id_;\n    }\n\n    /// @notice Returns the factory contract that deployed this wallet.\n    /// @return The factory address decoded from the ERC-1967 immutable args.\n    function factory() public view returns (address) {\n        (address factory_,) = abi.decode(address(this).argsOnERC1967(), (address, bytes32));\n        return factory_;\n    }\n\n    /*--------------------------------------------------------------\n                             ONLY FACTORY\n    --------------------------------------------------------------*/\n\n    /// @notice Executes a signed batch of calls through the factory.\n    /// @dev Validates the batch (non-empty, correct wallet, nonce, deadline), verifies the EIP-712\n    ///      signature against the owner or an authorized session signer, then executes each call\n    ///      sequentially. Session signers are prevented from calling the wallet itself.\n    /// @param _batch The batch containing the target wallet, nonce, deadline, and calls.\n    /// @param _signature The EIP-712 signature authorizing the batch (owner or session signer).\n    function execute(Batch calldata _batch, bytes calldata _signature) external onlyFactory {\n        require(_batch.calls.length > 0, EmptyBatch());\n        require(_batch.wallet == address(this), InvalidWallet());\n        uint256 executedNonce;\n        bytes32 nonceSlot = _NONCE_SLOT;\n        assembly (\"memory-safe\") {\n            executedNonce := sload(nonceSlot)\n            sstore(nonceSlot, add(executedNonce, 1))\n        }\n        require(_batch.nonce == executedNonce, InvalidNonce());\n        require(block.timestamp <= _batch.deadline, Expired());\n\n        bytes32 batchHash = _batch.hash();\n        bytes32 batchDigest = _hashTypedData(batchHash);\n\n        require(\n            isValidSignature(batchDigest, _signature) == ERC1271_MAGIC_VALUE, InvalidSignature()\n        );\n\n        bool isSessionSigner = _signature.extractSessionSigner() != address(0);\n\n        uint256 i;\n        for (; i < _batch.calls.length;) {\n            require(\n                !isSessionSigner || _batch.calls[i].target != address(this),\n                SessionSignerSelfCallNotAllowed()\n            );\n\n            (bool success, bytes memory result) =\n                _batch.calls[i].target.call{value: _batch.calls[i].value}(_batch.calls[i].data);\n\n            require(success, CallFailed());\n\n            emit Execution(\n                _batch.calls[i].target, _batch.calls[i].value, _batch.calls[i].data, result\n            );\n\n            unchecked {\n                ++i;\n            }\n        }\n\n        emit BatchExecuted(executedNonce);\n    }\n\n    /*--------------------------------------------------------------\n                               ONLY SELF\n    --------------------------------------------------------------*/\n\n    /// @notice Authorizes a session signer until the specified timestamp.\n    /// @dev Can only be invoked via batch execution (self-call).\n    /// @param _sessionSigner The address to authorize as a session signer.\n    /// @param _validUntil The timestamp until which the session signer is valid.\n    function authorizeSessionSigner(address _sessionSigner, uint256 _validUntil) external onlySelf {\n        _setSessionSigner(_sessionSigner, _validUntil);\n\n        emit SessionSignerAuthorized(_sessionSigner, _validUntil);\n    }\n\n    /// @notice Revokes a session signer's authorization.\n    /// @dev Can only be invoked via batch execution (self-call).\n    /// @param _sessionSigner The session signer address to revoke.\n    function revokeSessionSigner(address _sessionSigner) external onlySelf {\n        _setSessionSigner(_sessionSigner, 0);\n\n        emit SessionSignerRevoked(_sessionSigner);\n    }\n\n    /// @notice Initiates a two-step ownership transfer to a new owner.\n    /// @dev Can only be invoked via batch execution (self-call).\n    /// @param _newOwner The proposed new owner address.\n    function transferOwnership(address _newOwner) external onlySelf {\n        _transferOwnership(_newOwner);\n    }\n\n    /// @notice Cancels any pending ownership handover.\n    /// @dev Can only be invoked via batch execution (self-call).\n    function cancelOwnershipHandover() external onlySelf {\n        _cancelOwnershipHandover();\n    }\n\n    /// @notice Upgrades the wallet implementation via UUPS.\n    /// @dev Can only be invoked via batch execution (self-call).\n    ///      The new implementation must be authorized by the factory.\n    /// @param _implementation The address of the new implementation contract.\n    /// @param _data Optional calldata to execute on the new implementation after upgrade.\n    function upgrade(address _implementation, bytes calldata _data) external onlySelf {\n        upgradeToAndCall(_implementation, _data);\n    }\n\n    /*--------------------------------------------------------------\n                           OWNERSHIP HANDOVER\n    --------------------------------------------------------------*/\n\n    /// @notice Completes a pending ownership transfer.\n    /// @dev Permissionless — anyone may submit, but the pending owner must have signed\n    ///      an EIP-712 `OwnershipHandover` message.\n    /// @param _deadline The deadline timestamp included in the signed message.\n    /// @param _signature The EIP-712 signature from the pending owner.\n    function completeOwnershipHandover(uint256 _deadline, bytes calldata _signature) external {\n        _completeOwnershipHandover(_deadline, _signature);\n    }\n\n    /*--------------------------------------------------------------\n                               ONLY OWNER\n    --------------------------------------------------------------*/\n\n    /// @notice Pauses the wallet, recording the current timestamp.\n    /// @dev After pausing, the owner must wait for the timelock delay before calling\n    ///      paused-only functions (e.g., withdrawals, revocations).\n    function pause() external onlyOwner {\n        bytes32 slot = _PAUSED_SLOT;\n        assembly (\"memory-safe\") {\n            sstore(slot, timestamp())\n        }\n\n        emit Paused(block.timestamp);\n    }\n\n    /// @notice Unpauses the wallet.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    function unpause() external onlyPaused onlyOwner {\n        bytes32 slot = _PAUSED_SLOT;\n        assembly (\"memory-safe\") {\n            sstore(slot, 0)\n        }\n\n        emit Unpaused(block.timestamp);\n    }\n\n    /// @notice Withdraws ERC-20 tokens from the wallet.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _token The ERC-20 token address.\n    /// @param _to The recipient address.\n    /// @param _amount The amount of tokens to withdraw.\n    function withdrawERC20(address _token, address _to, uint256 _amount)\n        external\n        onlyPaused\n        onlyOwner\n    {\n        _token.safeTransfer(_to, _amount);\n\n        emit ERC20Withdrawal(_token, _to, _amount);\n    }\n\n    /// @notice Batch-withdraws ERC-1155 tokens from the wallet.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _token The ERC-1155 token address.\n    /// @param _to The recipient address.\n    /// @param _ids The token IDs to withdraw.\n    /// @param _amounts The amounts for each token ID.\n    function withdrawERC1155(\n        address _token,\n        address _to,\n        uint256[] calldata _ids,\n        uint256[] calldata _amounts\n    ) external onlyPaused onlyOwner {\n        ERC1155(_token).safeBatchTransferFrom(address(this), _to, _ids, _amounts, \"\");\n\n        emit ERC1155BatchWithdrawal(_token, _to, _ids, _amounts);\n    }\n\n    /// @notice Revokes an ERC-20 allowance by setting it to zero.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _token The ERC-20 token address.\n    /// @param _spender The spender whose allowance is revoked.\n    function revokeAllowance(address _token, address _spender) external onlyPaused onlyOwner {\n        _token.safeApprove(_spender, 0);\n\n        emit AllowanceRevoked(_token, _spender);\n    }\n\n    /// @notice Revokes an ERC-1155 operator approval.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _token The ERC-1155 token address.\n    /// @param _operator The operator whose approval is revoked.\n    function revokeApprovalForAll(address _token, address _operator) external onlyPaused onlyOwner {\n        ERC1155(_token).setApprovalForAll(_operator, false);\n\n        emit ApprovalForAllRevoked(_token, _operator);\n    }\n\n    /// @notice Emergency revocation of a session signer by the owner.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _sessionSigner The session signer to revoke.\n    function revokeSessionSignerEmergency(address _sessionSigner) external onlyPaused onlyOwner {\n        _setSessionSigner(_sessionSigner, 0);\n\n        emit SessionSignerRevokedEmergency(_sessionSigner);\n    }\n\n    /*--------------------------------------------------------------\n                       UUPS UPGRADE AUTHORIZATION\n    --------------------------------------------------------------*/\n\n    /// @dev Authorizes a UUPS upgrade to `_implementation`.\n    ///      Reverts unless the implementation is authorized by the factory.\n    /// @param _implementation The address of the new implementation contract.\n    function _authorizeUpgrade(address _implementation) internal view override onlySelf {\n        require(\n            DepositWalletFactory(factory()).authorizedImplementation(_implementation),\n            InvalidImplementation()\n        );\n    }\n\n    /// @notice Stores the authorization expiry for a session signer.\n    /// @param _signer The session signer address.\n    /// @param _validUntil The expiry timestamp (zero to revoke).\n    function _setSessionSigner(address _signer, uint256 _validUntil) internal {\n        bytes32 slot = _SESSION_SIGNER_SLOT;\n        assembly (\"memory-safe\") {\n            mstore(0x00, _signer)\n            mstore(0x20, slot)\n            sstore(keccak256(0x00, 0x40), _validUntil)\n        }\n    }\n\n    /*--------------------------------------------------------------\n                                ERC1271\n    --------------------------------------------------------------*/\n\n    /// @notice Validates a signature against the wallet owner or an authorized session signer.\n    /// @dev Overrides Solady's ERC-1271 implementation to support session signer signatures.\n    ///      The resolved signer is stored in memory at `_ERC1271_SIGNER_MEM_SLOT` so that\n    ///      `_erc1271Signer` can return it to the parent verification logic.\n    /// @param _hash The hash that was signed.\n    /// @param _signature The signature to validate (may contain a session signer wrapper).\n    /// @return result `ERC1271_MAGIC_VALUE` if the signature is valid, otherwise reverts or returns\n    /// failure.\n    function isValidSignature(bytes32 _hash, bytes calldata _signature)\n        public\n        view\n        override\n        returns (bytes4 result)\n    {\n        address signer = _signature.extractSessionSigner();\n\n        if (signer == address(0)) {\n            signer = owner();\n        } else {\n            require(\n                block.timestamp < sessionSignerAuthorizedUntil(signer), SessionSignerUnauthorized()\n            );\n        }\n\n        assembly {\n            mstore(_ERC1271_SIGNER_MEM_SLOT, signer)\n            mstore(0x40, add(mload(0x40), 0x20))\n        }\n\n        return super.isValidSignature(_hash, _signature);\n    }\n\n    /// @dev Returns the signer address previously stored by `isValidSignature`.\n    function _erc1271Signer() internal view virtual override returns (address signer) {\n        assembly {\n            signer := mload(_ERC1271_SIGNER_MEM_SLOT)\n        }\n    }\n\n    /// @dev Factory calls use the safe caller path (direct ECDSA verification);\n    ///      external callers go through the nested EIP-712 workflow.\n    function _erc1271CallerIsSafe() internal view virtual override returns (bool) {\n        return msg.sender == factory();\n    }\n\n    /// @dev Performs ECDSA signature verification against the resolved signer.\n    /// @param hash The digest to verify.\n    /// @param signature The ECDSA signature bytes.\n    /// @return True if the signature is valid for the current signer.\n    function _erc1271IsValidSignatureNowCalldata(bytes32 hash, bytes calldata signature)\n        internal\n        view\n        override\n        returns (bool)\n    {\n        address signer = _erc1271Signer();\n        // always ECDSA, regardless of signer.code.length\n        return (signer != address(0)) && (ECDSA.tryRecoverCalldata(hash, signature) == signer);\n    }\n\n    /*--------------------------------------------------------------\n                                 EIP712\n    --------------------------------------------------------------*/\n\n    /// @dev Returns the EIP-712 domain name and version for this wallet.\n    function _domainNameAndVersion()\n        internal\n        view\n        virtual\n        override\n        returns (string memory name, string memory version)\n    {\n        name = \"DepositWallet\";\n        version = \"1\";\n    }\n}\n"},"lib/solady/src/accounts/ERC1271.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\nimport {EIP712} from \"../utils/EIP712.sol\";\nimport {SignatureCheckerLib} from \"../utils/SignatureCheckerLib.sol\";\n\n/// @notice ERC1271 mixin with nested EIP-712 approach.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/accounts/ERC1271.sol)\nabstract contract ERC1271 is EIP712 {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         CONSTANTS                          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev `keccak256(\"PersonalSign(bytes prefixed)\")`.\n    bytes32 internal constant _PERSONAL_SIGN_TYPEHASH =\n        0x983e65e5148e570cd828ead231ee759a8d7958721a768f93bc4483ba005c32de;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     ERC1271 OPERATIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Validates the signature with ERC1271 return,\n    /// so that this account can also be used as a signer.\n    function isValidSignature(bytes32 hash, bytes calldata signature)\n        public\n        view\n        virtual\n        returns (bytes4 result)\n    {\n        // For automatic detection that the smart account supports the nested EIP-712 workflow,\n        // See: https://eips.ethereum.org/EIPS/eip-7739.\n        // If `hash` is `0x7739...7739`, returns `bytes4(0x77390001)`.\n        // The returned number MAY be increased in future ERC7739 versions.\n        unchecked {\n            if (signature.length == uint256(0)) {\n                // Forces the compiler to optimize for smaller bytecode size.\n                if (uint256(hash) == ~signature.length / 0xffff * 0x7739) return 0x77390001;\n            }\n        }\n        bool success = _erc1271IsValidSignature(hash, _erc1271UnwrapSignature(signature));\n        /// @solidity memory-safe-assembly\n        assembly {\n            // `success ? bytes4(keccak256(\"isValidSignature(bytes32,bytes)\")) : 0xffffffff`.\n            // We use `0xffffffff` for invalid, in convention with the reference implementation.\n            result := shl(224, or(0x1626ba7e, sub(0, iszero(success))))\n        }\n    }\n\n    /// @dev Returns the ERC1271 signer.\n    /// Override to return the signer `isValidSignature` checks against.\n    function _erc1271Signer() internal view virtual returns (address);\n\n    /// @dev Returns whether the `msg.sender` is considered safe, such\n    /// that we don't need to use the nested EIP-712 workflow.\n    /// Override to return true for more callers.\n    /// See: https://mirror.xyz/curiousapple.eth/pFqAdW2LiJ-6S4sg_u1z08k4vK6BCJ33LcyXpnNb8yU\n    function _erc1271CallerIsSafe() internal view virtual returns (bool) {\n        // The canonical `MulticallerWithSigner` at 0x000000000000D9ECebf3C23529de49815Dac1c4c\n        // is known to include the account in the hash to be signed.\n        return msg.sender == 0x000000000000D9ECebf3C23529de49815Dac1c4c;\n    }\n\n    /// @dev Returns whether the `hash` and `signature` are valid.\n    /// Override if you need non-ECDSA logic.\n    function _erc1271IsValidSignatureNowCalldata(bytes32 hash, bytes calldata signature)\n        internal\n        view\n        virtual\n        returns (bool)\n    {\n        return SignatureCheckerLib.isValidSignatureNowCalldata(_erc1271Signer(), hash, signature);\n    }\n\n    /// @dev Unwraps and returns the signature.\n    function _erc1271UnwrapSignature(bytes calldata signature)\n        internal\n        view\n        virtual\n        returns (bytes calldata result)\n    {\n        result = signature;\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Unwraps the ERC6492 wrapper if it exists.\n            // See: https://eips.ethereum.org/EIPS/eip-6492\n            if eq(\n                calldataload(add(result.offset, sub(result.length, 0x20))),\n                mul(0x6492, div(not(shr(address(), address())), 0xffff)) // `0x6492...6492`.\n            ) {\n                let o := add(result.offset, calldataload(add(result.offset, 0x40)))\n                result.length := calldataload(o)\n                result.offset := add(o, 0x20)\n            }\n        }\n    }\n\n    /// @dev Returns whether the `signature` is valid for the `hash.\n    function _erc1271IsValidSignature(bytes32 hash, bytes calldata signature)\n        internal\n        view\n        virtual\n        returns (bool)\n    {\n        return _erc1271IsValidSignatureViaSafeCaller(hash, signature)\n            || _erc1271IsValidSignatureViaNestedEIP712(hash, signature)\n            || _erc1271IsValidSignatureViaRPC(hash, signature);\n    }\n\n    /// @dev Performs the signature validation without nested EIP-712 if the caller is\n    /// a safe caller. A safe caller must include the address of this account in the hash.\n    function _erc1271IsValidSignatureViaSafeCaller(bytes32 hash, bytes calldata signature)\n        internal\n        view\n        virtual\n        returns (bool result)\n    {\n        if (_erc1271CallerIsSafe()) result = _erc1271IsValidSignatureNowCalldata(hash, signature);\n    }\n\n    /// @dev ERC1271 signature validation (Nested EIP-712 workflow).\n    ///\n    /// This uses ECDSA recovery by default (see: `_erc1271IsValidSignatureNowCalldata`).\n    /// It also uses a nested EIP-712 approach to prevent signature replays when a single EOA\n    /// owns multiple smart contract accounts,\n    /// while still enabling wallet UIs (e.g. Metamask) to show the EIP-712 values.\n    ///\n    /// Crafted for phishing resistance, efficiency, flexibility.\n    /// __________________________________________________________________________________________\n    ///\n    /// Glossary:\n    ///\n    /// - `APP_DOMAIN_SEPARATOR`: The domain separator of the `hash` passed in by the application.\n    ///   Provided by the front end. Intended to be the domain separator of the contract\n    ///   that will call `isValidSignature` on this account.\n    ///\n    /// - `ACCOUNT_DOMAIN_SEPARATOR`: The domain separator of this account.\n    ///   See: `EIP712._domainSeparator()`.\n    /// __________________________________________________________________________________________\n    ///\n    /// For the `TypedDataSign` workflow, the final hash will be:\n    /// ```\n    ///     keccak256(\\x19\\x01 ‖ APP_DOMAIN_SEPARATOR ‖\n    ///         hashStruct(TypedDataSign({\n    ///             contents: hashStruct(originalStruct),\n    ///             name: keccak256(bytes(eip712Domain().name)),\n    ///             version: keccak256(bytes(eip712Domain().version)),\n    ///             chainId: eip712Domain().chainId,\n    ///             verifyingContract: eip712Domain().verifyingContract,\n    ///             salt: eip712Domain().salt\n    ///         }))\n    ///     )\n    /// ```\n    /// where `‖` denotes the concatenation operator for bytes.\n    /// The order of the fields is important: `contents` comes before `name`.\n    ///\n    /// The signature will be `r ‖ s ‖ v ‖ APP_DOMAIN_SEPARATOR ‖\n    ///     contents ‖ contentsDescription ‖ uint16(contentsDescription.length)`,\n    /// where:\n    /// - `contents` is the bytes32 struct hash of the original struct.\n    /// - `contentsDescription` can be either:\n    ///     a) `contentsType` (implicit mode)\n    ///         where `contentsType` starts with `contentsName`.\n    ///     b) `contentsType ‖ contentsName` (explicit mode)\n    ///         where `contentsType` may not necessarily start with `contentsName`.\n    ///\n    /// The `APP_DOMAIN_SEPARATOR` and `contents` will be used to verify if `hash` is indeed correct.\n    /// __________________________________________________________________________________________\n    ///\n    /// For the `PersonalSign` workflow, the final hash will be:\n    /// ```\n    ///     keccak256(\\x19\\x01 ‖ ACCOUNT_DOMAIN_SEPARATOR ‖\n    ///         hashStruct(PersonalSign({\n    ///             prefixed: keccak256(bytes(\\x19Ethereum Signed Message:\\n ‖\n    ///                 base10(bytes(someString).length) ‖ someString))\n    ///         }))\n    ///     )\n    /// ```\n    /// where `‖` denotes the concatenation operator for bytes.\n    ///\n    /// The `PersonalSign` type hash will be `keccak256(\"PersonalSign(bytes prefixed)\")`.\n    /// The signature will be `r ‖ s ‖ v`.\n    /// __________________________________________________________________________________________\n    ///\n    /// For demo and typescript code, see:\n    /// - https://github.com/junomonster/nested-eip-712\n    /// - https://github.com/frangio/eip712-wrapper-for-eip1271\n    ///\n    /// Their nomenclature may differ from ours, although the high-level idea is similar.\n    ///\n    /// Of course, if you have control over the codebase of the wallet client(s) too,\n    /// you can choose a more minimalistic signature scheme like\n    /// `keccak256(abi.encode(address(this), hash))` instead of all these acrobatics.\n    /// All these are just for widespread out-of-the-box compatibility with other wallet clients.\n    /// We want to create bazaars, not walled castles.\n    /// And we'll use push the Turing Completeness of the EVM to the limits to do so.\n    function _erc1271IsValidSignatureViaNestedEIP712(bytes32 hash, bytes calldata signature)\n        internal\n        view\n        virtual\n        returns (bool result)\n    {\n        uint256 t = uint256(uint160(address(this)));\n        // Forces the compiler to pop the variables after the scope, avoiding stack-too-deep.\n        if (t != uint256(0)) {\n            (\n                ,\n                string memory name,\n                string memory version,\n                uint256 chainId,\n                address verifyingContract,\n                bytes32 salt,\n            ) = eip712Domain();\n            /// @solidity memory-safe-assembly\n            assembly {\n                t := mload(0x40) // Grab the free memory pointer.\n                // Skip 2 words for the `typedDataSignTypehash` and `contents` struct hash.\n                mstore(add(t, 0x40), keccak256(add(name, 0x20), mload(name)))\n                mstore(add(t, 0x60), keccak256(add(version, 0x20), mload(version)))\n                mstore(add(t, 0x80), chainId)\n                mstore(add(t, 0xa0), shr(96, shl(96, verifyingContract)))\n                mstore(add(t, 0xc0), salt)\n                mstore(0x40, add(t, 0xe0)) // Allocate the memory.\n            }\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            // `c` is `contentsDescription.length`, which is stored in the last 2 bytes of the signature.\n            let c := shr(240, calldataload(add(signature.offset, sub(signature.length, 2))))\n            for {} 1 {} {\n                let l := add(0x42, c) // Total length of appended data (32 + 32 + c + 2).\n                let o := add(signature.offset, sub(signature.length, l)) // Offset of appended data.\n                mstore(0x00, 0x1901) // Store the \"\\x19\\x01\" prefix.\n                calldatacopy(0x20, o, 0x40) // Copy the `APP_DOMAIN_SEPARATOR` and `contents` struct hash.\n                // Use the `PersonalSign` workflow if the reconstructed hash doesn't match,\n                // or if the appended data is invalid, i.e.\n                // `appendedData.length > signature.length || contentsDescription.length == 0`.\n                if or(xor(keccak256(0x1e, 0x42), hash), or(lt(signature.length, l), iszero(c))) {\n                    t := 0 // Set `t` to 0, denoting that we need to `hash = _hashTypedData(hash)`.\n                    mstore(t, _PERSONAL_SIGN_TYPEHASH)\n                    mstore(0x20, hash) // Store the `prefixed`.\n                    hash := keccak256(t, 0x40) // Compute the `PersonalSign` struct hash.\n                    break\n                }\n                // Else, use the `TypedDataSign` workflow.\n                // `TypedDataSign({ContentsName} contents,string name,...){ContentsType}`.\n                mstore(m, \"TypedDataSign(\") // Store the start of `TypedDataSign`'s type encoding.\n                let p := add(m, 0x0e) // Advance 14 bytes to skip \"TypedDataSign(\".\n                calldatacopy(p, add(o, 0x40), c) // Copy `contentsName`, optimistically.\n                mstore(add(p, c), 40) // Store a '(' after the end.\n                if iszero(eq(byte(0, mload(sub(add(p, c), 1))), 41)) {\n                    let e := 0 // Length of `contentsName` in explicit mode.\n                    for { let q := sub(add(p, c), 1) } 1 {} {\n                        e := add(e, 1) // Scan backwards until we encounter a ')'.\n                        if iszero(gt(lt(e, c), eq(byte(0, mload(sub(q, e))), 41))) { break }\n                    }\n                    c := sub(c, e) // Truncate `contentsDescription` to `contentsType`.\n                    calldatacopy(p, add(add(o, 0x40), c), e) // Copy `contentsName`.\n                    mstore8(add(p, e), 40) // Store a '(' exactly right after the end.\n                }\n                // `d & 1 == 1` means that `contentsName` is invalid.\n                let d := shr(byte(0, mload(p)), 0x7fffffe000000000000010000000000) // Starts with `[a-z(]`.\n                // Advance `p` until we encounter '('.\n                for {} iszero(eq(byte(0, mload(p)), 40)) { p := add(p, 1) } {\n                    d := or(shr(byte(0, mload(p)), 0x120100000001), d) // Has a byte in \", )\\x00\".\n                }\n                mstore(p, \" contents,string name,string\") // Store the rest of the encoding.\n                mstore(add(p, 0x1c), \" version,uint256 chainId,address\")\n                mstore(add(p, 0x3c), \" verifyingContract,bytes32 salt)\")\n                p := add(p, 0x5c)\n                calldatacopy(p, add(o, 0x40), c) // Copy `contentsType`.\n                // Fill in the missing fields of the `TypedDataSign`.\n                calldatacopy(t, o, 0x40) // Copy the `contents` struct hash to `add(t, 0x20)`.\n                mstore(t, keccak256(m, sub(add(p, c), m))) // Store `typedDataSignTypehash`.\n                // The \"\\x19\\x01\" prefix is already at 0x00.\n                // `APP_DOMAIN_SEPARATOR` is already at 0x20.\n                mstore(0x40, keccak256(t, 0xe0)) // `hashStruct(typedDataSign)`.\n                // Compute the final hash, corrupted if `contentsName` is invalid.\n                hash := keccak256(0x1e, add(0x42, and(1, d)))\n                signature.length := sub(signature.length, l) // Truncate the signature.\n                break\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n        if (t == uint256(0)) hash = _hashTypedData(hash); // `PersonalSign` workflow.\n        result = _erc1271IsValidSignatureNowCalldata(hash, signature);\n    }\n\n    /// @dev Performs the signature validation without nested EIP-712 to allow for easy sign ins.\n    /// This function must always return false or revert if called on-chain.\n    function _erc1271IsValidSignatureViaRPC(bytes32 hash, bytes calldata signature)\n        internal\n        view\n        virtual\n        returns (bool result)\n    {\n        // Non-zero gasprice is a heuristic to check if a call is on-chain,\n        // but we can't fully depend on it because it can be manipulated.\n        // See: https://x.com/NoahCitron/status/1580359718341484544\n        if (tx.gasprice == uint256(0)) {\n            /// @solidity memory-safe-assembly\n            assembly {\n                mstore(gasprice(), gasprice())\n                // See: https://gist.github.com/Vectorized/3c9b63524d57492b265454f62d895f71\n                let b := 0x000000000000378eDCD5B5B0A24f5342d8C10485 // Basefee contract,\n                pop(staticcall(0xffff, b, codesize(), gasprice(), gasprice(), 0x20))\n                // If `gasprice < basefee`, the call cannot be on-chain, and we can skip the gas burn.\n                if iszero(mload(gasprice())) {\n                    let m := mload(0x40) // Cache the free memory pointer.\n                    mstore(gasprice(), 0x1626ba7e) // `isValidSignature(bytes32,bytes)`.\n                    mstore(0x20, b) // Recycle `b` to denote if we need to burn gas.\n                    mstore(0x40, 0x40)\n                    let gasToBurn := or(add(0xffff, gaslimit()), gaslimit())\n                    // Burns gas computationally efficiently. Also, requires that `gas > gasToBurn`.\n                    if or(eq(hash, b), lt(gas(), gasToBurn)) { invalid() }\n                    // Make a call to this with `b`, efficiently burning the gas provided.\n                    // No valid transaction can consume more than the gaslimit.\n                    // See: https://ethereum.github.io/yellowpaper/paper.pdf\n                    // Most RPCs perform calls with a gas budget greater than the gaslimit.\n                    pop(staticcall(gasToBurn, address(), 0x1c, 0x64, gasprice(), gasprice()))\n                    mstore(0x40, m) // Restore the free memory pointer.\n                }\n            }\n            result = _erc1271IsValidSignatureNowCalldata(hash, signature);\n        }\n    }\n}\n"},"lib/solady/src/accounts/Receiver.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Receiver mixin for ETH and safe-transferred ERC721 and ERC1155 tokens.\n/// @author Solady (https://github.com/Vectorized/solady/blob/main/src/accounts/Receiver.sol)\n///\n/// @dev Note:\n/// - Handles all ERC721 and ERC1155 token safety callbacks.\n/// - Collapses function table gas overhead and code size.\n/// - Utilizes fallback so unknown calldata will pass on.\nabstract contract Receiver {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The function selector is not recognized.\n    error FnSelectorNotRecognized();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     RECEIVE / FALLBACK                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev For receiving ETH.\n    receive() external payable virtual {}\n\n    /// @dev Fallback function with the `receiverFallback` modifier.\n    fallback() external payable virtual receiverFallback {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, 0x3c10b94e) // `FnSelectorNotRecognized()`.\n            revert(0x1c, 0x04)\n        }\n    }\n\n    /// @dev Modifier for the fallback function to handle token callbacks.\n    modifier receiverFallback() virtual {\n        _beforeReceiverFallbackBody();\n        if (_useReceiverFallbackBody()) {\n            /// @solidity memory-safe-assembly\n            assembly {\n                let s := shr(224, calldataload(0))\n                // 0x150b7a02: `onERC721Received(address,address,uint256,bytes)`.\n                // 0xf23a6e61: `onERC1155Received(address,address,uint256,uint256,bytes)`.\n                // 0xbc197c81: `onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)`.\n                if or(eq(s, 0x150b7a02), or(eq(s, 0xf23a6e61), eq(s, 0xbc197c81))) {\n                    // Assumes `mload(0x40) <= 0xffffffff` to save gas on cleaning lower bytes.\n                    mstore(0x20, s) // Store `msg.sig`.\n                    return(0x3c, 0x20) // Return `msg.sig`.\n                }\n            }\n        }\n        _afterReceiverFallbackBody();\n        _;\n    }\n\n    /// @dev Whether we want to use the body of the `receiverFallback` modifier.\n    function _useReceiverFallbackBody() internal view virtual returns (bool) {\n        return true;\n    }\n\n    /// @dev Called before the body of the `receiverFallback` modifier.\n    function _beforeReceiverFallbackBody() internal virtual {}\n\n    /// @dev Called after the body of the `receiverFallback` modifier.\n    function _afterReceiverFallbackBody() internal virtual {}\n}\n"},"lib/solady/src/tokens/ERC1155.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Simple ERC1155 implementation.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/tokens/ERC1155.sol)\n/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC1155.sol)\n/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/tree/master/contracts/token/ERC1155/ERC1155.sol)\n///\n/// @dev Note:\n/// - The ERC1155 standard allows for self-approvals.\n///   For performance, this implementation WILL NOT revert for such actions.\n///   Please add any checks with overrides if desired.\n/// - The transfer functions use the identity precompile (0x4)\n///   to copy memory internally.\n///\n/// If you are overriding:\n/// - Make sure all variables written to storage are properly cleaned\n//    (e.g. the bool value for `isApprovedForAll` MUST be either 1 or 0 under the hood).\n/// - Check that the overridden function is actually used in the function you want to\n///   change the behavior of. Much of the code has been manually inlined for performance.\nabstract contract ERC1155 {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The lengths of the input arrays are not the same.\n    error ArrayLengthsMismatch();\n\n    /// @dev Cannot mint or transfer to the zero address.\n    error TransferToZeroAddress();\n\n    /// @dev The recipient's balance has overflowed.\n    error AccountBalanceOverflow();\n\n    /// @dev Insufficient balance.\n    error InsufficientBalance();\n\n    /// @dev Only the token owner or an approved account can manage the tokens.\n    error NotOwnerNorApproved();\n\n    /// @dev Cannot safely transfer to a contract that does not implement\n    /// the ERC1155Receiver interface.\n    error TransferToNonERC1155ReceiverImplementer();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                           EVENTS                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Emitted when `amount` of token `id` is transferred\n    /// from `from` to `to` by `operator`.\n    event TransferSingle(\n        address indexed operator,\n        address indexed from,\n        address indexed to,\n        uint256 id,\n        uint256 amount\n    );\n\n    /// @dev Emitted when `amounts` of token `ids` are transferred\n    /// from `from` to `to` by `operator`.\n    event TransferBatch(\n        address indexed operator,\n        address indexed from,\n        address indexed to,\n        uint256[] ids,\n        uint256[] amounts\n    );\n\n    /// @dev Emitted when `owner` enables or disables `operator` to manage all of their tokens.\n    event ApprovalForAll(address indexed owner, address indexed operator, bool isApproved);\n\n    /// @dev Emitted when the Uniform Resource Identifier (URI) for token `id`\n    /// is updated to `value`. This event is not used in the base contract.\n    /// You may need to emit this event depending on your URI logic.\n    ///\n    /// See: https://eips.ethereum.org/EIPS/eip-1155#metadata\n    event URI(string value, uint256 indexed id);\n\n    /// @dev `keccak256(bytes(\"TransferSingle(address,address,address,uint256,uint256)\"))`.\n    uint256 private constant _TRANSFER_SINGLE_EVENT_SIGNATURE =\n        0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62;\n\n    /// @dev `keccak256(bytes(\"TransferBatch(address,address,address,uint256[],uint256[])\"))`.\n    uint256 private constant _TRANSFER_BATCH_EVENT_SIGNATURE =\n        0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb;\n\n    /// @dev `keccak256(bytes(\"ApprovalForAll(address,address,bool)\"))`.\n    uint256 private constant _APPROVAL_FOR_ALL_EVENT_SIGNATURE =\n        0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                          STORAGE                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The `ownerSlotSeed` of a given owner is given by.\n    /// ```\n    ///     let ownerSlotSeed := or(_ERC1155_MASTER_SLOT_SEED, shl(96, owner))\n    /// ```\n    ///\n    /// The balance slot of `owner` is given by.\n    /// ```\n    ///     mstore(0x20, ownerSlotSeed)\n    ///     mstore(0x00, id)\n    ///     let balanceSlot := keccak256(0x00, 0x40)\n    /// ```\n    ///\n    /// The operator approval slot of `owner` is given by.\n    /// ```\n    ///     mstore(0x20, ownerSlotSeed)\n    ///     mstore(0x00, operator)\n    ///     let operatorApprovalSlot := keccak256(0x0c, 0x34)\n    /// ```\n    uint256 private constant _ERC1155_MASTER_SLOT_SEED = 0x9a31110384e0b0c9;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      ERC1155 METADATA                      */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns the URI for token `id`.\n    ///\n    /// You can either return the same templated URI for all token IDs,\n    /// (e.g. \"https://example.com/api/{id}.json\"),\n    /// or return a unique URI for each `id`.\n    ///\n    /// See: https://eips.ethereum.org/EIPS/eip-1155#metadata\n    function uri(uint256 id) public view virtual returns (string memory);\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                          ERC1155                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns the amount of `id` owned by `owner`.\n    function balanceOf(address owner, uint256 id) public view virtual returns (uint256 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x20, _ERC1155_MASTER_SLOT_SEED)\n            mstore(0x14, owner)\n            mstore(0x00, id)\n            result := sload(keccak256(0x00, 0x40))\n        }\n    }\n\n    /// @dev Returns whether `operator` is approved to manage the tokens of `owner`.\n    function isApprovedForAll(address owner, address operator)\n        public\n        view\n        virtual\n        returns (bool result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x20, _ERC1155_MASTER_SLOT_SEED)\n            mstore(0x14, owner)\n            mstore(0x00, operator)\n            result := sload(keccak256(0x0c, 0x34))\n        }\n    }\n\n    /// @dev Sets whether `operator` is approved to manage the tokens of the caller.\n    ///\n    /// Emits a {ApprovalForAll} event.\n    function setApprovalForAll(address operator, bool isApproved) public virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Convert to 0 or 1.\n            isApproved := iszero(iszero(isApproved))\n            // Update the `isApproved` for (`msg.sender`, `operator`).\n            mstore(0x20, _ERC1155_MASTER_SLOT_SEED)\n            mstore(0x14, caller())\n            mstore(0x00, operator)\n            sstore(keccak256(0x0c, 0x34), isApproved)\n            // Emit the {ApprovalForAll} event.\n            mstore(0x00, isApproved)\n            // forgefmt: disable-next-line\n            log3(0x00, 0x20, _APPROVAL_FOR_ALL_EVENT_SIGNATURE, caller(), shr(96, shl(96, operator)))\n        }\n    }\n\n    /// @dev Transfers `amount` of `id` from `from` to `to`.\n    ///\n    /// Requirements:\n    /// - `to` cannot be the zero address.\n    /// - `from` must have at least `amount` of `id`.\n    /// - If the caller is not `from`,\n    ///   it must be approved to manage the tokens of `from`.\n    /// - If `to` refers to a smart contract, it must implement\n    ///   {ERC1155-onERC1155Received}, which is called upon a batch transfer.\n    ///\n    /// Emits a {TransferSingle} event.\n    function safeTransferFrom(\n        address from,\n        address to,\n        uint256 id,\n        uint256 amount,\n        bytes calldata data\n    ) public virtual {\n        if (_useBeforeTokenTransfer()) {\n            _beforeTokenTransfer(from, to, _single(id), _single(amount), data);\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            let fromSlotSeed := or(_ERC1155_MASTER_SLOT_SEED, shl(96, from))\n            let toSlotSeed := or(_ERC1155_MASTER_SLOT_SEED, shl(96, to))\n            mstore(0x20, fromSlotSeed)\n            // Clear the upper 96 bits.\n            from := shr(96, fromSlotSeed)\n            to := shr(96, toSlotSeed)\n            // Revert if `to` is the zero address.\n            if iszero(to) {\n                mstore(0x00, 0xea553b34) // `TransferToZeroAddress()`.\n                revert(0x1c, 0x04)\n            }\n            // If the caller is not `from`, do the authorization check.\n            if iszero(eq(caller(), from)) {\n                mstore(0x00, caller())\n                if iszero(sload(keccak256(0x0c, 0x34))) {\n                    mstore(0x00, 0x4b6e7f18) // `NotOwnerNorApproved()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            // Subtract and store the updated balance of `from`.\n            {\n                mstore(0x00, id)\n                let fromBalanceSlot := keccak256(0x00, 0x40)\n                let fromBalance := sload(fromBalanceSlot)\n                if gt(amount, fromBalance) {\n                    mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.\n                    revert(0x1c, 0x04)\n                }\n                sstore(fromBalanceSlot, sub(fromBalance, amount))\n            }\n            // Increase and store the updated balance of `to`.\n            {\n                mstore(0x20, toSlotSeed)\n                let toBalanceSlot := keccak256(0x00, 0x40)\n                let toBalanceBefore := sload(toBalanceSlot)\n                let toBalanceAfter := add(toBalanceBefore, amount)\n                if lt(toBalanceAfter, toBalanceBefore) {\n                    mstore(0x00, 0x01336cea) // `AccountBalanceOverflow()`.\n                    revert(0x1c, 0x04)\n                }\n                sstore(toBalanceSlot, toBalanceAfter)\n            }\n            // Emit a {TransferSingle} event.\n            mstore(0x20, amount)\n            log4(0x00, 0x40, _TRANSFER_SINGLE_EVENT_SIGNATURE, caller(), from, to)\n        }\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransfer(from, to, _single(id), _single(amount), data);\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Do the {onERC1155Received} check if `to` is a smart contract.\n            if extcodesize(to) {\n                // Prepare the calldata.\n                let m := mload(0x40)\n                // `onERC1155Received(address,address,uint256,uint256,bytes)`.\n                mstore(m, 0xf23a6e61)\n                mstore(add(m, 0x20), caller())\n                mstore(add(m, 0x40), from)\n                mstore(add(m, 0x60), id)\n                mstore(add(m, 0x80), amount)\n                mstore(add(m, 0xa0), 0xa0)\n                mstore(add(m, 0xc0), data.length)\n                calldatacopy(add(m, 0xe0), data.offset, data.length)\n                // Revert if the call reverts.\n                if iszero(call(gas(), to, 0, add(m, 0x1c), add(0xc4, data.length), m, 0x20)) {\n                    if returndatasize() {\n                        // Bubble up the revert if the call reverts.\n                        returndatacopy(m, 0x00, returndatasize())\n                        revert(m, returndatasize())\n                    }\n                }\n                // Load the returndata and compare it with the function selector.\n                if iszero(eq(mload(m), shl(224, 0xf23a6e61))) {\n                    mstore(0x00, 0x9c05499b) // `TransferToNonERC1155ReceiverImplementer()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n        }\n    }\n\n    /// @dev Transfers `amounts` of `ids` from `from` to `to`.\n    ///\n    /// Requirements:\n    /// - `to` cannot be the zero address.\n    /// - `from` must have at least `amount` of `id`.\n    /// - `ids` and `amounts` must have the same length.\n    /// - If the caller is not `from`,\n    ///   it must be approved to manage the tokens of `from`.\n    /// - If `to` refers to a smart contract, it must implement\n    ///   {ERC1155-onERC1155BatchReceived}, which is called upon a batch transfer.\n    ///\n    /// Emits a {TransferBatch} event.\n    function safeBatchTransferFrom(\n        address from,\n        address to,\n        uint256[] calldata ids,\n        uint256[] calldata amounts,\n        bytes calldata data\n    ) public virtual {\n        if (_useBeforeTokenTransfer()) {\n            _beforeTokenTransfer(from, to, ids, amounts, data);\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(eq(ids.length, amounts.length)) {\n                mstore(0x00, 0x3b800a46) // `ArrayLengthsMismatch()`.\n                revert(0x1c, 0x04)\n            }\n            let fromSlotSeed := or(_ERC1155_MASTER_SLOT_SEED, shl(96, from))\n            let toSlotSeed := or(_ERC1155_MASTER_SLOT_SEED, shl(96, to))\n            mstore(0x20, fromSlotSeed)\n            // Clear the upper 96 bits.\n            from := shr(96, fromSlotSeed)\n            to := shr(96, toSlotSeed)\n            // Revert if `to` is the zero address.\n            if iszero(to) {\n                mstore(0x00, 0xea553b34) // `TransferToZeroAddress()`.\n                revert(0x1c, 0x04)\n            }\n            // If the caller is not `from`, do the authorization check.\n            if iszero(eq(caller(), from)) {\n                mstore(0x00, caller())\n                if iszero(sload(keccak256(0x0c, 0x34))) {\n                    mstore(0x00, 0x4b6e7f18) // `NotOwnerNorApproved()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            // Loop through all the `ids` and update the balances.\n            {\n                for { let i := shl(5, ids.length) } i {} {\n                    i := sub(i, 0x20)\n                    let amount := calldataload(add(amounts.offset, i))\n                    // Subtract and store the updated balance of `from`.\n                    {\n                        mstore(0x20, fromSlotSeed)\n                        mstore(0x00, calldataload(add(ids.offset, i)))\n                        let fromBalanceSlot := keccak256(0x00, 0x40)\n                        let fromBalance := sload(fromBalanceSlot)\n                        if gt(amount, fromBalance) {\n                            mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.\n                            revert(0x1c, 0x04)\n                        }\n                        sstore(fromBalanceSlot, sub(fromBalance, amount))\n                    }\n                    // Increase and store the updated balance of `to`.\n                    {\n                        mstore(0x20, toSlotSeed)\n                        let toBalanceSlot := keccak256(0x00, 0x40)\n                        let toBalanceBefore := sload(toBalanceSlot)\n                        let toBalanceAfter := add(toBalanceBefore, amount)\n                        if lt(toBalanceAfter, toBalanceBefore) {\n                            mstore(0x00, 0x01336cea) // `AccountBalanceOverflow()`.\n                            revert(0x1c, 0x04)\n                        }\n                        sstore(toBalanceSlot, toBalanceAfter)\n                    }\n                }\n            }\n            // Emit a {TransferBatch} event.\n            {\n                let m := mload(0x40)\n                // Copy the `ids`.\n                mstore(m, 0x40)\n                let n := shl(5, ids.length)\n                mstore(add(m, 0x40), ids.length)\n                calldatacopy(add(m, 0x60), ids.offset, n)\n                // Copy the `amounts`.\n                mstore(add(m, 0x20), add(0x60, n))\n                let o := add(add(m, n), 0x60)\n                mstore(o, ids.length)\n                calldatacopy(add(o, 0x20), amounts.offset, n)\n                // Do the emit.\n                log4(m, add(add(n, n), 0x80), _TRANSFER_BATCH_EVENT_SIGNATURE, caller(), from, to)\n            }\n        }\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransferCalldata(from, to, ids, amounts, data);\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Do the {onERC1155BatchReceived} check if `to` is a smart contract.\n            if extcodesize(to) {\n                mstore(0x00, to) // Cache `to` to prevent stack too deep.\n                let m := mload(0x40)\n                // Prepare the calldata.\n                // `onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)`.\n                mstore(m, 0xbc197c81)\n                mstore(add(m, 0x20), caller())\n                mstore(add(m, 0x40), from)\n                // Copy the `ids`.\n                mstore(add(m, 0x60), 0xa0)\n                let n := shl(5, ids.length)\n                mstore(add(m, 0xc0), ids.length)\n                calldatacopy(add(m, 0xe0), ids.offset, n)\n                // Copy the `amounts`.\n                mstore(add(m, 0x80), add(0xc0, n))\n                let o := add(add(m, n), 0xe0)\n                mstore(o, ids.length)\n                calldatacopy(add(o, 0x20), amounts.offset, n)\n                // Copy the `data`.\n                mstore(add(m, 0xa0), add(add(0xe0, n), n))\n                o := add(add(o, n), 0x20)\n                mstore(o, data.length)\n                calldatacopy(add(o, 0x20), data.offset, data.length)\n                let nAll := add(0x104, add(data.length, add(n, n)))\n                // Revert if the call reverts.\n                if iszero(call(gas(), mload(0x00), 0, add(mload(0x40), 0x1c), nAll, m, 0x20)) {\n                    if returndatasize() {\n                        // Bubble up the revert if the call reverts.\n                        returndatacopy(m, 0x00, returndatasize())\n                        revert(m, returndatasize())\n                    }\n                }\n                // Load the returndata and compare it with the function selector.\n                if iszero(eq(mload(m), shl(224, 0xbc197c81))) {\n                    mstore(0x00, 0x9c05499b) // `TransferToNonERC1155ReceiverImplementer()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n        }\n    }\n\n    /// @dev Returns the amounts of `ids` for `owners.\n    ///\n    /// Requirements:\n    /// - `owners` and `ids` must have the same length.\n    function balanceOfBatch(address[] calldata owners, uint256[] calldata ids)\n        public\n        view\n        virtual\n        returns (uint256[] memory balances)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(eq(ids.length, owners.length)) {\n                mstore(0x00, 0x3b800a46) // `ArrayLengthsMismatch()`.\n                revert(0x1c, 0x04)\n            }\n            balances := mload(0x40)\n            mstore(balances, ids.length)\n            let o := add(balances, 0x20)\n            let i := shl(5, ids.length)\n            mstore(0x40, add(i, o))\n            // Loop through all the `ids` and load the balances.\n            for {} i {} {\n                i := sub(i, 0x20)\n                let owner := calldataload(add(owners.offset, i))\n                mstore(0x20, or(_ERC1155_MASTER_SLOT_SEED, shl(96, owner)))\n                mstore(0x00, calldataload(add(ids.offset, i)))\n                mstore(add(o, i), sload(keccak256(0x00, 0x40)))\n            }\n        }\n    }\n\n    /// @dev Returns true if this contract implements the interface defined by `interfaceId`.\n    /// See: https://eips.ethereum.org/EIPS/eip-165\n    /// This function call must use less than 30000 gas.\n    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let s := shr(224, interfaceId)\n            // ERC165: 0x01ffc9a7, ERC1155: 0xd9b67a26, ERC1155MetadataURI: 0x0e89341c.\n            result := or(or(eq(s, 0x01ffc9a7), eq(s, 0xd9b67a26)), eq(s, 0x0e89341c))\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                  INTERNAL MINT FUNCTIONS                   */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Mints `amount` of `id` to `to`.\n    ///\n    /// Requirements:\n    /// - `to` cannot be the zero address.\n    /// - If `to` refers to a smart contract, it must implement\n    ///   {ERC1155-onERC1155Received}, which is called upon a batch transfer.\n    ///\n    /// Emits a {TransferSingle} event.\n    function _mint(address to, uint256 id, uint256 amount, bytes memory data) internal virtual {\n        if (_useBeforeTokenTransfer()) {\n            _beforeTokenTransfer(address(0), to, _single(id), _single(amount), data);\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            let to_ := shl(96, to)\n            // Revert if `to` is the zero address.\n            if iszero(to_) {\n                mstore(0x00, 0xea553b34) // `TransferToZeroAddress()`.\n                revert(0x1c, 0x04)\n            }\n            // Increase and store the updated balance of `to`.\n            {\n                mstore(0x20, _ERC1155_MASTER_SLOT_SEED)\n                mstore(0x14, to)\n                mstore(0x00, id)\n                let toBalanceSlot := keccak256(0x00, 0x40)\n                let toBalanceBefore := sload(toBalanceSlot)\n                let toBalanceAfter := add(toBalanceBefore, amount)\n                if lt(toBalanceAfter, toBalanceBefore) {\n                    mstore(0x00, 0x01336cea) // `AccountBalanceOverflow()`.\n                    revert(0x1c, 0x04)\n                }\n                sstore(toBalanceSlot, toBalanceAfter)\n            }\n            // Emit a {TransferSingle} event.\n            mstore(0x20, amount)\n            log4(0x00, 0x40, _TRANSFER_SINGLE_EVENT_SIGNATURE, caller(), 0, shr(96, to_))\n        }\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransfer(address(0), to, _single(id), _single(amount), data);\n        }\n        if (_hasCode(to)) _checkOnERC1155Received(address(0), to, id, amount, data);\n    }\n\n    /// @dev Mints `amounts` of `ids` to `to`.\n    ///\n    /// Requirements:\n    /// - `to` cannot be the zero address.\n    /// - `ids` and `amounts` must have the same length.\n    /// - If `to` refers to a smart contract, it must implement\n    ///   {ERC1155-onERC1155BatchReceived}, which is called upon a batch transfer.\n    ///\n    /// Emits a {TransferBatch} event.\n    function _batchMint(\n        address to,\n        uint256[] memory ids,\n        uint256[] memory amounts,\n        bytes memory data\n    ) internal virtual {\n        if (_useBeforeTokenTransfer()) {\n            _beforeTokenTransfer(address(0), to, ids, amounts, data);\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(eq(mload(ids), mload(amounts))) {\n                mstore(0x00, 0x3b800a46) // `ArrayLengthsMismatch()`.\n                revert(0x1c, 0x04)\n            }\n            let to_ := shl(96, to)\n            // Revert if `to` is the zero address.\n            if iszero(to_) {\n                mstore(0x00, 0xea553b34) // `TransferToZeroAddress()`.\n                revert(0x1c, 0x04)\n            }\n            // Loop through all the `ids` and update the balances.\n            {\n                mstore(0x20, or(_ERC1155_MASTER_SLOT_SEED, to_))\n                for { let i := shl(5, mload(ids)) } i { i := sub(i, 0x20) } {\n                    let amount := mload(add(amounts, i))\n                    // Increase and store the updated balance of `to`.\n                    {\n                        mstore(0x00, mload(add(ids, i)))\n                        let toBalanceSlot := keccak256(0x00, 0x40)\n                        let toBalanceBefore := sload(toBalanceSlot)\n                        let toBalanceAfter := add(toBalanceBefore, amount)\n                        if lt(toBalanceAfter, toBalanceBefore) {\n                            mstore(0x00, 0x01336cea) // `AccountBalanceOverflow()`.\n                            revert(0x1c, 0x04)\n                        }\n                        sstore(toBalanceSlot, toBalanceAfter)\n                    }\n                }\n            }\n            // Emit a {TransferBatch} event.\n            {\n                let m := mload(0x40)\n                // Copy the `ids`.\n                mstore(m, 0x40)\n                let n := add(0x20, shl(5, mload(ids)))\n                let o := add(m, 0x40)\n                pop(staticcall(gas(), 4, ids, n, o, n))\n                // Copy the `amounts`.\n                mstore(add(m, 0x20), add(0x40, returndatasize()))\n                o := add(o, returndatasize())\n                n := add(0x20, shl(5, mload(amounts)))\n                pop(staticcall(gas(), 4, amounts, n, o, n))\n                n := sub(add(o, returndatasize()), m)\n                // Do the emit.\n                log4(m, n, _TRANSFER_BATCH_EVENT_SIGNATURE, caller(), 0, shr(96, to_))\n            }\n        }\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransfer(address(0), to, ids, amounts, data);\n        }\n        if (_hasCode(to)) _checkOnERC1155BatchReceived(address(0), to, ids, amounts, data);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                  INTERNAL BURN FUNCTIONS                   */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Equivalent to `_burn(address(0), from, id, amount)`.\n    function _burn(address from, uint256 id, uint256 amount) internal virtual {\n        _burn(address(0), from, id, amount);\n    }\n\n    /// @dev Destroys `amount` of `id` from `from`.\n    ///\n    /// Requirements:\n    /// - `from` must have at least `amount` of `id`.\n    /// - If `by` is not the zero address, it must be either `from`,\n    ///   or approved to manage the tokens of `from`.\n    ///\n    /// Emits a {TransferSingle} event.\n    function _burn(address by, address from, uint256 id, uint256 amount) internal virtual {\n        if (_useBeforeTokenTransfer()) {\n            _beforeTokenTransfer(from, address(0), _single(id), _single(amount), \"\");\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            let from_ := shl(96, from)\n            mstore(0x20, or(_ERC1155_MASTER_SLOT_SEED, from_))\n            // If `by` is not the zero address, and not equal to `from`,\n            // check if it is approved to manage all the tokens of `from`.\n            if iszero(or(iszero(shl(96, by)), eq(shl(96, by), from_))) {\n                mstore(0x00, by)\n                if iszero(sload(keccak256(0x0c, 0x34))) {\n                    mstore(0x00, 0x4b6e7f18) // `NotOwnerNorApproved()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            // Decrease and store the updated balance of `from`.\n            {\n                mstore(0x00, id)\n                let fromBalanceSlot := keccak256(0x00, 0x40)\n                let fromBalance := sload(fromBalanceSlot)\n                if gt(amount, fromBalance) {\n                    mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.\n                    revert(0x1c, 0x04)\n                }\n                sstore(fromBalanceSlot, sub(fromBalance, amount))\n            }\n            // Emit a {TransferSingle} event.\n            mstore(0x20, amount)\n            log4(0x00, 0x40, _TRANSFER_SINGLE_EVENT_SIGNATURE, caller(), shr(96, from_), 0)\n        }\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransfer(from, address(0), _single(id), _single(amount), \"\");\n        }\n    }\n\n    /// @dev Equivalent to `_batchBurn(address(0), from, ids, amounts)`.\n    function _batchBurn(address from, uint256[] memory ids, uint256[] memory amounts)\n        internal\n        virtual\n    {\n        _batchBurn(address(0), from, ids, amounts);\n    }\n\n    /// @dev Destroys `amounts` of `ids` from `from`.\n    ///\n    /// Requirements:\n    /// - `ids` and `amounts` must have the same length.\n    /// - `from` must have at least `amounts` of `ids`.\n    /// - If `by` is not the zero address, it must be either `from`,\n    ///   or approved to manage the tokens of `from`.\n    ///\n    /// Emits a {TransferBatch} event.\n    function _batchBurn(address by, address from, uint256[] memory ids, uint256[] memory amounts)\n        internal\n        virtual\n    {\n        if (_useBeforeTokenTransfer()) {\n            _beforeTokenTransfer(from, address(0), ids, amounts, \"\");\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(eq(mload(ids), mload(amounts))) {\n                mstore(0x00, 0x3b800a46) // `ArrayLengthsMismatch()`.\n                revert(0x1c, 0x04)\n            }\n            let from_ := shl(96, from)\n            mstore(0x20, or(_ERC1155_MASTER_SLOT_SEED, from_))\n            // If `by` is not the zero address, and not equal to `from`,\n            // check if it is approved to manage all the tokens of `from`.\n            let by_ := shl(96, by)\n            if iszero(or(iszero(by_), eq(by_, from_))) {\n                mstore(0x00, by)\n                if iszero(sload(keccak256(0x0c, 0x34))) {\n                    mstore(0x00, 0x4b6e7f18) // `NotOwnerNorApproved()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            // Loop through all the `ids` and update the balances.\n            {\n                for { let i := shl(5, mload(ids)) } i { i := sub(i, 0x20) } {\n                    let amount := mload(add(amounts, i))\n                    // Decrease and store the updated balance of `from`.\n                    {\n                        mstore(0x00, mload(add(ids, i)))\n                        let fromBalanceSlot := keccak256(0x00, 0x40)\n                        let fromBalance := sload(fromBalanceSlot)\n                        if gt(amount, fromBalance) {\n                            mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.\n                            revert(0x1c, 0x04)\n                        }\n                        sstore(fromBalanceSlot, sub(fromBalance, amount))\n                    }\n                }\n            }\n            // Emit a {TransferBatch} event.\n            {\n                let m := mload(0x40)\n                // Copy the `ids`.\n                mstore(m, 0x40)\n                let n := add(0x20, shl(5, mload(ids)))\n                let o := add(m, 0x40)\n                pop(staticcall(gas(), 4, ids, n, o, n))\n                // Copy the `amounts`.\n                mstore(add(m, 0x20), add(0x40, returndatasize()))\n                o := add(o, returndatasize())\n                n := add(0x20, shl(5, mload(amounts)))\n                pop(staticcall(gas(), 4, amounts, n, o, n))\n                n := sub(add(o, returndatasize()), m)\n                // Do the emit.\n                log4(m, n, _TRANSFER_BATCH_EVENT_SIGNATURE, caller(), shr(96, from_), 0)\n            }\n        }\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransfer(from, address(0), ids, amounts, \"\");\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                INTERNAL APPROVAL FUNCTIONS                 */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Approve or remove the `operator` as an operator for `by`,\n    /// without authorization checks.\n    ///\n    /// Emits a {ApprovalForAll} event.\n    function _setApprovalForAll(address by, address operator, bool isApproved) internal virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Convert to 0 or 1.\n            isApproved := iszero(iszero(isApproved))\n            // Update the `isApproved` for (`by`, `operator`).\n            mstore(0x20, _ERC1155_MASTER_SLOT_SEED)\n            mstore(0x14, by)\n            mstore(0x00, operator)\n            sstore(keccak256(0x0c, 0x34), isApproved)\n            // Emit the {ApprovalForAll} event.\n            mstore(0x00, isApproved)\n            let m := shr(96, not(0))\n            log3(0x00, 0x20, _APPROVAL_FOR_ALL_EVENT_SIGNATURE, and(m, by), and(m, operator))\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                INTERNAL TRANSFER FUNCTIONS                 */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Equivalent to `_safeTransfer(address(0), from, to, id, amount, data)`.\n    function _safeTransfer(address from, address to, uint256 id, uint256 amount, bytes memory data)\n        internal\n        virtual\n    {\n        _safeTransfer(address(0), from, to, id, amount, data);\n    }\n\n    /// @dev Transfers `amount` of `id` from `from` to `to`.\n    ///\n    /// Requirements:\n    /// - `to` cannot be the zero address.\n    /// - `from` must have at least `amount` of `id`.\n    /// - If `by` is not the zero address, it must be either `from`,\n    ///   or approved to manage the tokens of `from`.\n    /// - If `to` refers to a smart contract, it must implement\n    ///   {ERC1155-onERC1155Received}, which is called upon a batch transfer.\n    ///\n    /// Emits a {TransferSingle} event.\n    function _safeTransfer(\n        address by,\n        address from,\n        address to,\n        uint256 id,\n        uint256 amount,\n        bytes memory data\n    ) internal virtual {\n        if (_useBeforeTokenTransfer()) {\n            _beforeTokenTransfer(from, to, _single(id), _single(amount), data);\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            let from_ := shl(96, from)\n            let to_ := shl(96, to)\n            // Revert if `to` is the zero address.\n            if iszero(to_) {\n                mstore(0x00, 0xea553b34) // `TransferToZeroAddress()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x20, or(_ERC1155_MASTER_SLOT_SEED, from_))\n            // If `by` is not the zero address, and not equal to `from`,\n            // check if it is approved to manage all the tokens of `from`.\n            let by_ := shl(96, by)\n            if iszero(or(iszero(by_), eq(by_, from_))) {\n                mstore(0x00, by)\n                if iszero(sload(keccak256(0x0c, 0x34))) {\n                    mstore(0x00, 0x4b6e7f18) // `NotOwnerNorApproved()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            // Subtract and store the updated balance of `from`.\n            {\n                mstore(0x00, id)\n                let fromBalanceSlot := keccak256(0x00, 0x40)\n                let fromBalance := sload(fromBalanceSlot)\n                if gt(amount, fromBalance) {\n                    mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.\n                    revert(0x1c, 0x04)\n                }\n                sstore(fromBalanceSlot, sub(fromBalance, amount))\n            }\n            // Increase and store the updated balance of `to`.\n            {\n                mstore(0x20, or(_ERC1155_MASTER_SLOT_SEED, to_))\n                let toBalanceSlot := keccak256(0x00, 0x40)\n                let toBalanceBefore := sload(toBalanceSlot)\n                let toBalanceAfter := add(toBalanceBefore, amount)\n                if lt(toBalanceAfter, toBalanceBefore) {\n                    mstore(0x00, 0x01336cea) // `AccountBalanceOverflow()`.\n                    revert(0x1c, 0x04)\n                }\n                sstore(toBalanceSlot, toBalanceAfter)\n            }\n            // Emit a {TransferSingle} event.\n            mstore(0x20, amount)\n            // forgefmt: disable-next-line\n            log4(0x00, 0x40, _TRANSFER_SINGLE_EVENT_SIGNATURE, caller(), shr(96, from_), shr(96, to_))\n        }\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransfer(from, to, _single(id), _single(amount), data);\n        }\n        if (_hasCode(to)) _checkOnERC1155Received(from, to, id, amount, data);\n    }\n\n    /// @dev Equivalent to `_safeBatchTransfer(address(0), from, to, ids, amounts, data)`.\n    function _safeBatchTransfer(\n        address from,\n        address to,\n        uint256[] memory ids,\n        uint256[] memory amounts,\n        bytes memory data\n    ) internal virtual {\n        _safeBatchTransfer(address(0), from, to, ids, amounts, data);\n    }\n\n    /// @dev Transfers `amounts` of `ids` from `from` to `to`.\n    ///\n    /// Requirements:\n    /// - `to` cannot be the zero address.\n    /// - `ids` and `amounts` must have the same length.\n    /// - `from` must have at least `amounts` of `ids`.\n    /// - If `by` is not the zero address, it must be either `from`,\n    ///   or approved to manage the tokens of `from`.\n    /// - If `to` refers to a smart contract, it must implement\n    ///   {ERC1155-onERC1155BatchReceived}, which is called upon a batch transfer.\n    ///\n    /// Emits a {TransferBatch} event.\n    function _safeBatchTransfer(\n        address by,\n        address from,\n        address to,\n        uint256[] memory ids,\n        uint256[] memory amounts,\n        bytes memory data\n    ) internal virtual {\n        if (_useBeforeTokenTransfer()) {\n            _beforeTokenTransfer(from, to, ids, amounts, data);\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(eq(mload(ids), mload(amounts))) {\n                mstore(0x00, 0x3b800a46) // `ArrayLengthsMismatch()`.\n                revert(0x1c, 0x04)\n            }\n            let from_ := shl(96, from)\n            let to_ := shl(96, to)\n            // Revert if `to` is the zero address.\n            if iszero(to_) {\n                mstore(0x00, 0xea553b34) // `TransferToZeroAddress()`.\n                revert(0x1c, 0x04)\n            }\n            let fromSlotSeed := or(_ERC1155_MASTER_SLOT_SEED, from_)\n            let toSlotSeed := or(_ERC1155_MASTER_SLOT_SEED, to_)\n            mstore(0x20, fromSlotSeed)\n            // If `by` is not the zero address, and not equal to `from`,\n            // check if it is approved to manage all the tokens of `from`.\n            let by_ := shl(96, by)\n            if iszero(or(iszero(by_), eq(by_, from_))) {\n                mstore(0x00, by)\n                if iszero(sload(keccak256(0x0c, 0x34))) {\n                    mstore(0x00, 0x4b6e7f18) // `NotOwnerNorApproved()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            // Loop through all the `ids` and update the balances.\n            {\n                for { let i := shl(5, mload(ids)) } i { i := sub(i, 0x20) } {\n                    let amount := mload(add(amounts, i))\n                    // Subtract and store the updated balance of `from`.\n                    {\n                        mstore(0x20, fromSlotSeed)\n                        mstore(0x00, mload(add(ids, i)))\n                        let fromBalanceSlot := keccak256(0x00, 0x40)\n                        let fromBalance := sload(fromBalanceSlot)\n                        if gt(amount, fromBalance) {\n                            mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.\n                            revert(0x1c, 0x04)\n                        }\n                        sstore(fromBalanceSlot, sub(fromBalance, amount))\n                    }\n                    // Increase and store the updated balance of `to`.\n                    {\n                        mstore(0x20, toSlotSeed)\n                        let toBalanceSlot := keccak256(0x00, 0x40)\n                        let toBalanceBefore := sload(toBalanceSlot)\n                        let toBalanceAfter := add(toBalanceBefore, amount)\n                        if lt(toBalanceAfter, toBalanceBefore) {\n                            mstore(0x00, 0x01336cea) // `AccountBalanceOverflow()`.\n                            revert(0x1c, 0x04)\n                        }\n                        sstore(toBalanceSlot, toBalanceAfter)\n                    }\n                }\n            }\n            // Emit a {TransferBatch} event.\n            {\n                let m := mload(0x40)\n                // Copy the `ids`.\n                mstore(m, 0x40)\n                let n := add(0x20, shl(5, mload(ids)))\n                let o := add(m, 0x40)\n                pop(staticcall(gas(), 4, ids, n, o, n))\n                // Copy the `amounts`.\n                mstore(add(m, 0x20), add(0x40, returndatasize()))\n                o := add(o, returndatasize())\n                n := add(0x20, shl(5, mload(amounts)))\n                pop(staticcall(gas(), 4, amounts, n, o, n))\n                n := sub(add(o, returndatasize()), m)\n                // Do the emit.\n                log4(m, n, _TRANSFER_BATCH_EVENT_SIGNATURE, caller(), shr(96, from_), shr(96, to_))\n            }\n        }\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransfer(from, to, ids, amounts, data);\n        }\n        if (_hasCode(to)) _checkOnERC1155BatchReceived(from, to, ids, amounts, data);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                    HOOKS FOR OVERRIDING                    */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Override this function to return true if `_beforeTokenTransfer` is used.\n    /// This is to help the compiler avoid producing dead bytecode.\n    function _useBeforeTokenTransfer() internal view virtual returns (bool) {\n        return false;\n    }\n\n    /// @dev Hook that is called before any token transfer.\n    /// This includes minting and burning, as well as batched variants.\n    ///\n    /// The same hook is called on both single and batched variants.\n    /// For single transfers, the length of the `id` and `amount` arrays are 1.\n    function _beforeTokenTransfer(\n        address from,\n        address to,\n        uint256[] memory ids,\n        uint256[] memory amounts,\n        bytes memory data\n    ) internal virtual {}\n\n    /// @dev Override this function to return true if `_afterTokenTransfer` is used.\n    /// This is to help the compiler avoid producing dead bytecode.\n    function _useAfterTokenTransfer() internal view virtual returns (bool) {\n        return false;\n    }\n\n    /// @dev Hook that is called after any token transfer.\n    /// This includes minting and burning, as well as batched variants.\n    ///\n    /// The same hook is called on both single and batched variants.\n    /// For single transfers, the length of the `id` and `amount` arrays are 1.\n    function _afterTokenTransfer(\n        address from,\n        address to,\n        uint256[] memory ids,\n        uint256[] memory amounts,\n        bytes memory data\n    ) internal virtual {}\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      PRIVATE HELPERS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Helper for calling the `_afterTokenTransfer` hook.\n    /// This is to help the compiler avoid producing dead bytecode.\n    function _afterTokenTransferCalldata(\n        address from,\n        address to,\n        uint256[] calldata ids,\n        uint256[] calldata amounts,\n        bytes calldata data\n    ) private {\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransfer(from, to, ids, amounts, data);\n        }\n    }\n\n    /// @dev Returns if `a` has bytecode of non-zero length.\n    function _hasCode(address a) private view returns (bool result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := extcodesize(a) // Can handle dirty upper bits.\n        }\n    }\n\n    /// @dev Perform a call to invoke {IERC1155Receiver-onERC1155Received} on `to`.\n    /// Reverts if the target does not support the function correctly.\n    function _checkOnERC1155Received(\n        address from,\n        address to,\n        uint256 id,\n        uint256 amount,\n        bytes memory data\n    ) private {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Prepare the calldata.\n            let m := mload(0x40)\n            // `onERC1155Received(address,address,uint256,uint256,bytes)`.\n            mstore(m, 0xf23a6e61)\n            mstore(add(m, 0x20), caller())\n            mstore(add(m, 0x40), shr(96, shl(96, from)))\n            mstore(add(m, 0x60), id)\n            mstore(add(m, 0x80), amount)\n            mstore(add(m, 0xa0), 0xa0)\n            let n := mload(data)\n            mstore(add(m, 0xc0), n)\n            if n { pop(staticcall(gas(), 4, add(data, 0x20), n, add(m, 0xe0), n)) }\n            // Revert if the call reverts.\n            if iszero(call(gas(), to, 0, add(m, 0x1c), add(0xc4, n), m, 0x20)) {\n                if returndatasize() {\n                    // Bubble up the revert if the call reverts.\n                    returndatacopy(m, 0x00, returndatasize())\n                    revert(m, returndatasize())\n                }\n            }\n            // Load the returndata and compare it with the function selector.\n            if iszero(eq(mload(m), shl(224, 0xf23a6e61))) {\n                mstore(0x00, 0x9c05499b) // `TransferToNonERC1155ReceiverImplementer()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Perform a call to invoke {IERC1155Receiver-onERC1155BatchReceived} on `to`.\n    /// Reverts if the target does not support the function correctly.\n    function _checkOnERC1155BatchReceived(\n        address from,\n        address to,\n        uint256[] memory ids,\n        uint256[] memory amounts,\n        bytes memory data\n    ) private {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Prepare the calldata.\n            let m := mload(0x40)\n            // `onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)`.\n            mstore(m, 0xbc197c81)\n            mstore(add(m, 0x20), caller())\n            mstore(add(m, 0x40), shr(96, shl(96, from)))\n            // Copy the `ids`.\n            mstore(add(m, 0x60), 0xa0)\n            let n := add(0x20, shl(5, mload(ids)))\n            let o := add(m, 0xc0)\n            pop(staticcall(gas(), 4, ids, n, o, n))\n            // Copy the `amounts`.\n            let s := add(0xa0, returndatasize())\n            mstore(add(m, 0x80), s)\n            o := add(o, returndatasize())\n            n := add(0x20, shl(5, mload(amounts)))\n            pop(staticcall(gas(), 4, amounts, n, o, n))\n            // Copy the `data`.\n            mstore(add(m, 0xa0), add(s, returndatasize()))\n            o := add(o, returndatasize())\n            n := add(0x20, mload(data))\n            pop(staticcall(gas(), 4, data, n, o, n))\n            n := sub(add(o, returndatasize()), add(m, 0x1c))\n            // Revert if the call reverts.\n            if iszero(call(gas(), to, 0, add(m, 0x1c), n, m, 0x20)) {\n                if returndatasize() {\n                    // Bubble up the revert if the call reverts.\n                    returndatacopy(m, 0x00, returndatasize())\n                    revert(m, returndatasize())\n                }\n            }\n            // Load the returndata and compare it with the function selector.\n            if iszero(eq(mload(m), shl(224, 0xbc197c81))) {\n                mstore(0x00, 0x9c05499b) // `TransferToNonERC1155ReceiverImplementer()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Returns `x` in an array with a single element.\n    function _single(uint256 x) private pure returns (uint256[] memory result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := mload(0x40)\n            mstore(0x40, add(result, 0x40))\n            mstore(result, 1)\n            mstore(add(result, 0x20), x)\n        }\n    }\n}\n"},"lib/solady/src/utils/ECDSA.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Gas optimized ECDSA wrapper.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/ECDSA.sol)\n/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/ECDSA.sol)\n/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/cryptography/ECDSA.sol)\n///\n/// @dev Note:\n/// - The recovery functions use the ecrecover precompile (0x1).\n/// - As of Solady version 0.0.68, the `recover` variants will revert upon recovery failure.\n///   This is for more safety by default.\n///   Use the `tryRecover` variants if you need to get the zero address back\n///   upon recovery failure instead.\n/// - As of Solady version 0.0.134, all `bytes signature` variants accept both\n///   regular 65-byte `(r, s, v)` and EIP-2098 `(r, vs)` short form signatures.\n///   See: https://eips.ethereum.org/EIPS/eip-2098\n///   This is for calldata efficiency on smart accounts prevalent on L2s.\n///\n/// WARNING! Do NOT directly use signatures as unique identifiers:\n/// - The recovery operations do NOT check if a signature is non-malleable.\n/// - Use a nonce in the digest to prevent replay attacks on the same contract.\n/// - Use EIP-712 for the digest to prevent replay attacks across different chains and contracts.\n///   EIP-712 also enables readable signing of typed data for better user safety.\n/// - If you need a unique hash from a signature, please use the `canonicalHash` functions.\nlibrary ECDSA {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         CONSTANTS                          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The order of the secp256k1 elliptic curve.\n    uint256 internal constant N = 0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141;\n\n    /// @dev `N/2 + 1`. Used for checking the malleability of the signature.\n    uint256 private constant _HALF_N_PLUS_1 =\n        0x7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a1;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                        CUSTOM ERRORS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The signature is invalid.\n    error InvalidSignature();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                    RECOVERY OPERATIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Recovers the signer's address from a message digest `hash`, and the `signature`.\n    function recover(bytes32 hash, bytes memory signature) internal view returns (address result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            for { let m := mload(0x40) } 1 {\n                mstore(0x00, 0x8baa579f) // `InvalidSignature()`.\n                revert(0x1c, 0x04)\n            } {\n                switch mload(signature)\n                case 64 {\n                    let vs := mload(add(signature, 0x40))\n                    mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                    mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                }\n                case 65 {\n                    mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`.\n                    mstore(0x60, mload(add(signature, 0x40))) // `s`.\n                }\n                default { continue }\n                mstore(0x00, hash)\n                mstore(0x40, mload(add(signature, 0x20))) // `r`.\n                result := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n                mstore(0x60, 0) // Restore the zero slot.\n                mstore(0x40, m) // Restore the free memory pointer.\n                // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n                if returndatasize() { break }\n            }\n        }\n    }\n\n    /// @dev Recovers the signer's address from a message digest `hash`, and the `signature`.\n    function recoverCalldata(bytes32 hash, bytes calldata signature)\n        internal\n        view\n        returns (address result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            for { let m := mload(0x40) } 1 {\n                mstore(0x00, 0x8baa579f) // `InvalidSignature()`.\n                revert(0x1c, 0x04)\n            } {\n                switch signature.length\n                case 64 {\n                    let vs := calldataload(add(signature.offset, 0x20))\n                    mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                    mstore(0x40, calldataload(signature.offset)) // `r`.\n                    mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                }\n                case 65 {\n                    mstore(0x20, byte(0, calldataload(add(signature.offset, 0x40)))) // `v`.\n                    calldatacopy(0x40, signature.offset, 0x40) // Copy `r` and `s`.\n                }\n                default { continue }\n                mstore(0x00, hash)\n                result := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n                mstore(0x60, 0) // Restore the zero slot.\n                mstore(0x40, m) // Restore the free memory pointer.\n                // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n                if returndatasize() { break }\n            }\n        }\n    }\n\n    /// @dev Recovers the signer's address from a message digest `hash`,\n    /// and the EIP-2098 short form signature defined by `r` and `vs`.\n    function recover(bytes32 hash, bytes32 r, bytes32 vs) internal view returns (address result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x00, hash)\n            mstore(0x20, add(shr(255, vs), 27)) // `v`.\n            mstore(0x40, r)\n            mstore(0x60, shr(1, shl(1, vs))) // `s`.\n            result := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n            // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n            if iszero(returndatasize()) {\n                mstore(0x00, 0x8baa579f) // `InvalidSignature()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x60, 0) // Restore the zero slot.\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n    }\n\n    /// @dev Recovers the signer's address from a message digest `hash`,\n    /// and the signature defined by `v`, `r`, `s`.\n    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s)\n        internal\n        view\n        returns (address result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x00, hash)\n            mstore(0x20, and(v, 0xff))\n            mstore(0x40, r)\n            mstore(0x60, s)\n            result := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n            // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n            if iszero(returndatasize()) {\n                mstore(0x00, 0x8baa579f) // `InvalidSignature()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x60, 0) // Restore the zero slot.\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                   TRY-RECOVER OPERATIONS                   */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // WARNING!\n    // These functions will NOT revert upon recovery failure.\n    // Instead, they will return the zero address upon recovery failure.\n    // It is critical that the returned address is NEVER compared against\n    // a zero address (e.g. an uninitialized address variable).\n\n    /// @dev Recovers the signer's address from a message digest `hash`, and the `signature`.\n    function tryRecover(bytes32 hash, bytes memory signature)\n        internal\n        view\n        returns (address result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            for { let m := mload(0x40) } 1 {} {\n                switch mload(signature)\n                case 64 {\n                    let vs := mload(add(signature, 0x40))\n                    mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                    mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                }\n                case 65 {\n                    mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`.\n                    mstore(0x60, mload(add(signature, 0x40))) // `s`.\n                }\n                default { break }\n                mstore(0x00, hash)\n                mstore(0x40, mload(add(signature, 0x20))) // `r`.\n                pop(staticcall(gas(), 1, 0x00, 0x80, 0x40, 0x20))\n                mstore(0x60, 0) // Restore the zero slot.\n                // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n                result := mload(xor(0x60, returndatasize()))\n                mstore(0x40, m) // Restore the free memory pointer.\n                break\n            }\n        }\n    }\n\n    /// @dev Recovers the signer's address from a message digest `hash`, and the `signature`.\n    function tryRecoverCalldata(bytes32 hash, bytes calldata signature)\n        internal\n        view\n        returns (address result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            for { let m := mload(0x40) } 1 {} {\n                switch signature.length\n                case 64 {\n                    let vs := calldataload(add(signature.offset, 0x20))\n                    mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                    mstore(0x40, calldataload(signature.offset)) // `r`.\n                    mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                }\n                case 65 {\n                    mstore(0x20, byte(0, calldataload(add(signature.offset, 0x40)))) // `v`.\n                    calldatacopy(0x40, signature.offset, 0x40) // Copy `r` and `s`.\n                }\n                default { break }\n                mstore(0x00, hash)\n                pop(staticcall(gas(), 1, 0x00, 0x80, 0x40, 0x20))\n                mstore(0x60, 0) // Restore the zero slot.\n                // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n                result := mload(xor(0x60, returndatasize()))\n                mstore(0x40, m) // Restore the free memory pointer.\n                break\n            }\n        }\n    }\n\n    /// @dev Recovers the signer's address from a message digest `hash`,\n    /// and the EIP-2098 short form signature defined by `r` and `vs`.\n    function tryRecover(bytes32 hash, bytes32 r, bytes32 vs)\n        internal\n        view\n        returns (address result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x00, hash)\n            mstore(0x20, add(shr(255, vs), 27)) // `v`.\n            mstore(0x40, r)\n            mstore(0x60, shr(1, shl(1, vs))) // `s`.\n            pop(staticcall(gas(), 1, 0x00, 0x80, 0x40, 0x20))\n            mstore(0x60, 0) // Restore the zero slot.\n            // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n            result := mload(xor(0x60, returndatasize()))\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n    }\n\n    /// @dev Recovers the signer's address from a message digest `hash`,\n    /// and the signature defined by `v`, `r`, `s`.\n    function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s)\n        internal\n        view\n        returns (address result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x00, hash)\n            mstore(0x20, and(v, 0xff))\n            mstore(0x40, r)\n            mstore(0x60, s)\n            pop(staticcall(gas(), 1, 0x00, 0x80, 0x40, 0x20))\n            mstore(0x60, 0) // Restore the zero slot.\n            // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n            result := mload(xor(0x60, returndatasize()))\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     HASHING OPERATIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns an Ethereum Signed Message, created from a `hash`.\n    /// This produces a hash corresponding to the one signed with the\n    /// [`eth_sign`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign)\n    /// JSON-RPC method as part of EIP-191.\n    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x20, hash) // Store into scratch space for keccak256.\n            mstore(0x00, \"\\x00\\x00\\x00\\x00\\x19Ethereum Signed Message:\\n32\") // 28 bytes.\n            result := keccak256(0x04, 0x3c) // `32 * 2 - (32 - 28) = 60 = 0x3c`.\n        }\n    }\n\n    /// @dev Returns an Ethereum Signed Message, created from `s`.\n    /// This produces a hash corresponding to the one signed with the\n    /// [`eth_sign`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign)\n    /// JSON-RPC method as part of EIP-191.\n    /// Note: Supports lengths of `s` up to 999999 bytes.\n    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let sLength := mload(s)\n            let o := 0x20\n            mstore(o, \"\\x19Ethereum Signed Message:\\n\") // 26 bytes, zero-right-padded.\n            mstore(0x00, 0x00)\n            // Convert the `s.length` to ASCII decimal representation: `base10(s.length)`.\n            for { let temp := sLength } 1 {} {\n                o := sub(o, 1)\n                mstore8(o, add(48, mod(temp, 10)))\n                temp := div(temp, 10)\n                if iszero(temp) { break }\n            }\n            let n := sub(0x3a, o) // Header length: `26 + 32 - o`.\n            // Throw an out-of-offset error (consumes all gas) if the header exceeds 32 bytes.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0x20))\n            mstore(s, or(mload(0x00), mload(n))) // Temporarily store the header.\n            result := keccak256(add(s, sub(0x20, n)), add(n, sLength))\n            mstore(s, sLength) // Restore the length.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                  CANONICAL HASH FUNCTIONS                  */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // The following functions return the hash of the signature in its canonicalized format,\n    // which is the 65-byte `abi.encodePacked(r, s, uint8(v))`, where `v` is either 27 or 28.\n    // If `s` is greater than `N / 2` then it will be converted to `N - s`\n    // and the `v` value will be flipped.\n    // If the signature has an invalid length, or if `v` is invalid,\n    // a uniquely corrupt hash will be returned.\n    // These functions are useful for \"poor-mans-VRF\".\n\n    /// @dev Returns the canonical hash of `signature`.\n    function canonicalHash(bytes memory signature) internal pure returns (bytes32 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let l := mload(signature)\n            for {} 1 {} {\n                mstore(0x00, mload(add(signature, 0x20))) // `r`.\n                let s := mload(add(signature, 0x40))\n                let v := mload(add(signature, 0x41))\n                if eq(l, 64) {\n                    v := add(shr(255, s), 27)\n                    s := shr(1, shl(1, s))\n                }\n                if iszero(lt(s, _HALF_N_PLUS_1)) {\n                    v := xor(v, 7)\n                    s := sub(N, s)\n                }\n                mstore(0x21, v)\n                mstore(0x20, s)\n                result := keccak256(0x00, 0x41)\n                mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n                break\n            }\n\n            // If the length is neither 64 nor 65, return a uniquely corrupted hash.\n            if iszero(lt(sub(l, 64), 2)) {\n                // `bytes4(keccak256(\"InvalidSignatureLength\"))`.\n                result := xor(keccak256(add(signature, 0x20), l), 0xd62f1ab2)\n            }\n        }\n    }\n\n    /// @dev Returns the canonical hash of `signature`.\n    function canonicalHashCalldata(bytes calldata signature)\n        internal\n        pure\n        returns (bytes32 result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            for {} 1 {} {\n                mstore(0x00, calldataload(signature.offset)) // `r`.\n                let s := calldataload(add(signature.offset, 0x20))\n                let v := calldataload(add(signature.offset, 0x21))\n                if eq(signature.length, 64) {\n                    v := add(shr(255, s), 27)\n                    s := shr(1, shl(1, s))\n                }\n                if iszero(lt(s, _HALF_N_PLUS_1)) {\n                    v := xor(v, 7)\n                    s := sub(N, s)\n                }\n                mstore(0x21, v)\n                mstore(0x20, s)\n                result := keccak256(0x00, 0x41)\n                mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n                break\n            }\n            // If the length is neither 64 nor 65, return a uniquely corrupted hash.\n            if iszero(lt(sub(signature.length, 64), 2)) {\n                calldatacopy(mload(0x40), signature.offset, signature.length)\n                // `bytes4(keccak256(\"InvalidSignatureLength\"))`.\n                result := xor(keccak256(mload(0x40), signature.length), 0xd62f1ab2)\n            }\n        }\n    }\n\n    /// @dev Returns the canonical hash of `signature`.\n    function canonicalHash(bytes32 r, bytes32 vs) internal pure returns (bytes32 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, r) // `r`.\n            let v := add(shr(255, vs), 27)\n            let s := shr(1, shl(1, vs))\n            mstore(0x21, v)\n            mstore(0x20, s)\n            result := keccak256(0x00, 0x41)\n            mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the canonical hash of `signature`.\n    function canonicalHash(uint8 v, bytes32 r, bytes32 s) internal pure returns (bytes32 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, r) // `r`.\n            if iszero(lt(s, _HALF_N_PLUS_1)) {\n                v := xor(v, 7)\n                s := sub(N, s)\n            }\n            mstore(0x21, v)\n            mstore(0x20, s)\n            result := keccak256(0x00, 0x41)\n            mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                   EMPTY CALLDATA HELPERS                   */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns an empty calldata bytes.\n    function emptySignature() internal pure returns (bytes calldata signature) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            signature.length := 0\n        }\n    }\n}\n"},"lib/solady/src/utils/Initializable.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Initializable mixin for the upgradeable contracts.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/Initializable.sol)\n/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/tree/master/contracts/proxy/utils/Initializable.sol)\nabstract contract Initializable {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The contract is already initialized.\n    error InvalidInitialization();\n\n    /// @dev The contract is not initializing.\n    error NotInitializing();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                           EVENTS                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Triggered when the contract has been initialized.\n    event Initialized(uint64 version);\n\n    /// @dev `keccak256(bytes(\"Initialized(uint64)\"))`.\n    bytes32 private constant _INITIALIZED_EVENT_SIGNATURE =\n        0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                          STORAGE                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The default initializable slot is given by:\n    /// `bytes32(~uint256(uint32(bytes4(keccak256(\"_INITIALIZABLE_SLOT\")))))`.\n    ///\n    /// Bits Layout:\n    /// - [0]     `initializing`\n    /// - [1..64] `initializedVersion`\n    bytes32 private constant _INITIALIZABLE_SLOT =\n        0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf601132;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                        CONSTRUCTOR                         */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    constructor() {\n        // Construction time check to ensure that `_initializableSlot()` is not\n        // overridden to zero. Will be optimized away if there is no revert.\n        require(_initializableSlot() != bytes32(0));\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         OPERATIONS                         */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Override to return a non-zero custom storage slot if required.\n    function _initializableSlot() internal pure virtual returns (bytes32) {\n        return _INITIALIZABLE_SLOT;\n    }\n\n    /// @dev Guards an initializer function so that it can be invoked at most once.\n    ///\n    /// You can guard a function with `onlyInitializing` such that it can be called\n    /// through a function guarded with `initializer`.\n    ///\n    /// This is similar to `reinitializer(1)`, except that in the context of a constructor,\n    /// an `initializer` guarded function can be invoked multiple times.\n    /// This can be useful during testing and is not expected to be used in production.\n    ///\n    /// Emits an {Initialized} event.\n    modifier initializer() virtual {\n        bytes32 s = _initializableSlot();\n        /// @solidity memory-safe-assembly\n        assembly {\n            let i := sload(s)\n            // Set `initializing` to 1, `initializedVersion` to 1.\n            sstore(s, 3)\n            // If `!(initializing == 0 && initializedVersion == 0)`.\n            if i {\n                // If `!(address(this).code.length == 0 && initializedVersion == 1)`.\n                if iszero(lt(extcodesize(address()), eq(shr(1, i), 1))) {\n                    mstore(0x00, 0xf92ee8a9) // `InvalidInitialization()`.\n                    revert(0x1c, 0x04)\n                }\n                s := shl(shl(255, i), s) // Skip initializing if `initializing == 1`.\n            }\n        }\n        _;\n        /// @solidity memory-safe-assembly\n        assembly {\n            if s {\n                // Set `initializing` to 0, `initializedVersion` to 1.\n                sstore(s, 2)\n                // Emit the {Initialized} event.\n                mstore(0x20, 1)\n                log1(0x20, 0x20, _INITIALIZED_EVENT_SIGNATURE)\n            }\n        }\n    }\n\n    /// @dev Guards a reinitializer function so that it can be invoked at most once.\n    ///\n    /// You can guard a function with `onlyInitializing` such that it can be called\n    /// through a function guarded with `reinitializer`.\n    ///\n    /// Emits an {Initialized} event.\n    modifier reinitializer(uint64 version) virtual {\n        bytes32 s = _initializableSlot();\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Clean upper bits, and shift left by 1 to make space for the initializing bit.\n            version := shl(1, and(version, 0xffffffffffffffff))\n            let i := sload(s)\n            // If `initializing == 1 || initializedVersion >= version`.\n            if iszero(lt(and(i, 1), lt(i, version))) {\n                mstore(0x00, 0xf92ee8a9) // `InvalidInitialization()`.\n                revert(0x1c, 0x04)\n            }\n            // Set `initializing` to 1, `initializedVersion` to `version`.\n            sstore(s, or(1, version))\n        }\n        _;\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Set `initializing` to 0, `initializedVersion` to `version`.\n            sstore(s, version)\n            // Emit the {Initialized} event.\n            mstore(0x20, shr(1, version))\n            log1(0x20, 0x20, _INITIALIZED_EVENT_SIGNATURE)\n        }\n    }\n\n    /// @dev Guards a function such that it can only be called in the scope\n    /// of a function guarded with `initializer` or `reinitializer`.\n    modifier onlyInitializing() virtual {\n        _checkInitializing();\n        _;\n    }\n\n    /// @dev Reverts if the contract is not initializing.\n    function _checkInitializing() internal view virtual {\n        bytes32 s = _initializableSlot();\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(and(1, sload(s))) {\n                mstore(0x00, 0xd7e6bcf8) // `NotInitializing()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Locks any future initializations by setting the initialized version to `2**64 - 1`.\n    ///\n    /// Calling this in the constructor will prevent the contract from being initialized\n    /// or reinitialized. It is recommended to use this to lock implementation contracts\n    /// that are designed to be called through proxies.\n    ///\n    /// Emits an {Initialized} event the first time it is successfully called.\n    function _disableInitializers() internal virtual {\n        bytes32 s = _initializableSlot();\n        /// @solidity memory-safe-assembly\n        assembly {\n            let i := sload(s)\n            if and(i, 1) {\n                mstore(0x00, 0xf92ee8a9) // `InvalidInitialization()`.\n                revert(0x1c, 0x04)\n            }\n            let uint64max := 0xffffffffffffffff\n            if iszero(eq(shr(1, i), uint64max)) {\n                // Set `initializing` to 0, `initializedVersion` to `2**64 - 1`.\n                sstore(s, shl(1, uint64max))\n                // Emit the {Initialized} event.\n                mstore(0x20, uint64max)\n                log1(0x20, 0x20, _INITIALIZED_EVENT_SIGNATURE)\n            }\n        }\n    }\n\n    /// @dev Returns the highest version that has been initialized.\n    function _getInitializedVersion() internal view virtual returns (uint64 version) {\n        bytes32 s = _initializableSlot();\n        /// @solidity memory-safe-assembly\n        assembly {\n            version := shr(1, sload(s))\n        }\n    }\n\n    /// @dev Returns whether the contract is currently initializing.\n    function _isInitializing() internal view virtual returns (bool result) {\n        bytes32 s = _initializableSlot();\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := and(1, sload(s))\n        }\n    }\n}\n"},"lib/solady/src/utils/LibClone.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Minimal proxy library.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/LibClone.sol)\n/// @author Minimal proxy by 0age (https://github.com/0age)\n/// @author Clones with immutable args by wighawag, zefram.eth, Saw-mon & Natalie\n/// (https://github.com/Saw-mon-and-Natalie/clones-with-immutable-args)\n/// @author Minimal ERC1967 proxy by jtriley-eth (https://github.com/jtriley-eth/minimum-viable-proxy)\n///\n/// @dev Minimal proxy:\n/// Although the sw0nt pattern saves 5 gas over the ERC1167 pattern during runtime,\n/// it is not supported out-of-the-box on Etherscan. Hence, we choose to use the 0age pattern,\n/// which saves 4 gas over the ERC1167 pattern during runtime, and has the smallest bytecode.\n/// - Automatically verified on Etherscan.\n///\n/// @dev Minimal proxy (PUSH0 variant):\n/// This is a new minimal proxy that uses the PUSH0 opcode introduced during Shanghai.\n/// It is optimized first for minimal runtime gas, then for minimal bytecode.\n/// The PUSH0 clone functions are intentionally postfixed with a jarring \"_PUSH0\" as\n/// many EVM chains may not support the PUSH0 opcode in the early months after Shanghai.\n/// Please use with caution.\n/// - Automatically verified on Etherscan.\n///\n/// @dev Clones with immutable args (CWIA):\n/// The implementation of CWIA here does NOT append the immutable args into the calldata\n/// passed into delegatecall. It is simply an ERC1167 minimal proxy with the immutable arguments\n/// appended to the back of the runtime bytecode.\n/// - Uses the identity precompile (0x4) to copy args during deployment.\n///\n/// @dev Minimal ERC1967 proxy:\n/// A minimal ERC1967 proxy, intended to be upgraded with UUPS.\n/// This is NOT the same as ERC1967Factory's transparent proxy, which includes admin logic.\n/// - Automatically verified on Etherscan.\n///\n/// @dev Minimal ERC1967 proxy with immutable args:\n/// - Uses the identity precompile (0x4) to copy args during deployment.\n/// - Automatically verified on Etherscan.\n///\n/// @dev ERC1967I proxy:\n/// A variant of the minimal ERC1967 proxy, with a special code path that activates\n/// if `calldatasize() == 1`. This code path skips the delegatecall and directly returns the\n/// `implementation` address. The returned implementation is guaranteed to be valid if the\n/// keccak256 of the proxy's code is equal to `ERC1967I_CODE_HASH`.\n///\n/// @dev ERC1967I proxy with immutable args:\n/// A variant of the minimal ERC1967 proxy, with a special code path that activates\n/// if `calldatasize() == 1`. This code path skips the delegatecall and directly returns the\n/// - Uses the identity precompile (0x4) to copy args during deployment.\n///\n/// @dev Minimal ERC1967 beacon proxy:\n/// A minimal beacon proxy, intended to be upgraded with an upgradable beacon.\n/// - Automatically verified on Etherscan.\n///\n/// @dev Minimal ERC1967 beacon proxy with immutable args:\n/// - Uses the identity precompile (0x4) to copy args during deployment.\n/// - Automatically verified on Etherscan.\n///\n/// @dev ERC1967I beacon proxy:\n/// A variant of the minimal ERC1967 beacon proxy, with a special code path that activates\n/// if `calldatasize() == 1`. This code path skips the delegatecall and directly returns the\n/// `implementation` address. The returned implementation is guaranteed to be valid if the\n/// keccak256 of the proxy's code is equal to `ERC1967I_CODE_HASH`.\n///\n/// @dev ERC1967I proxy with immutable args:\n/// A variant of the minimal ERC1967 beacon proxy, with a special code path that activates\n/// if `calldatasize() == 1`. This code path skips the delegatecall and directly returns the\n/// - Uses the identity precompile (0x4) to copy args during deployment.\nlibrary LibClone {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         CONSTANTS                          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The keccak256 of deployed code for the clone proxy,\n    /// with the implementation set to `address(0)`.\n    bytes32 internal constant CLONE_CODE_HASH =\n        0x48db2cfdb2853fce0b464f1f93a1996469459df3ab6c812106074c4106a1eb1f;\n\n    /// @dev The keccak256 of deployed code for the PUSH0 proxy,\n    /// with the implementation set to `address(0)`.\n    bytes32 internal constant PUSH0_CLONE_CODE_HASH =\n        0x67bc6bde1b84d66e267c718ba44cf3928a615d29885537955cb43d44b3e789dc;\n\n    /// @dev The keccak256 of deployed code for the ERC-1167 CWIA proxy,\n    /// with the implementation set to `address(0)`.\n    bytes32 internal constant CWIA_CODE_HASH =\n        0x3cf92464268225a4513da40a34d967354684c32cd0edd67b5f668dfe3550e940;\n\n    /// @dev The keccak256 of the deployed code for the ERC1967 proxy.\n    bytes32 internal constant ERC1967_CODE_HASH =\n        0xaaa52c8cc8a0e3fd27ce756cc6b4e70c51423e9b597b11f32d3e49f8b1fc890d;\n\n    /// @dev The keccak256 of the deployed code for the ERC1967I proxy.\n    bytes32 internal constant ERC1967I_CODE_HASH =\n        0xce700223c0d4cea4583409accfc45adac4a093b3519998a9cbbe1504dadba6f7;\n\n    /// @dev The keccak256 of the deployed code for the ERC1967 beacon proxy.\n    bytes32 internal constant ERC1967_BEACON_PROXY_CODE_HASH =\n        0x14044459af17bc4f0f5aa2f658cb692add77d1302c29fe2aebab005eea9d1162;\n\n    /// @dev The keccak256 of the deployed code for the ERC1967 beacon proxy.\n    bytes32 internal constant ERC1967I_BEACON_PROXY_CODE_HASH =\n        0xf8c46d2793d5aa984eb827aeaba4b63aedcab80119212fce827309788735519a;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Unable to deploy the clone.\n    error DeploymentFailed();\n\n    /// @dev The salt must start with either the zero address or `by`.\n    error SaltDoesNotStartWith();\n\n    /// @dev The ETH transfer has failed.\n    error ETHTransferFailed();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                  MINIMAL PROXY OPERATIONS                  */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Deploys a clone of `implementation`.\n    function clone(address implementation) internal returns (address instance) {\n        instance = clone(0, implementation);\n    }\n\n    /// @dev Deploys a clone of `implementation`.\n    /// Deposits `value` ETH during deployment.\n    function clone(uint256 value, address implementation) internal returns (address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            /**\n             * --------------------------------------------------------------------------+\n             * CREATION (9 bytes)                                                        |\n             * --------------------------------------------------------------------------|\n             * Opcode     | Mnemonic          | Stack     | Memory                       |\n             * --------------------------------------------------------------------------|\n             * 60 runSize | PUSH1 runSize     | r         |                              |\n             * 3d         | RETURNDATASIZE    | 0 r       |                              |\n             * 81         | DUP2              | r 0 r     |                              |\n             * 60 offset  | PUSH1 offset      | o r 0 r   |                              |\n             * 3d         | RETURNDATASIZE    | 0 o r 0 r |                              |\n             * 39         | CODECOPY          | 0 r       | [0..runSize): runtime code   |\n             * f3         | RETURN            |           | [0..runSize): runtime code   |\n             * --------------------------------------------------------------------------|\n             * RUNTIME (44 bytes)                                                        |\n             * --------------------------------------------------------------------------|\n             * Opcode  | Mnemonic       | Stack                  | Memory                |\n             * --------------------------------------------------------------------------|\n             *                                                                           |\n             * ::: keep some values in stack ::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d      | RETURNDATASIZE | 0                      |                       |\n             * 3d      | RETURNDATASIZE | 0 0                    |                       |\n             * 3d      | RETURNDATASIZE | 0 0 0                  |                       |\n             * 3d      | RETURNDATASIZE | 0 0 0 0                |                       |\n             *                                                                           |\n             * ::: copy calldata to memory ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 36      | CALLDATASIZE   | cds 0 0 0 0            |                       |\n             * 3d      | RETURNDATASIZE | 0 cds 0 0 0 0          |                       |\n             * 3d      | RETURNDATASIZE | 0 0 cds 0 0 0 0        |                       |\n             * 37      | CALLDATACOPY   | 0 0 0 0                | [0..cds): calldata    |\n             *                                                                           |\n             * ::: delegate call to the implementation contract :::::::::::::::::::::::: |\n             * 36      | CALLDATASIZE   | cds 0 0 0 0            | [0..cds): calldata    |\n             * 3d      | RETURNDATASIZE | 0 cds 0 0 0 0          | [0..cds): calldata    |\n             * 73 addr | PUSH20 addr    | addr 0 cds 0 0 0 0     | [0..cds): calldata    |\n             * 5a      | GAS            | gas addr 0 cds 0 0 0 0 | [0..cds): calldata    |\n             * f4      | DELEGATECALL   | success 0 0            | [0..cds): calldata    |\n             *                                                                           |\n             * ::: copy return data to memory :::::::::::::::::::::::::::::::::::::::::: |\n             * 3d      | RETURNDATASIZE | rds success 0 0        | [0..cds): calldata    |\n             * 3d      | RETURNDATASIZE | rds rds success 0 0    | [0..cds): calldata    |\n             * 93      | SWAP4          | 0 rds success 0 rds    | [0..cds): calldata    |\n             * 80      | DUP1           | 0 0 rds success 0 rds  | [0..cds): calldata    |\n             * 3e      | RETURNDATACOPY | success 0 rds          | [0..rds): returndata  |\n             *                                                                           |\n             * 60 0x2a | PUSH1 0x2a     | 0x2a success 0 rds     | [0..rds): returndata  |\n             * 57      | JUMPI          | 0 rds                  | [0..rds): returndata  |\n             *                                                                           |\n             * ::: revert :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * fd      | REVERT         |                        | [0..rds): returndata  |\n             *                                                                           |\n             * ::: return :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 5b      | JUMPDEST       | 0 rds                  | [0..rds): returndata  |\n             * f3      | RETURN         |                        | [0..rds): returndata  |\n             * --------------------------------------------------------------------------+\n             */\n            mstore(0x21, 0x5af43d3d93803e602a57fd5bf3)\n            mstore(0x14, implementation)\n            mstore(0x00, 0x602c3d8160093d39f33d3d3d3d363d3d37363d73)\n            instance := create(value, 0x0c, 0x35)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Deploys a deterministic clone of `implementation` with `salt`.\n    function cloneDeterministic(address implementation, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = cloneDeterministic(0, implementation, salt);\n    }\n\n    /// @dev Deploys a deterministic clone of `implementation` with `salt`.\n    /// Deposits `value` ETH during deployment.\n    function cloneDeterministic(uint256 value, address implementation, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x21, 0x5af43d3d93803e602a57fd5bf3)\n            mstore(0x14, implementation)\n            mstore(0x00, 0x602c3d8160093d39f33d3d3d3d363d3d37363d73)\n            instance := create2(value, 0x0c, 0x35, salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the initialization code of the clone of `implementation`.\n    function initCode(address implementation) internal pure returns (bytes memory c) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            mstore(add(c, 0x40), 0x5af43d3d93803e602a57fd5bf30000000000000000000000)\n            mstore(add(c, 0x28), implementation)\n            mstore(add(c, 0x14), 0x602c3d8160093d39f33d3d3d3d363d3d37363d73)\n            mstore(c, 0x35) // Store the length.\n            mstore(0x40, add(c, 0x60)) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the clone of `implementation`.\n    function initCodeHash(address implementation) internal pure returns (bytes32 hash) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x21, 0x5af43d3d93803e602a57fd5bf3)\n            mstore(0x14, implementation)\n            mstore(0x00, 0x602c3d8160093d39f33d3d3d3d363d3d37363d73)\n            hash := keccak256(0x0c, 0x35)\n            mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the address of the clone of `implementation`, with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddress(address implementation, bytes32 salt, address deployer)\n        internal\n        pure\n        returns (address predicted)\n    {\n        bytes32 hash = initCodeHash(implementation);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*          MINIMAL PROXY OPERATIONS (PUSH0 VARIANT)          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Deploys a PUSH0 clone of `implementation`.\n    function clone_PUSH0(address implementation) internal returns (address instance) {\n        instance = clone_PUSH0(0, implementation);\n    }\n\n    /// @dev Deploys a PUSH0 clone of `implementation`.\n    /// Deposits `value` ETH during deployment.\n    function clone_PUSH0(uint256 value, address implementation)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            /**\n             * --------------------------------------------------------------------------+\n             * CREATION (9 bytes)                                                        |\n             * --------------------------------------------------------------------------|\n             * Opcode     | Mnemonic          | Stack     | Memory                       |\n             * --------------------------------------------------------------------------|\n             * 60 runSize | PUSH1 runSize     | r         |                              |\n             * 5f         | PUSH0             | 0 r       |                              |\n             * 81         | DUP2              | r 0 r     |                              |\n             * 60 offset  | PUSH1 offset      | o r 0 r   |                              |\n             * 5f         | PUSH0             | 0 o r 0 r |                              |\n             * 39         | CODECOPY          | 0 r       | [0..runSize): runtime code   |\n             * f3         | RETURN            |           | [0..runSize): runtime code   |\n             * --------------------------------------------------------------------------|\n             * RUNTIME (45 bytes)                                                        |\n             * --------------------------------------------------------------------------|\n             * Opcode  | Mnemonic       | Stack                  | Memory                |\n             * --------------------------------------------------------------------------|\n             *                                                                           |\n             * ::: keep some values in stack ::::::::::::::::::::::::::::::::::::::::::: |\n             * 5f      | PUSH0          | 0                      |                       |\n             * 5f      | PUSH0          | 0 0                    |                       |\n             *                                                                           |\n             * ::: copy calldata to memory ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 36      | CALLDATASIZE   | cds 0 0                |                       |\n             * 5f      | PUSH0          | 0 cds 0 0              |                       |\n             * 5f      | PUSH0          | 0 0 cds 0 0            |                       |\n             * 37      | CALLDATACOPY   | 0 0                    | [0..cds): calldata    |\n             *                                                                           |\n             * ::: delegate call to the implementation contract :::::::::::::::::::::::: |\n             * 36      | CALLDATASIZE   | cds 0 0                | [0..cds): calldata    |\n             * 5f      | PUSH0          | 0 cds 0 0              | [0..cds): calldata    |\n             * 73 addr | PUSH20 addr    | addr 0 cds 0 0         | [0..cds): calldata    |\n             * 5a      | GAS            | gas addr 0 cds 0 0     | [0..cds): calldata    |\n             * f4      | DELEGATECALL   | success                | [0..cds): calldata    |\n             *                                                                           |\n             * ::: copy return data to memory :::::::::::::::::::::::::::::::::::::::::: |\n             * 3d      | RETURNDATASIZE | rds success            | [0..cds): calldata    |\n             * 5f      | PUSH0          | 0 rds success          | [0..cds): calldata    |\n             * 5f      | PUSH0          | 0 0 rds success        | [0..cds): calldata    |\n             * 3e      | RETURNDATACOPY | success                | [0..rds): returndata  |\n             *                                                                           |\n             * 60 0x29 | PUSH1 0x29     | 0x29 success           | [0..rds): returndata  |\n             * 57      | JUMPI          |                        | [0..rds): returndata  |\n             *                                                                           |\n             * ::: revert :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d      | RETURNDATASIZE | rds                    | [0..rds): returndata  |\n             * 5f      | PUSH0          | 0 rds                  | [0..rds): returndata  |\n             * fd      | REVERT         |                        | [0..rds): returndata  |\n             *                                                                           |\n             * ::: return :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 5b      | JUMPDEST       |                        | [0..rds): returndata  |\n             * 3d      | RETURNDATASIZE | rds                    | [0..rds): returndata  |\n             * 5f      | PUSH0          | 0 rds                  | [0..rds): returndata  |\n             * f3      | RETURN         |                        | [0..rds): returndata  |\n             * --------------------------------------------------------------------------+\n             */\n            mstore(0x24, 0x5af43d5f5f3e6029573d5ffd5b3d5ff3) // 16\n            mstore(0x14, implementation) // 20\n            mstore(0x00, 0x602d5f8160095f39f35f5f365f5f37365f73) // 9 + 9\n            instance := create(value, 0x0e, 0x36)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x24, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Deploys a deterministic PUSH0 clone of `implementation` with `salt`.\n    function cloneDeterministic_PUSH0(address implementation, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = cloneDeterministic_PUSH0(0, implementation, salt);\n    }\n\n    /// @dev Deploys a deterministic PUSH0 clone of `implementation` with `salt`.\n    /// Deposits `value` ETH during deployment.\n    function cloneDeterministic_PUSH0(uint256 value, address implementation, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x24, 0x5af43d5f5f3e6029573d5ffd5b3d5ff3) // 16\n            mstore(0x14, implementation) // 20\n            mstore(0x00, 0x602d5f8160095f39f35f5f365f5f37365f73) // 9 + 9\n            instance := create2(value, 0x0e, 0x36, salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x24, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the initialization code of the PUSH0 clone of `implementation`.\n    function initCode_PUSH0(address implementation) internal pure returns (bytes memory c) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            mstore(add(c, 0x40), 0x5af43d5f5f3e6029573d5ffd5b3d5ff300000000000000000000) // 16\n            mstore(add(c, 0x26), implementation) // 20\n            mstore(add(c, 0x12), 0x602d5f8160095f39f35f5f365f5f37365f73) // 9 + 9\n            mstore(c, 0x36) // Store the length.\n            mstore(0x40, add(c, 0x60)) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the PUSH0 clone of `implementation`.\n    function initCodeHash_PUSH0(address implementation) internal pure returns (bytes32 hash) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x24, 0x5af43d5f5f3e6029573d5ffd5b3d5ff3) // 16\n            mstore(0x14, implementation) // 20\n            mstore(0x00, 0x602d5f8160095f39f35f5f365f5f37365f73) // 9 + 9\n            hash := keccak256(0x0e, 0x36)\n            mstore(0x24, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the address of the PUSH0 clone of `implementation`, with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddress_PUSH0(\n        address implementation,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHash_PUSH0(implementation);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*           CLONES WITH IMMUTABLE ARGS OPERATIONS            */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Deploys a clone of `implementation` with immutable arguments encoded in `args`.\n    function clone(address implementation, bytes memory args) internal returns (address instance) {\n        instance = clone(0, implementation, args);\n    }\n\n    /// @dev Deploys a clone of `implementation` with immutable arguments encoded in `args`.\n    /// Deposits `value` ETH during deployment.\n    function clone(uint256 value, address implementation, bytes memory args)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            /**\n             * ---------------------------------------------------------------------------+\n             * CREATION (10 bytes)                                                        |\n             * ---------------------------------------------------------------------------|\n             * Opcode     | Mnemonic          | Stack     | Memory                        |\n             * ---------------------------------------------------------------------------|\n             * 61 runSize | PUSH2 runSize     | r         |                               |\n             * 3d         | RETURNDATASIZE    | 0 r       |                               |\n             * 81         | DUP2              | r 0 r     |                               |\n             * 60 offset  | PUSH1 offset      | o r 0 r   |                               |\n             * 3d         | RETURNDATASIZE    | 0 o r 0 r |                               |\n             * 39         | CODECOPY          | 0 r       | [0..runSize): runtime code    |\n             * f3         | RETURN            |           | [0..runSize): runtime code    |\n             * ---------------------------------------------------------------------------|\n             * RUNTIME (45 bytes + extraLength)                                           |\n             * ---------------------------------------------------------------------------|\n             * Opcode   | Mnemonic       | Stack                  | Memory                |\n             * ---------------------------------------------------------------------------|\n             *                                                                            |\n             * ::: copy calldata to memory :::::::::::::::::::::::::::::::::::::::::::::: |\n             * 36       | CALLDATASIZE   | cds                    |                       |\n             * 3d       | RETURNDATASIZE | 0 cds                  |                       |\n             * 3d       | RETURNDATASIZE | 0 0 cds                |                       |\n             * 37       | CALLDATACOPY   |                        | [0..cds): calldata    |\n             *                                                                            |\n             * ::: delegate call to the implementation contract ::::::::::::::::::::::::: |\n             * 3d       | RETURNDATASIZE | 0                      | [0..cds): calldata    |\n             * 3d       | RETURNDATASIZE | 0 0                    | [0..cds): calldata    |\n             * 3d       | RETURNDATASIZE | 0 0 0                  | [0..cds): calldata    |\n             * 36       | CALLDATASIZE   | cds 0 0 0              | [0..cds): calldata    |\n             * 3d       | RETURNDATASIZE | 0 cds 0 0 0 0          | [0..cds): calldata    |\n             * 73 addr  | PUSH20 addr    | addr 0 cds 0 0 0 0     | [0..cds): calldata    |\n             * 5a       | GAS            | gas addr 0 cds 0 0 0 0 | [0..cds): calldata    |\n             * f4       | DELEGATECALL   | success 0 0            | [0..cds): calldata    |\n             *                                                                            |\n             * ::: copy return data to memory ::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d       | RETURNDATASIZE | rds success 0          | [0..cds): calldata    |\n             * 82       | DUP3           | 0 rds success 0         | [0..cds): calldata   |\n             * 80       | DUP1           | 0 0 rds success 0      | [0..cds): calldata    |\n             * 3e       | RETURNDATACOPY | success 0              | [0..rds): returndata  |\n             * 90       | SWAP1          | 0 success              | [0..rds): returndata  |\n             * 3d       | RETURNDATASIZE | rds 0 success          | [0..rds): returndata  |\n             * 91       | SWAP2          | success 0 rds          | [0..rds): returndata  |\n             *                                                                            |\n             * 60 0x2b  | PUSH1 0x2b     | 0x2b success 0 rds     | [0..rds): returndata  |\n             * 57       | JUMPI          | 0 rds                  | [0..rds): returndata  |\n             *                                                                            |\n             * ::: revert ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * fd       | REVERT         |                        | [0..rds): returndata  |\n             *                                                                            |\n             * ::: return ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 5b       | JUMPDEST       | 0 rds                  | [0..rds): returndata  |\n             * f3       | RETURN         |                        | [0..rds): returndata  |\n             * ---------------------------------------------------------------------------+\n             */\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x43), n))\n            mstore(add(m, 0x23), 0x5af43d82803e903d91602b57fd5bf3)\n            mstore(add(m, 0x14), implementation)\n            mstore(m, add(0xfe61002d3d81600a3d39f3363d3d373d3d3d363d73, shl(136, n)))\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x2d = 0xffd2`.\n            instance := create(value, add(m, add(0x0b, lt(n, 0xffd3))), add(n, 0x37))\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Deploys a deterministic clone of `implementation`\n    /// with immutable arguments encoded in `args` and `salt`.\n    function cloneDeterministic(address implementation, bytes memory args, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = cloneDeterministic(0, implementation, args, salt);\n    }\n\n    /// @dev Deploys a deterministic clone of `implementation`\n    /// with immutable arguments encoded in `args` and `salt`.\n    function cloneDeterministic(\n        uint256 value,\n        address implementation,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x43), n))\n            mstore(add(m, 0x23), 0x5af43d82803e903d91602b57fd5bf3)\n            mstore(add(m, 0x14), implementation)\n            mstore(m, add(0xfe61002d3d81600a3d39f3363d3d373d3d3d363d73, shl(136, n)))\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x2d = 0xffd2`.\n            instance := create2(value, add(m, add(0x0b, lt(n, 0xffd3))), add(n, 0x37), salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Deploys a deterministic clone of `implementation`\n    /// with immutable arguments encoded in `args` and `salt`.\n    /// This method does not revert if the clone has already been deployed.\n    function createDeterministicClone(address implementation, bytes memory args, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicClone(0, implementation, args, salt);\n    }\n\n    /// @dev Deploys a deterministic clone of `implementation`\n    /// with immutable arguments encoded in `args` and `salt`.\n    /// This method does not revert if the clone has already been deployed.\n    function createDeterministicClone(\n        uint256 value,\n        address implementation,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (bool alreadyDeployed, address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x43), n))\n            mstore(add(m, 0x23), 0x5af43d82803e903d91602b57fd5bf3)\n            mstore(add(m, 0x14), implementation)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x2d = 0xffd2`.\n            // forgefmt: disable-next-item\n            mstore(add(m, gt(n, 0xffd2)), add(0xfe61002d3d81600a3d39f3363d3d373d3d3d363d73, shl(136, n)))\n            // Compute and store the bytecode hash.\n            mstore8(0x00, 0xff) // Write the prefix.\n            mstore(0x35, keccak256(add(m, 0x0c), add(n, 0x37)))\n            mstore(0x01, shl(96, address()))\n            mstore(0x15, salt)\n            instance := keccak256(0x00, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, add(m, 0x0c), add(n, 0x37), salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x35, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the initialization code of the clone of `implementation`\n    /// using immutable arguments encoded in `args`.\n    function initCode(address implementation, bytes memory args)\n        internal\n        pure\n        returns (bytes memory c)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x2d = 0xffd2`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffd2))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(c, 0x57), i), mload(add(add(args, 0x20), i)))\n            }\n            mstore(add(c, 0x37), 0x5af43d82803e903d91602b57fd5bf3)\n            mstore(add(c, 0x28), implementation)\n            mstore(add(c, 0x14), add(0x61002d3d81600a3d39f3363d3d373d3d3d363d73, shl(136, n)))\n            mstore(c, add(0x37, n)) // Store the length.\n            mstore(add(c, add(n, 0x57)), 0) // Zeroize the slot after the bytes.\n            mstore(0x40, add(c, add(n, 0x77))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the clone of `implementation`\n    /// using immutable arguments encoded in `args`.\n    function initCodeHash(address implementation, bytes memory args)\n        internal\n        pure\n        returns (bytes32 hash)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x2d = 0xffd2`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffd2))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(m, 0x43), i), mload(add(add(args, 0x20), i)))\n            }\n            mstore(add(m, 0x23), 0x5af43d82803e903d91602b57fd5bf3)\n            mstore(add(m, 0x14), implementation)\n            mstore(m, add(0x61002d3d81600a3d39f3363d3d373d3d3d363d73, shl(136, n)))\n            hash := keccak256(add(m, 0x0c), add(n, 0x37))\n        }\n    }\n\n    /// @dev Returns the address of the clone of\n    /// `implementation` using immutable arguments encoded in `args`, with `salt`, by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddress(\n        address implementation,\n        bytes memory data,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHash(implementation, data);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /// @dev Equivalent to `argsOnClone(instance, 0, 2 ** 256 - 1)`.\n    function argsOnClone(address instance) internal view returns (bytes memory args) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            mstore(args, and(0xffffffffff, sub(extcodesize(instance), 0x2d))) // Store the length.\n            extcodecopy(instance, add(args, 0x20), 0x2d, add(mload(args), 0x20))\n            mstore(0x40, add(mload(args), add(args, 0x40))) // Allocate memory.\n        }\n    }\n\n    /// @dev Equivalent to `argsOnClone(instance, start, 2 ** 256 - 1)`.\n    function argsOnClone(address instance, uint256 start)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            let n := and(0xffffffffff, sub(extcodesize(instance), 0x2d))\n            let l := sub(n, and(0xffffff, mul(lt(start, n), start)))\n            extcodecopy(instance, args, add(start, 0x0d), add(l, 0x40))\n            mstore(args, mul(sub(n, start), lt(start, n))) // Store the length.\n            mstore(0x40, add(args, add(0x40, mload(args)))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns a slice of the immutable arguments on `instance` from `start` to `end`.\n    /// `start` and `end` will be clamped to the range `[0, args.length]`.\n    /// The `instance` MUST be deployed via the clone with immutable args functions.\n    /// Otherwise, the behavior is undefined.\n    /// Out-of-gas reverts if `instance` does not have any code.\n    function argsOnClone(address instance, uint256 start, uint256 end)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            if iszero(lt(end, 0xffff)) { end := 0xffff }\n            let d := mul(sub(end, start), lt(start, end))\n            extcodecopy(instance, args, add(start, 0x0d), add(d, 0x20))\n            if iszero(and(0xff, mload(add(args, d)))) {\n                let n := sub(extcodesize(instance), 0x2d)\n                returndatacopy(returndatasize(), returndatasize(), shr(40, n))\n                d := mul(gt(n, start), sub(d, mul(gt(end, n), sub(end, n))))\n            }\n            mstore(args, d) // Store the length.\n            mstore(add(add(args, 0x20), d), 0) // Zeroize the slot after the bytes.\n            mstore(0x40, add(add(args, 0x40), d)) // Allocate memory.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*              MINIMAL ERC1967 PROXY OPERATIONS              */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // Note: The ERC1967 proxy here is intended to be upgraded with UUPS.\n    // This is NOT the same as ERC1967Factory's transparent proxy, which includes admin logic.\n\n    /// @dev Deploys a minimal ERC1967 proxy with `implementation`.\n    function deployERC1967(address implementation) internal returns (address instance) {\n        instance = deployERC1967(0, implementation);\n    }\n\n    /// @dev Deploys a minimal ERC1967 proxy with `implementation`.\n    /// Deposits `value` ETH during deployment.\n    function deployERC1967(uint256 value, address implementation)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            /**\n             * ---------------------------------------------------------------------------------+\n             * CREATION (34 bytes)                                                              |\n             * ---------------------------------------------------------------------------------|\n             * Opcode     | Mnemonic       | Stack            | Memory                          |\n             * ---------------------------------------------------------------------------------|\n             * 60 runSize | PUSH1 runSize  | r                |                                 |\n             * 3d         | RETURNDATASIZE | 0 r              |                                 |\n             * 81         | DUP2           | r 0 r            |                                 |\n             * 60 offset  | PUSH1 offset   | o r 0 r          |                                 |\n             * 3d         | RETURNDATASIZE | 0 o r 0 r        |                                 |\n             * 39         | CODECOPY       | 0 r              | [0..runSize): runtime code      |\n             * 73 impl    | PUSH20 impl    | impl 0 r         | [0..runSize): runtime code      |\n             * 60 slotPos | PUSH1 slotPos  | slotPos impl 0 r | [0..runSize): runtime code      |\n             * 51         | MLOAD          | slot impl 0 r    | [0..runSize): runtime code      |\n             * 55         | SSTORE         | 0 r              | [0..runSize): runtime code      |\n             * f3         | RETURN         |                  | [0..runSize): runtime code      |\n             * ---------------------------------------------------------------------------------|\n             * RUNTIME (61 bytes)                                                               |\n             * ---------------------------------------------------------------------------------|\n             * Opcode     | Mnemonic       | Stack            | Memory                          |\n             * ---------------------------------------------------------------------------------|\n             *                                                                                  |\n             * ::: copy calldata to memory :::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 36         | CALLDATASIZE   | cds              |                                 |\n             * 3d         | RETURNDATASIZE | 0 cds            |                                 |\n             * 3d         | RETURNDATASIZE | 0 0 cds          |                                 |\n             * 37         | CALLDATACOPY   |                  | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ::: delegatecall to implementation ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | 0                |                                 |\n             * 3d         | RETURNDATASIZE | 0 0              |                                 |\n             * 36         | CALLDATASIZE   | cds 0 0          | [0..calldatasize): calldata     |\n             * 3d         | RETURNDATASIZE | 0 cds 0 0        | [0..calldatasize): calldata     |\n             * 7f slot    | PUSH32 slot    | s 0 cds 0 0      | [0..calldatasize): calldata     |\n             * 54         | SLOAD          | i 0 cds 0 0      | [0..calldatasize): calldata     |\n             * 5a         | GAS            | g i 0 cds 0 0    | [0..calldatasize): calldata     |\n             * f4         | DELEGATECALL   | succ             | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ::: copy returndata to memory :::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | rds succ         | [0..calldatasize): calldata     |\n             * 60 0x00    | PUSH1 0x00     | 0 rds succ       | [0..calldatasize): calldata     |\n             * 80         | DUP1           | 0 0 rds succ     | [0..calldatasize): calldata     |\n             * 3e         | RETURNDATACOPY | succ             | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: branch on delegatecall status :::::::::::::::::::::::::::::::::::::::::::::: |\n             * 60 0x38    | PUSH1 0x38     | dest succ        | [0..returndatasize): returndata |\n             * 57         | JUMPI          |                  | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: delegatecall failed, revert :::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | rds              | [0..returndatasize): returndata |\n             * 60 0x00    | PUSH1 0x00     | 0 rds            | [0..returndatasize): returndata |\n             * fd         | REVERT         |                  | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: delegatecall succeeded, return ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 5b         | JUMPDEST       |                  | [0..returndatasize): returndata |\n             * 3d         | RETURNDATASIZE | rds              | [0..returndatasize): returndata |\n             * 60 0x00    | PUSH1 0x00     | 0 rds            | [0..returndatasize): returndata |\n             * f3         | RETURN         |                  | [0..returndatasize): returndata |\n             * ---------------------------------------------------------------------------------+\n             */\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(0x40, 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(0x20, 0x6009)\n            mstore(0x1e, implementation)\n            mstore(0x0a, 0x603d3d8160223d3973)\n            instance := create(value, 0x21, 0x5f)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Deploys a deterministic minimal ERC1967 proxy with `implementation` and `salt`.\n    function deployDeterministicERC1967(address implementation, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = deployDeterministicERC1967(0, implementation, salt);\n    }\n\n    /// @dev Deploys a deterministic minimal ERC1967 proxy with `implementation` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    function deployDeterministicERC1967(uint256 value, address implementation, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(0x40, 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(0x20, 0x6009)\n            mstore(0x1e, implementation)\n            mstore(0x0a, 0x603d3d8160223d3973)\n            instance := create2(value, 0x21, 0x5f, salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Creates a deterministic minimal ERC1967 proxy with `implementation` and `salt`.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967(address implementation, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicERC1967(0, implementation, salt);\n    }\n\n    /// @dev Creates a deterministic minimal ERC1967 proxy with `implementation` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967(uint256 value, address implementation, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(0x40, 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(0x20, 0x6009)\n            mstore(0x1e, implementation)\n            mstore(0x0a, 0x603d3d8160223d3973)\n            // Compute and store the bytecode hash.\n            mstore(add(m, 0x35), keccak256(0x21, 0x5f))\n            mstore(m, shl(88, address()))\n            mstore8(m, 0xff) // Write the prefix.\n            mstore(add(m, 0x15), salt)\n            instance := keccak256(m, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, 0x21, 0x5f, salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Returns the initialization code of the minimal ERC1967 proxy of `implementation`.\n    function initCodeERC1967(address implementation) internal pure returns (bytes memory c) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            mstore(add(c, 0x60), 0x3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f300)\n            mstore(add(c, 0x40), 0x55f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076cc)\n            mstore(add(c, 0x20), or(shl(24, implementation), 0x600951))\n            mstore(add(c, 0x09), 0x603d3d8160223d3973)\n            mstore(c, 0x5f) // Store the length.\n            mstore(0x40, add(c, 0x80)) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the minimal ERC1967 proxy of `implementation`.\n    function initCodeHashERC1967(address implementation) internal pure returns (bytes32 hash) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(0x40, 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(0x20, 0x6009)\n            mstore(0x1e, implementation)\n            mstore(0x0a, 0x603d3d8160223d3973)\n            hash := keccak256(0x21, 0x5f)\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Returns the address of the ERC1967 proxy of `implementation`, with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddressERC1967(\n        address implementation,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHashERC1967(implementation);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*    MINIMAL ERC1967 PROXY WITH IMMUTABLE ARGS OPERATIONS    */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Deploys a minimal ERC1967 proxy with `implementation` and `args`.\n    function deployERC1967(address implementation, bytes memory args)\n        internal\n        returns (address instance)\n    {\n        instance = deployERC1967(0, implementation, args);\n    }\n\n    /// @dev Deploys a minimal ERC1967 proxy with `implementation` and `args`.\n    /// Deposits `value` ETH during deployment.\n    function deployERC1967(uint256 value, address implementation, bytes memory args)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x60), n))\n            mstore(add(m, 0x40), 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(add(m, 0x20), 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(0x16, 0x6009)\n            mstore(0x14, implementation)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x3d = 0xffc2`.\n            mstore(gt(n, 0xffc2), add(0xfe61003d3d8160233d3973, shl(56, n)))\n            mstore(m, mload(0x16))\n            instance := create(value, m, add(n, 0x60))\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Deploys a deterministic minimal ERC1967 proxy with `implementation`, `args` and `salt`.\n    function deployDeterministicERC1967(address implementation, bytes memory args, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = deployDeterministicERC1967(0, implementation, args, salt);\n    }\n\n    /// @dev Deploys a deterministic minimal ERC1967 proxy with `implementation`, `args` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    function deployDeterministicERC1967(\n        uint256 value,\n        address implementation,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x60), n))\n            mstore(add(m, 0x40), 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(add(m, 0x20), 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(0x16, 0x6009)\n            mstore(0x14, implementation)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x3d = 0xffc2`.\n            mstore(gt(n, 0xffc2), add(0xfe61003d3d8160233d3973, shl(56, n)))\n            mstore(m, mload(0x16))\n            instance := create2(value, m, add(n, 0x60), salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Creates a deterministic minimal ERC1967 proxy with `implementation`, `args` and `salt`.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967(address implementation, bytes memory args, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicERC1967(0, implementation, args, salt);\n    }\n\n    /// @dev Creates a deterministic minimal ERC1967 proxy with `implementation`, `args` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967(\n        uint256 value,\n        address implementation,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (bool alreadyDeployed, address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x60), n))\n            mstore(add(m, 0x40), 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(add(m, 0x20), 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(0x16, 0x6009)\n            mstore(0x14, implementation)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x3d = 0xffc2`.\n            mstore(gt(n, 0xffc2), add(0xfe61003d3d8160233d3973, shl(56, n)))\n            mstore(m, mload(0x16))\n            // Compute and store the bytecode hash.\n            mstore8(0x00, 0xff) // Write the prefix.\n            mstore(0x35, keccak256(m, add(n, 0x60)))\n            mstore(0x01, shl(96, address()))\n            mstore(0x15, salt)\n            instance := keccak256(0x00, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, m, add(n, 0x60), salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x35, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the initialization code of the minimal ERC1967 proxy of `implementation` and `args`.\n    function initCodeERC1967(address implementation, bytes memory args)\n        internal\n        pure\n        returns (bytes memory c)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x3d = 0xffc2`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffc2))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(c, 0x80), i), mload(add(add(args, 0x20), i)))\n            }\n            mstore(add(c, 0x60), 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(add(c, 0x40), 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(add(c, 0x20), 0x6009)\n            mstore(add(c, 0x1e), implementation)\n            mstore(add(c, 0x0a), add(0x61003d3d8160233d3973, shl(56, n)))\n            mstore(c, add(n, 0x60)) // Store the length.\n            mstore(add(c, add(n, 0x80)), 0) // Zeroize the slot after the bytes.\n            mstore(0x40, add(c, add(n, 0xa0))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the minimal ERC1967 proxy of `implementation` and `args`.\n    function initCodeHashERC1967(address implementation, bytes memory args)\n        internal\n        pure\n        returns (bytes32 hash)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x3d = 0xffc2`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffc2))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(m, 0x60), i), mload(add(add(args, 0x20), i)))\n            }\n            mstore(add(m, 0x40), 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(add(m, 0x20), 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(0x16, 0x6009)\n            mstore(0x14, implementation)\n            mstore(0x00, add(0x61003d3d8160233d3973, shl(56, n)))\n            mstore(m, mload(0x16))\n            hash := keccak256(m, add(n, 0x60))\n        }\n    }\n\n    /// @dev Returns the address of the ERC1967 proxy of `implementation`, `args`, with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddressERC1967(\n        address implementation,\n        bytes memory args,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHashERC1967(implementation, args);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /// @dev Equivalent to `argsOnERC1967(instance, start, 2 ** 256 - 1)`.\n    function argsOnERC1967(address instance) internal view returns (bytes memory args) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            mstore(args, and(0xffffffffff, sub(extcodesize(instance), 0x3d))) // Store the length.\n            extcodecopy(instance, add(args, 0x20), 0x3d, add(mload(args), 0x20))\n            mstore(0x40, add(mload(args), add(args, 0x40))) // Allocate memory.\n        }\n    }\n\n    /// @dev Equivalent to `argsOnERC1967(instance, start, 2 ** 256 - 1)`.\n    function argsOnERC1967(address instance, uint256 start)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            let n := and(0xffffffffff, sub(extcodesize(instance), 0x3d))\n            let l := sub(n, and(0xffffff, mul(lt(start, n), start)))\n            extcodecopy(instance, args, add(start, 0x1d), add(l, 0x40))\n            mstore(args, mul(sub(n, start), lt(start, n))) // Store the length.\n            mstore(0x40, add(args, add(0x40, mload(args)))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns a slice of the immutable arguments on `instance` from `start` to `end`.\n    /// `start` and `end` will be clamped to the range `[0, args.length]`.\n    /// The `instance` MUST be deployed via the ERC1967 with immutable args functions.\n    /// Otherwise, the behavior is undefined.\n    /// Out-of-gas reverts if `instance` does not have any code.\n    function argsOnERC1967(address instance, uint256 start, uint256 end)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            if iszero(lt(end, 0xffff)) { end := 0xffff }\n            let d := mul(sub(end, start), lt(start, end))\n            extcodecopy(instance, args, add(start, 0x1d), add(d, 0x20))\n            if iszero(and(0xff, mload(add(args, d)))) {\n                let n := sub(extcodesize(instance), 0x3d)\n                returndatacopy(returndatasize(), returndatasize(), shr(40, n))\n                d := mul(gt(n, start), sub(d, mul(gt(end, n), sub(end, n))))\n            }\n            mstore(args, d) // Store the length.\n            mstore(add(add(args, 0x20), d), 0) // Zeroize the slot after the bytes.\n            mstore(0x40, add(add(args, 0x40), d)) // Allocate memory.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                 ERC1967I PROXY OPERATIONS                  */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // Note: This proxy has a special code path that activates if `calldatasize() == 1`.\n    // This code path skips the delegatecall and directly returns the `implementation` address.\n    // The returned implementation is guaranteed to be valid if the keccak256 of the\n    // proxy's code is equal to `ERC1967I_CODE_HASH`.\n\n    /// @dev Deploys a ERC1967I proxy with `implementation`.\n    function deployERC1967I(address implementation) internal returns (address instance) {\n        instance = deployERC1967I(0, implementation);\n    }\n\n    /// @dev Deploys a ERC1967I proxy with `implementation`.\n    /// Deposits `value` ETH during deployment.\n    function deployERC1967I(uint256 value, address implementation)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            /**\n             * ---------------------------------------------------------------------------------+\n             * CREATION (34 bytes)                                                              |\n             * ---------------------------------------------------------------------------------|\n             * Opcode     | Mnemonic       | Stack            | Memory                          |\n             * ---------------------------------------------------------------------------------|\n             * 60 runSize | PUSH1 runSize  | r                |                                 |\n             * 3d         | RETURNDATASIZE | 0 r              |                                 |\n             * 81         | DUP2           | r 0 r            |                                 |\n             * 60 offset  | PUSH1 offset   | o r 0 r          |                                 |\n             * 3d         | RETURNDATASIZE | 0 o r 0 r        |                                 |\n             * 39         | CODECOPY       | 0 r              | [0..runSize): runtime code      |\n             * 73 impl    | PUSH20 impl    | impl 0 r         | [0..runSize): runtime code      |\n             * 60 slotPos | PUSH1 slotPos  | slotPos impl 0 r | [0..runSize): runtime code      |\n             * 51         | MLOAD          | slot impl 0 r    | [0..runSize): runtime code      |\n             * 55         | SSTORE         | 0 r              | [0..runSize): runtime code      |\n             * f3         | RETURN         |                  | [0..runSize): runtime code      |\n             * ---------------------------------------------------------------------------------|\n             * RUNTIME (82 bytes)                                                               |\n             * ---------------------------------------------------------------------------------|\n             * Opcode     | Mnemonic       | Stack            | Memory                          |\n             * ---------------------------------------------------------------------------------|\n             *                                                                                  |\n             * ::: check calldatasize ::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 36         | CALLDATASIZE   | cds              |                                 |\n             * 58         | PC             | 1 cds            |                                 |\n             * 14         | EQ             | eqs              |                                 |\n             * 60 0x43    | PUSH1 0x43     | dest eqs         |                                 |\n             * 57         | JUMPI          |                  |                                 |\n             *                                                                                  |\n             * ::: copy calldata to memory :::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 36         | CALLDATASIZE   | cds              |                                 |\n             * 3d         | RETURNDATASIZE | 0 cds            |                                 |\n             * 3d         | RETURNDATASIZE | 0 0 cds          |                                 |\n             * 37         | CALLDATACOPY   |                  | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ::: delegatecall to implementation ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | 0                |                                 |\n             * 3d         | RETURNDATASIZE | 0 0              |                                 |\n             * 36         | CALLDATASIZE   | cds 0 0          | [0..calldatasize): calldata     |\n             * 3d         | RETURNDATASIZE | 0 cds 0 0        | [0..calldatasize): calldata     |\n             * 7f slot    | PUSH32 slot    | s 0 cds 0 0      | [0..calldatasize): calldata     |\n             * 54         | SLOAD          | i 0 cds 0 0      | [0..calldatasize): calldata     |\n             * 5a         | GAS            | g i 0 cds 0 0    | [0..calldatasize): calldata     |\n             * f4         | DELEGATECALL   | succ             | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ::: copy returndata to memory :::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | rds succ         | [0..calldatasize): calldata     |\n             * 60 0x00    | PUSH1 0x00     | 0 rds succ       | [0..calldatasize): calldata     |\n             * 80         | DUP1           | 0 0 rds succ     | [0..calldatasize): calldata     |\n             * 3e         | RETURNDATACOPY | succ             | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: branch on delegatecall status :::::::::::::::::::::::::::::::::::::::::::::: |\n             * 60 0x3E    | PUSH1 0x3E     | dest succ        | [0..returndatasize): returndata |\n             * 57         | JUMPI          |                  | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: delegatecall failed, revert :::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | rds              | [0..returndatasize): returndata |\n             * 60 0x00    | PUSH1 0x00     | 0 rds            | [0..returndatasize): returndata |\n             * fd         | REVERT         |                  | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: delegatecall succeeded, return ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 5b         | JUMPDEST       |                  | [0..returndatasize): returndata |\n             * 3d         | RETURNDATASIZE | rds              | [0..returndatasize): returndata |\n             * 60 0x00    | PUSH1 0x00     | 0 rds            | [0..returndatasize): returndata |\n             * f3         | RETURN         |                  | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: implementation , return :::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 5b         | JUMPDEST       |                  |                                 |\n             * 60 0x20    | PUSH1 0x20     | 32               |                                 |\n             * 60 0x0F    | PUSH1 0x0F     | o 32             |                                 |\n             * 3d         | RETURNDATASIZE | 0 o 32           |                                 |\n             * 39         | CODECOPY       |                  | [0..32): implementation slot    |\n             * 3d         | RETURNDATASIZE | 0                | [0..32): implementation slot    |\n             * 51         | MLOAD          | slot             | [0..32): implementation slot    |\n             * 54         | SLOAD          | impl             | [0..32): implementation slot    |\n             * 3d         | RETURNDATASIZE | 0 impl           | [0..32): implementation slot    |\n             * 52         | MSTORE         |                  | [0..32): implementation address |\n             * 59         | MSIZE          | 32               | [0..32): implementation address |\n             * 3d         | RETURNDATASIZE | 0 32             | [0..32): implementation address |\n             * f3         | RETURN         |                  | [0..32): implementation address |\n             * ---------------------------------------------------------------------------------+\n             */\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(0x40, 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(0x20, 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, implementation))))\n            instance := create(value, 0x0c, 0x74)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Deploys a deterministic ERC1967I proxy with `implementation` and `salt`.\n    function deployDeterministicERC1967I(address implementation, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = deployDeterministicERC1967I(0, implementation, salt);\n    }\n\n    /// @dev Deploys a deterministic ERC1967I proxy with `implementation` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    function deployDeterministicERC1967I(uint256 value, address implementation, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(0x40, 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(0x20, 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, implementation))))\n            instance := create2(value, 0x0c, 0x74, salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Creates a deterministic ERC1967I proxy with `implementation` and `salt`.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967I(address implementation, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicERC1967I(0, implementation, salt);\n    }\n\n    /// @dev Creates a deterministic ERC1967I proxy with `implementation` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967I(uint256 value, address implementation, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(0x40, 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(0x20, 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, implementation))))\n            // Compute and store the bytecode hash.\n            mstore(add(m, 0x35), keccak256(0x0c, 0x74))\n            mstore(m, shl(88, address()))\n            mstore8(m, 0xff) // Write the prefix.\n            mstore(add(m, 0x15), salt)\n            instance := keccak256(m, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, 0x0c, 0x74, salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Returns the initialization code of the ERC1967I proxy of `implementation`.\n    function initCodeERC1967I(address implementation) internal pure returns (bytes memory c) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            mstore(add(c, 0x74), 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(add(c, 0x54), 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(add(c, 0x34), 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(add(c, 0x1d), implementation)\n            mstore(add(c, 0x09), 0x60523d8160223d3973)\n            mstore(add(c, 0x94), 0)\n            mstore(c, 0x74) // Store the length.\n            mstore(0x40, add(c, 0xa0)) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the ERC1967I proxy of `implementation`.\n    function initCodeHashERC1967I(address implementation) internal pure returns (bytes32 hash) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(0x40, 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(0x20, 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, implementation))))\n            hash := keccak256(0x0c, 0x74)\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Returns the address of the ERC1967I proxy of `implementation`, with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddressERC1967I(\n        address implementation,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHashERC1967I(implementation);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*       ERC1967I PROXY WITH IMMUTABLE ARGS OPERATIONS        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Deploys a minimal ERC1967I proxy with `implementation` and `args`.\n    function deployERC1967I(address implementation, bytes memory args) internal returns (address) {\n        return deployERC1967I(0, implementation, args);\n    }\n\n    /// @dev Deploys a minimal ERC1967I proxy with `implementation` and `args`.\n    /// Deposits `value` ETH during deployment.\n    function deployERC1967I(uint256 value, address implementation, bytes memory args)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x8b), n))\n\n            mstore(add(m, 0x6b), 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(add(m, 0x4b), 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(add(m, 0x2b), 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(add(m, 0x14), implementation)\n            mstore(m, add(0xfe6100523d8160233d3973, shl(56, n)))\n\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            instance := create(value, add(m, add(0x15, lt(n, 0xffae))), add(0x75, n))\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Deploys a deterministic ERC1967I proxy with `implementation`, `args`, and `salt`.\n    function deployDeterministicERC1967I(address implementation, bytes memory args, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = deployDeterministicERC1967I(0, implementation, args, salt);\n    }\n\n    /// @dev Deploys a deterministic ERC1967I proxy with `implementation`, `args`, and `salt`.\n    /// Deposits `value` ETH during deployment.\n    function deployDeterministicERC1967I(\n        uint256 value,\n        address implementation,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x8b), n))\n\n            mstore(add(m, 0x6b), 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(add(m, 0x4b), 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(add(m, 0x2b), 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(add(m, 0x14), implementation)\n            mstore(m, add(0xfe6100523d8160233d3973, shl(56, n)))\n\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            instance := create2(value, add(m, add(0x15, lt(n, 0xffae))), add(0x75, n), salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Creates a deterministic ERC1967I proxy with `implementation`, `args` and `salt`.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967I(address implementation, bytes memory args, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicERC1967I(0, implementation, args, salt);\n    }\n\n    /// @dev Creates a deterministic ERC1967I proxy with `implementation`, `args` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967I(\n        uint256 value,\n        address implementation,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (bool alreadyDeployed, address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x75), n))\n            mstore(add(m, 0x55), 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(add(m, 0x35), 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(add(m, 0x15), 0x5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(0x16, 0x600f)\n            mstore(0x14, implementation)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            mstore(gt(n, 0xffad), add(0xfe6100523d8160233d3973, shl(56, n)))\n            mstore(m, mload(0x16))\n            // Compute and store the bytecode hash.\n            mstore8(0x00, 0xff) // Write the prefix.\n            mstore(0x35, keccak256(m, add(n, 0x75)))\n            mstore(0x01, shl(96, address()))\n            mstore(0x15, salt)\n            instance := keccak256(0x00, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, m, add(0x75, n), salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x35, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the initialization code of the ERC1967I proxy of `implementation` and `args`.\n    function initCodeERC1967I(address implementation, bytes memory args)\n        internal\n        pure\n        returns (bytes memory c)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffad))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(c, 0x95), i), mload(add(add(args, 0x20), i)))\n            }\n\n            mstore(add(c, 0x75), 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(add(c, 0x55), 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(add(c, 0x35), 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(add(c, 0x1e), implementation)\n            mstore(add(c, 0x0a), add(0x6100523d8160233d3973, shl(56, n)))\n            mstore(add(c, add(n, 0x95)), 0)\n            mstore(c, add(0x75, n)) // Store the length.\n            mstore(0x40, add(c, add(n, 0xb5))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the ERC1967I proxy of `implementation` and `args.\n    function initCodeHashERC1967I(address implementation, bytes memory args)\n        internal\n        pure\n        returns (bytes32 hash)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffad))\n\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(m, 0x75), i), mload(add(add(args, 0x20), i)))\n            }\n\n            mstore(add(m, 0x55), 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(add(m, 0x35), 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(add(m, 0x15), 0x5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(0x16, 0x600f)\n            mstore(0x14, implementation)\n            mstore(0x00, add(0x6100523d8160233d3973, shl(56, n)))\n            mstore(m, mload(0x16))\n            hash := keccak256(m, add(0x75, n))\n        }\n    }\n\n    /// @dev Returns the address of the ERC1967I proxy of `implementation`, `args` with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddressERC1967I(\n        address implementation,\n        bytes memory args,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHashERC1967I(implementation, args);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /// @dev Equivalent to `argsOnERC1967I(instance, start, 2 ** 256 - 1)`.\n    function argsOnERC1967I(address instance) internal view returns (bytes memory args) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            mstore(args, and(0xffffffffff, sub(extcodesize(instance), 0x52))) // Store the length.\n            extcodecopy(instance, add(args, 0x20), 0x52, add(mload(args), 0x20))\n            mstore(0x40, add(mload(args), add(args, 0x40))) // Allocate memory.\n        }\n    }\n\n    /// @dev Equivalent to `argsOnERC1967I(instance, start, 2 ** 256 - 1)`.\n    function argsOnERC1967I(address instance, uint256 start)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            let n := and(0xffffffffff, sub(extcodesize(instance), 0x52))\n            let l := sub(n, and(0xffffff, mul(lt(start, n), start)))\n            extcodecopy(instance, args, add(start, 0x32), add(l, 0x40))\n            mstore(args, mul(sub(n, start), lt(start, n))) // Store the length.\n            mstore(0x40, add(mload(args), add(args, 0x40))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns a slice of the immutable arguments on `instance` from `start` to `end`.\n    /// `start` and `end` will be clamped to the range `[0, args.length]`.\n    /// The `instance` MUST be deployed via the ERC1967 with immutable args functions.\n    /// Otherwise, the behavior is undefined.\n    /// Out-of-gas reverts if `instance` does not have any code.\n    function argsOnERC1967I(address instance, uint256 start, uint256 end)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            if iszero(lt(end, 0xffff)) { end := 0xffff }\n            let d := mul(sub(end, start), lt(start, end))\n            extcodecopy(instance, args, add(start, 0x32), add(d, 0x20))\n            if iszero(and(0xff, mload(add(args, d)))) {\n                let n := sub(extcodesize(instance), 0x52)\n                returndatacopy(returndatasize(), returndatasize(), shr(40, n))\n                d := mul(gt(n, start), sub(d, mul(gt(end, n), sub(end, n))))\n            }\n            mstore(args, d) // Store the length.\n            mstore(add(add(args, 0x20), d), 0) // Zeroize the slot after the bytes.\n            mstore(0x40, add(add(args, 0x40), d)) // Allocate memory.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                ERC1967 BOOTSTRAP OPERATIONS                */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // A bootstrap is a minimal UUPS implementation that allows an ERC1967 proxy\n    // pointing to it to be upgraded. The ERC1967 proxy can then be deployed to a\n    // deterministic address independent of the implementation:\n    // ```\n    //     address bootstrap = LibClone.erc1967Bootstrap();\n    //     address instance = LibClone.deployDeterministicERC1967(0, bootstrap, salt);\n    //     LibClone.bootstrapERC1967(bootstrap, implementation);\n    // ```\n\n    /// @dev Deploys the ERC1967 bootstrap if it has not been deployed.\n    function erc1967Bootstrap() internal returns (address) {\n        return erc1967Bootstrap(address(this));\n    }\n\n    /// @dev Deploys the ERC1967 bootstrap if it has not been deployed.\n    function erc1967Bootstrap(address authorizedUpgrader) internal returns (address bootstrap) {\n        bytes memory c = initCodeERC1967Bootstrap(authorizedUpgrader);\n        bootstrap = predictDeterministicAddress(keccak256(c), bytes32(0), address(this));\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(extcodesize(bootstrap)) {\n                if iszero(create2(0, add(c, 0x20), mload(c), 0)) {\n                    mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n        }\n    }\n\n    /// @dev Replaces the implementation at `instance`.\n    function bootstrapERC1967(address instance, address implementation) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, implementation)\n            if iszero(call(gas(), instance, 0, 0x0c, 0x14, codesize(), 0x00)) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Replaces the implementation at `instance`, and then call it with `data`.\n    function bootstrapERC1967AndCall(address instance, address implementation, bytes memory data)\n        internal\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let n := mload(data)\n            mstore(data, implementation)\n            if iszero(call(gas(), instance, 0, add(data, 0x0c), add(n, 0x14), codesize(), 0x00)) {\n                if iszero(returndatasize()) {\n                    mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                returndatacopy(mload(0x40), 0x00, returndatasize())\n                revert(mload(0x40), returndatasize())\n            }\n            mstore(data, n) // Restore the length of `data`.\n        }\n    }\n\n    /// @dev Returns the implementation address of the ERC1967 bootstrap for this contract.\n    function predictDeterministicAddressERC1967Bootstrap() internal view returns (address) {\n        return predictDeterministicAddressERC1967Bootstrap(address(this), address(this));\n    }\n\n    /// @dev Returns the implementation address of the ERC1967 bootstrap for this contract.\n    function predictDeterministicAddressERC1967Bootstrap(\n        address authorizedUpgrader,\n        address deployer\n    ) internal pure returns (address) {\n        bytes32 hash = initCodeHashERC1967Bootstrap(authorizedUpgrader);\n        return predictDeterministicAddress(hash, bytes32(0), deployer);\n    }\n\n    /// @dev Returns the initialization code of the ERC1967 bootstrap.\n    function initCodeERC1967Bootstrap(address authorizedUpgrader)\n        internal\n        pure\n        returns (bytes memory c)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            mstore(add(c, 0x80), 0x3d3560601c5af46047573d6000383e3d38fd0000000000000000000000000000)\n            mstore(add(c, 0x60), 0xa920a3ca505d382bbc55601436116049575b005b363d3d373d3d601436036014)\n            mstore(add(c, 0x40), 0x0338573d3560601c7f360894a13ba1a3210667c828492db98dca3e2076cc3735)\n            mstore(add(c, 0x20), authorizedUpgrader)\n            mstore(add(c, 0x0c), 0x606880600a3d393df3fe3373)\n            mstore(c, 0x72)\n            mstore(0x40, add(c, 0xa0))\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the ERC1967 bootstrap.\n    function initCodeHashERC1967Bootstrap(address authorizedUpgrader)\n        internal\n        pure\n        returns (bytes32)\n    {\n        return keccak256(initCodeERC1967Bootstrap(authorizedUpgrader));\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*          MINIMAL ERC1967 BEACON PROXY OPERATIONS           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // Note: If you use this proxy, you MUST make sure that the beacon is a\n    // valid ERC1967 beacon. This means that the beacon must always return a valid\n    // address upon a staticcall to `implementation()`, given sufficient gas.\n    // For performance, the deployment operations and the proxy assumes that the\n    // beacon is always valid and will NOT validate it.\n\n    /// @dev Deploys a minimal ERC1967 beacon proxy.\n    function deployERC1967BeaconProxy(address beacon) internal returns (address instance) {\n        instance = deployERC1967BeaconProxy(0, beacon);\n    }\n\n    /// @dev Deploys a minimal ERC1967 beacon proxy.\n    /// Deposits `value` ETH during deployment.\n    function deployERC1967BeaconProxy(uint256 value, address beacon)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            /**\n             * ---------------------------------------------------------------------------------+\n             * CREATION (34 bytes)                                                              |\n             * ---------------------------------------------------------------------------------|\n             * Opcode     | Mnemonic       | Stack            | Memory                          |\n             * ---------------------------------------------------------------------------------|\n             * 60 runSize | PUSH1 runSize  | r                |                                 |\n             * 3d         | RETURNDATASIZE | 0 r              |                                 |\n             * 81         | DUP2           | r 0 r            |                                 |\n             * 60 offset  | PUSH1 offset   | o r 0 r          |                                 |\n             * 3d         | RETURNDATASIZE | 0 o r 0 r        |                                 |\n             * 39         | CODECOPY       | 0 r              | [0..runSize): runtime code      |\n             * 73 beac    | PUSH20 beac    | beac 0 r         | [0..runSize): runtime code      |\n             * 60 slotPos | PUSH1 slotPos  | slotPos beac 0 r | [0..runSize): runtime code      |\n             * 51         | MLOAD          | slot beac 0 r    | [0..runSize): runtime code      |\n             * 55         | SSTORE         | 0 r              | [0..runSize): runtime code      |\n             * f3         | RETURN         |                  | [0..runSize): runtime code      |\n             * ---------------------------------------------------------------------------------|\n             * RUNTIME (82 bytes)                                                               |\n             * ---------------------------------------------------------------------------------|\n             * Opcode     | Mnemonic       | Stack            | Memory                          |\n             * ---------------------------------------------------------------------------------|\n             *                                                                                  |\n             * ::: copy calldata to memory :::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 36         | CALLDATASIZE   | cds              |                                 |\n             * 3d         | RETURNDATASIZE | 0 cds            |                                 |\n             * 3d         | RETURNDATASIZE | 0 0 cds          |                                 |\n             * 37         | CALLDATACOPY   |                  | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ::: delegatecall to implementation ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | 0                |                                 |\n             * 3d         | RETURNDATASIZE | 0 0              |                                 |\n             * 36         | CALLDATASIZE   | cds 0 0          | [0..calldatasize): calldata     |\n             * 3d         | RETURNDATASIZE | 0 cds 0 0        | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ~~~~~~~ beacon staticcall sub procedure ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |\n             * 60 0x20       | PUSH1 0x20       | 32                          |                 |\n             * 36            | CALLDATASIZE     | cds 32                      |                 |\n             * 60 0x04       | PUSH1 0x04       | 4 cds 32                    |                 |\n             * 36            | CALLDATASIZE     | cds 4 cds 32                |                 |\n             * 63 0x5c60da1b | PUSH4 0x5c60da1b | 0x5c60da1b cds 4 cds 32     |                 |\n             * 60 0xe0       | PUSH1 0xe0       | 224 0x5c60da1b cds 4 cds 32 |                 |\n             * 1b            | SHL              | sel cds 4 cds 32            |                 |\n             * 36            | CALLDATASIZE     | cds sel cds 4 cds 32        |                 |\n             * 52            | MSTORE           | cds 4 cds 32                | sel             |\n             * 7f slot       | PUSH32 slot      | s cds 4 cds 32              | sel             |\n             * 54            | SLOAD            | beac cds 4 cds 32           | sel             |\n             * 5a            | GAS              | g beac cds 4 cds 32         | sel             |\n             * fa            | STATICCALL       | succ                        | impl            |\n             * 50            | POP              |                             | impl            |\n             * 36            | CALLDATASIZE     | cds                         | impl            |\n             * 51            | MLOAD            | impl                        | impl            |\n             * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |\n             * 5a         | GAS            | g impl 0 cds 0 0 | [0..calldatasize): calldata     |\n             * f4         | DELEGATECALL   | succ             | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ::: copy returndata to memory :::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | rds succ         | [0..calldatasize): calldata     |\n             * 60 0x00    | PUSH1 0x00     | 0 rds succ       | [0..calldatasize): calldata     |\n             * 80         | DUP1           | 0 0 rds succ     | [0..calldatasize): calldata     |\n             * 3e         | RETURNDATACOPY | succ             | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: branch on delegatecall status :::::::::::::::::::::::::::::::::::::::::::::: |\n             * 60 0x4d    | PUSH1 0x4d     | dest succ        | [0..returndatasize): returndata |\n             * 57         | JUMPI          |                  | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: delegatecall failed, revert :::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | rds              | [0..returndatasize): returndata |\n             * 60 0x00    | PUSH1 0x00     | 0 rds            | [0..returndatasize): returndata |\n             * fd         | REVERT         |                  | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: delegatecall succeeded, return ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 5b         | JUMPDEST       |                  | [0..returndatasize): returndata |\n             * 3d         | RETURNDATASIZE | rds              | [0..returndatasize): returndata |\n             * 60 0x00    | PUSH1 0x00     | 0 rds            | [0..returndatasize): returndata |\n             * f3         | RETURN         |                  | [0..returndatasize): returndata |\n             * ---------------------------------------------------------------------------------+\n             */\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(0x40, 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(0x20, 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, beacon))))\n            instance := create(value, 0x0c, 0x74)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Deploys a deterministic minimal ERC1967 beacon proxy with `salt`.\n    function deployDeterministicERC1967BeaconProxy(address beacon, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = deployDeterministicERC1967BeaconProxy(0, beacon, salt);\n    }\n\n    /// @dev Deploys a deterministic minimal ERC1967 beacon proxy with `salt`.\n    /// Deposits `value` ETH during deployment.\n    function deployDeterministicERC1967BeaconProxy(uint256 value, address beacon, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(0x40, 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(0x20, 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, beacon))))\n            instance := create2(value, 0x0c, 0x74, salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Creates a deterministic minimal ERC1967 beacon proxy with `salt`.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967BeaconProxy(address beacon, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicERC1967BeaconProxy(0, beacon, salt);\n    }\n\n    /// @dev Creates a deterministic minimal ERC1967 beacon proxy with `salt`.\n    /// Deposits `value` ETH during deployment.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967BeaconProxy(uint256 value, address beacon, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(0x40, 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(0x20, 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, beacon))))\n            // Compute and store the bytecode hash.\n            mstore(add(m, 0x35), keccak256(0x0c, 0x74))\n            mstore(m, shl(88, address()))\n            mstore8(m, 0xff) // Write the prefix.\n            mstore(add(m, 0x15), salt)\n            instance := keccak256(m, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, 0x0c, 0x74, salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Returns the initialization code of the minimal ERC1967 beacon proxy.\n    function initCodeERC1967BeaconProxy(address beacon) internal pure returns (bytes memory c) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            mstore(add(c, 0x74), 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(add(c, 0x54), 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(add(c, 0x34), 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(add(c, 0x1d), beacon)\n            mstore(add(c, 0x09), 0x60523d8160223d3973)\n            mstore(add(c, 0x94), 0)\n            mstore(c, 0x74) // Store the length.\n            mstore(0x40, add(c, 0xa0)) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the minimal ERC1967 beacon proxy.\n    function initCodeHashERC1967BeaconProxy(address beacon) internal pure returns (bytes32 hash) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(0x40, 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(0x20, 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, beacon))))\n            hash := keccak256(0x0c, 0x74)\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Returns the address of the ERC1967 beacon proxy, with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddressERC1967BeaconProxy(\n        address beacon,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHashERC1967BeaconProxy(beacon);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*    ERC1967 BEACON PROXY WITH IMMUTABLE ARGS OPERATIONS     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Deploys a minimal ERC1967 beacon proxy with `args`.\n    function deployERC1967BeaconProxy(address beacon, bytes memory args)\n        internal\n        returns (address instance)\n    {\n        instance = deployERC1967BeaconProxy(0, beacon, args);\n    }\n\n    /// @dev Deploys a minimal ERC1967 beacon proxy with `args`.\n    /// Deposits `value` ETH during deployment.\n    function deployERC1967BeaconProxy(uint256 value, address beacon, bytes memory args)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x8b), n))\n            mstore(add(m, 0x6b), 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(add(m, 0x4b), 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(add(m, 0x2b), 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(add(m, 0x14), beacon)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            mstore(add(m, gt(n, 0xffad)), add(0xfe6100523d8160233d3973, shl(56, n)))\n            instance := create(value, add(m, 0x16), add(n, 0x75))\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Deploys a deterministic minimal ERC1967 beacon proxy with `args` and `salt`.\n    function deployDeterministicERC1967BeaconProxy(address beacon, bytes memory args, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = deployDeterministicERC1967BeaconProxy(0, beacon, args, salt);\n    }\n\n    /// @dev Deploys a deterministic minimal ERC1967 beacon proxy with `args` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    function deployDeterministicERC1967BeaconProxy(\n        uint256 value,\n        address beacon,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x8b), n))\n            mstore(add(m, 0x6b), 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(add(m, 0x4b), 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(add(m, 0x2b), 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(add(m, 0x14), beacon)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            mstore(add(m, gt(n, 0xffad)), add(0xfe6100523d8160233d3973, shl(56, n)))\n            instance := create2(value, add(m, 0x16), add(n, 0x75), salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Creates a deterministic minimal ERC1967 beacon proxy with `args` and `salt`.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967BeaconProxy(address beacon, bytes memory args, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicERC1967BeaconProxy(0, beacon, args, salt);\n    }\n\n    /// @dev Creates a deterministic minimal ERC1967 beacon proxy with `args` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967BeaconProxy(\n        uint256 value,\n        address beacon,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (bool alreadyDeployed, address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x8b), n))\n            mstore(add(m, 0x6b), 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(add(m, 0x4b), 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(add(m, 0x2b), 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(add(m, 0x14), beacon)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            mstore(add(m, gt(n, 0xffad)), add(0xfe6100523d8160233d3973, shl(56, n)))\n            // Compute and store the bytecode hash.\n            mstore8(0x00, 0xff) // Write the prefix.\n            mstore(0x35, keccak256(add(m, 0x16), add(n, 0x75)))\n            mstore(0x01, shl(96, address()))\n            mstore(0x15, salt)\n            instance := keccak256(0x00, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, add(m, 0x16), add(n, 0x75), salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x35, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the initialization code of the minimal ERC1967 beacon proxy.\n    function initCodeERC1967BeaconProxy(address beacon, bytes memory args)\n        internal\n        pure\n        returns (bytes memory c)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffad))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(c, 0x95), i), mload(add(add(args, 0x20), i)))\n            }\n            mstore(add(c, 0x75), 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(add(c, 0x55), 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(add(c, 0x35), 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(add(c, 0x1e), beacon)\n            mstore(add(c, 0x0a), add(0x6100523d8160233d3973, shl(56, n)))\n            mstore(c, add(n, 0x75)) // Store the length.\n            mstore(add(c, add(n, 0x95)), 0) // Zeroize the slot after the bytes.\n            mstore(0x40, add(c, add(n, 0xb5))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the minimal ERC1967 beacon proxy with `args`.\n    function initCodeHashERC1967BeaconProxy(address beacon, bytes memory args)\n        internal\n        pure\n        returns (bytes32 hash)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffad))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(m, 0x8b), i), mload(add(add(args, 0x20), i)))\n            }\n            mstore(add(m, 0x6b), 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(add(m, 0x4b), 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(add(m, 0x2b), 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(add(m, 0x14), beacon)\n            mstore(m, add(0x6100523d8160233d3973, shl(56, n)))\n            hash := keccak256(add(m, 0x16), add(n, 0x75))\n        }\n    }\n\n    /// @dev Returns the address of the ERC1967 beacon proxy with `args`, with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddressERC1967BeaconProxy(\n        address beacon,\n        bytes memory args,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHashERC1967BeaconProxy(beacon, args);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /// @dev Equivalent to `argsOnERC1967BeaconProxy(instance, start, 2 ** 256 - 1)`.\n    function argsOnERC1967BeaconProxy(address instance) internal view returns (bytes memory args) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            mstore(args, and(0xffffffffff, sub(extcodesize(instance), 0x52))) // Store the length.\n            extcodecopy(instance, add(args, 0x20), 0x52, add(mload(args), 0x20))\n            mstore(0x40, add(mload(args), add(args, 0x40))) // Allocate memory.\n        }\n    }\n\n    /// @dev Equivalent to `argsOnERC1967BeaconProxy(instance, start, 2 ** 256 - 1)`.\n    function argsOnERC1967BeaconProxy(address instance, uint256 start)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            let n := and(0xffffffffff, sub(extcodesize(instance), 0x52))\n            let l := sub(n, and(0xffffff, mul(lt(start, n), start)))\n            extcodecopy(instance, args, add(start, 0x32), add(l, 0x40))\n            mstore(args, mul(sub(n, start), lt(start, n))) // Store the length.\n            mstore(0x40, add(args, add(0x40, mload(args)))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns a slice of the immutable arguments on `instance` from `start` to `end`.\n    /// `start` and `end` will be clamped to the range `[0, args.length]`.\n    /// The `instance` MUST be deployed via the ERC1967 beacon proxy with immutable args functions.\n    /// Otherwise, the behavior is undefined.\n    /// Out-of-gas reverts if `instance` does not have any code.\n    function argsOnERC1967BeaconProxy(address instance, uint256 start, uint256 end)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            if iszero(lt(end, 0xffff)) { end := 0xffff }\n            let d := mul(sub(end, start), lt(start, end))\n            extcodecopy(instance, args, add(start, 0x32), add(d, 0x20))\n            if iszero(and(0xff, mload(add(args, d)))) {\n                let n := sub(extcodesize(instance), 0x52)\n                returndatacopy(returndatasize(), returndatasize(), shr(40, n))\n                d := mul(gt(n, start), sub(d, mul(gt(end, n), sub(end, n))))\n            }\n            mstore(args, d) // Store the length.\n            mstore(add(add(args, 0x20), d), 0) // Zeroize the slot after the bytes.\n            mstore(0x40, add(add(args, 0x40), d)) // Allocate memory.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*              ERC1967I BEACON PROXY OPERATIONS              */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // Note: This proxy has a special code path that activates if `calldatasize() == 1`.\n    // This code path skips the delegatecall and directly returns the `implementation` address.\n    // The returned implementation is guaranteed to be valid if the keccak256 of the\n    // proxy's code is equal to `ERC1967_BEACON_PROXY_CODE_HASH`.\n    //\n    // If you use this proxy, you MUST make sure that the beacon is a\n    // valid ERC1967 beacon. This means that the beacon must always return a valid\n    // address upon a staticcall to `implementation()`, given sufficient gas.\n    // For performance, the deployment operations and the proxy assumes that the\n    // beacon is always valid and will NOT validate it.\n\n    /// @dev Deploys a ERC1967I beacon proxy.\n    function deployERC1967IBeaconProxy(address beacon) internal returns (address instance) {\n        instance = deployERC1967IBeaconProxy(0, beacon);\n    }\n\n    /// @dev Deploys a ERC1967I beacon proxy.\n    /// Deposits `value` ETH during deployment.\n    function deployERC1967IBeaconProxy(uint256 value, address beacon)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            /**\n             * ---------------------------------------------------------------------------------+\n             * CREATION (34 bytes)                                                              |\n             * ---------------------------------------------------------------------------------|\n             * Opcode     | Mnemonic       | Stack            | Memory                          |\n             * ---------------------------------------------------------------------------------|\n             * 60 runSize | PUSH1 runSize  | r                |                                 |\n             * 3d         | RETURNDATASIZE | 0 r              |                                 |\n             * 81         | DUP2           | r 0 r            |                                 |\n             * 60 offset  | PUSH1 offset   | o r 0 r          |                                 |\n             * 3d         | RETURNDATASIZE | 0 o r 0 r        |                                 |\n             * 39         | CODECOPY       | 0 r              | [0..runSize): runtime code      |\n             * 73 beac    | PUSH20 beac    | beac 0 r         | [0..runSize): runtime code      |\n             * 60 slotPos | PUSH1 slotPos  | slotPos beac 0 r | [0..runSize): runtime code      |\n             * 51         | MLOAD          | slot beac 0 r    | [0..runSize): runtime code      |\n             * 55         | SSTORE         | 0 r              | [0..runSize): runtime code      |\n             * f3         | RETURN         |                  | [0..runSize): runtime code      |\n             * ---------------------------------------------------------------------------------|\n             * RUNTIME (87 bytes)                                                               |\n             * ---------------------------------------------------------------------------------|\n             * Opcode     | Mnemonic       | Stack            | Memory                          |\n             * ---------------------------------------------------------------------------------|\n             *                                                                                  |\n             * ::: copy calldata to memory :::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 36         | CALLDATASIZE   | cds              |                                 |\n             * 3d         | RETURNDATASIZE | 0 cds            |                                 |\n             * 3d         | RETURNDATASIZE | 0 0 cds          |                                 |\n             * 37         | CALLDATACOPY   |                  | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ::: delegatecall to implementation ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | 0                |                                 |\n             * 3d         | RETURNDATASIZE | 0 0              |                                 |\n             * 36         | CALLDATASIZE   | cds 0 0          | [0..calldatasize): calldata     |\n             * 3d         | RETURNDATASIZE | 0 cds 0 0        | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ~~~~~~~ beacon staticcall sub procedure ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |\n             * 60 0x20       | PUSH1 0x20       | 32                          |                 |\n             * 36            | CALLDATASIZE     | cds 32                      |                 |\n             * 60 0x04       | PUSH1 0x04       | 4 cds 32                    |                 |\n             * 36            | CALLDATASIZE     | cds 4 cds 32                |                 |\n             * 63 0x5c60da1b | PUSH4 0x5c60da1b | 0x5c60da1b cds 4 cds 32     |                 |\n             * 60 0xe0       | PUSH1 0xe0       | 224 0x5c60da1b cds 4 cds 32 |                 |\n             * 1b            | SHL              | sel cds 4 cds 32            |                 |\n             * 36            | CALLDATASIZE     | cds sel cds 4 cds 32        |                 |\n             * 52            | MSTORE           | cds 4 cds 32                | sel             |\n             * 7f slot       | PUSH32 slot      | s cds 4 cds 32              | sel             |\n             * 54            | SLOAD            | beac cds 4 cds 32           | sel             |\n             * 5a            | GAS              | g beac cds 4 cds 32         | sel             |\n             * fa            | STATICCALL       | succ                        | impl            |\n             * ~~~~~~ check calldatasize ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |\n             * 36            | CALLDATASIZE     | cds succ                    |                 |\n             * 14            | EQ               |                             | impl            |\n             * 60 0x52       | PUSH1 0x52       |                             | impl            |\n             * 57            | JUMPI            |                             | impl            |\n             * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |\n             * 36            | CALLDATASIZE     | cds                         | impl            |\n             * 51            | MLOAD            | impl                        | impl            |\n             * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |\n             * 5a         | GAS            | g impl 0 cds 0 0 | [0..calldatasize): calldata     |\n             * f4         | DELEGATECALL   | succ             | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ::: copy returndata to memory :::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | rds succ         | [0..calldatasize): calldata     |\n             * 60 0x00    | PUSH1 0x00     | 0 rds succ       | [0..calldatasize): calldata     |\n             * 60 0x01    | PUSH1 0x01     | 1 0 rds succ     | [0..calldatasize): calldata     |\n             * 3e         | RETURNDATACOPY | succ             | [1..returndatasize): returndata |\n             *                                                                                  |\n             * ::: branch on delegatecall status :::::::::::::::::::::::::::::::::::::::::::::: |\n             * 60 0x52    | PUSH1 0x52     | dest succ        | [1..returndatasize): returndata |\n             * 57         | JUMPI          |                  | [1..returndatasize): returndata |\n             *                                                                                  |\n             * ::: delegatecall failed, revert :::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | rds              | [1..returndatasize): returndata |\n             * 60 0x01    | PUSH1 0x01     | 1 rds            | [1..returndatasize): returndata |\n             * fd         | REVERT         |                  | [1..returndatasize): returndata |\n             *                                                                                  |\n             * ::: delegatecall succeeded, return ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 5b         | JUMPDEST       |                  | [1..returndatasize): returndata |\n             * 3d         | RETURNDATASIZE | rds              | [1..returndatasize): returndata |\n             * 60 0x01    | PUSH1 0x01     | 1 rds            | [1..returndatasize): returndata |\n             * f3         | RETURN         |                  | [1..returndatasize): returndata |\n             * ---------------------------------------------------------------------------------+\n             */\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(0x40, 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(0x20, 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(0x04, or(shl(160, 0x60573d8160223d3973), shr(96, shl(96, beacon))))\n            instance := create(value, 0x07, 0x79)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Deploys a deterministic ERC1967I beacon proxy with `salt`.\n    function deployDeterministicERC1967IBeaconProxy(address beacon, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = deployDeterministicERC1967IBeaconProxy(0, beacon, salt);\n    }\n\n    /// @dev Deploys a deterministic ERC1967I beacon proxy with `salt`.\n    /// Deposits `value` ETH during deployment.\n    function deployDeterministicERC1967IBeaconProxy(uint256 value, address beacon, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(0x40, 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(0x20, 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(0x04, or(shl(160, 0x60573d8160223d3973), shr(96, shl(96, beacon))))\n            instance := create2(value, 0x07, 0x79, salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Creates a deterministic ERC1967I beacon proxy with `salt`.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967IBeaconProxy(address beacon, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicERC1967IBeaconProxy(0, beacon, salt);\n    }\n\n    /// @dev Creates a deterministic ERC1967I beacon proxy with `salt`.\n    /// Deposits `value` ETH during deployment.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967IBeaconProxy(uint256 value, address beacon, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(0x40, 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(0x20, 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(0x04, or(shl(160, 0x60573d8160223d3973), shr(96, shl(96, beacon))))\n            // Compute and store the bytecode hash.\n            mstore(add(m, 0x35), keccak256(0x07, 0x79))\n            mstore(m, shl(88, address()))\n            mstore8(m, 0xff) // Write the prefix.\n            mstore(add(m, 0x15), salt)\n            instance := keccak256(m, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, 0x07, 0x79, salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Returns the initialization code of the ERC1967I beacon proxy.\n    function initCodeERC1967IBeaconProxy(address beacon) internal pure returns (bytes memory c) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            mstore(add(c, 0x79), 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(add(c, 0x59), 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(add(c, 0x39), 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(add(c, 0x1d), beacon)\n            mstore(add(c, 0x09), 0x60573d8160223d3973)\n            mstore(add(c, 0x99), 0)\n            mstore(c, 0x79) // Store the length.\n            mstore(0x40, add(c, 0xa0)) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the ERC1967I beacon proxy.\n    function initCodeHashERC1967IBeaconProxy(address beacon) internal pure returns (bytes32 hash) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(0x40, 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(0x20, 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(0x04, or(shl(160, 0x60573d8160223d3973), shr(96, shl(96, beacon))))\n            hash := keccak256(0x07, 0x79)\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Returns the address of the ERC1967I beacon proxy, with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddressERC1967IBeaconProxy(\n        address beacon,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHashERC1967IBeaconProxy(beacon);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*    ERC1967I BEACON PROXY WITH IMMUTABLE ARGS OPERATIONS    */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Deploys a ERC1967I beacon proxy with `args.\n    function deployERC1967IBeaconProxy(address beacon, bytes memory args)\n        internal\n        returns (address instance)\n    {\n        instance = deployERC1967IBeaconProxy(0, beacon, args);\n    }\n\n    /// @dev Deploys a ERC1967I beacon proxy with `args.\n    /// Deposits `value` ETH during deployment.\n    function deployERC1967IBeaconProxy(uint256 value, address beacon, bytes memory args)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x90), n))\n            mstore(add(m, 0x70), 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(add(m, 0x50), 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(add(m, 0x30), 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(add(m, 0x14), beacon)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x57 = 0xffa8`.\n            mstore(add(m, gt(n, 0xffa8)), add(0xfe6100573d8160233d3973, shl(56, n)))\n            instance := create(value, add(m, 0x16), add(n, 0x7a))\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Deploys a deterministic ERC1967I beacon proxy with `args` and `salt`.\n    function deployDeterministicERC1967IBeaconProxy(address beacon, bytes memory args, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = deployDeterministicERC1967IBeaconProxy(0, beacon, args, salt);\n    }\n\n    /// @dev Deploys a deterministic ERC1967I beacon proxy with `args` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    function deployDeterministicERC1967IBeaconProxy(\n        uint256 value,\n        address beacon,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x90), n))\n            mstore(add(m, 0x70), 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(add(m, 0x50), 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(add(m, 0x30), 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(add(m, 0x14), beacon)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x57 = 0xffa8`.\n            mstore(add(m, gt(n, 0xffa8)), add(0xfe6100573d8160233d3973, shl(56, n)))\n            instance := create2(value, add(m, 0x16), add(n, 0x7a), salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Creates a deterministic ERC1967I beacon proxy with `args` and `salt`.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967IBeaconProxy(address beacon, bytes memory args, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicERC1967IBeaconProxy(0, beacon, args, salt);\n    }\n\n    /// @dev Creates a deterministic ERC1967I beacon proxy with `args` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967IBeaconProxy(\n        uint256 value,\n        address beacon,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (bool alreadyDeployed, address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x90), n))\n            mstore(add(m, 0x70), 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(add(m, 0x50), 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(add(m, 0x30), 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(add(m, 0x14), beacon)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x57 = 0xffa8`.\n            mstore(add(m, gt(n, 0xffa8)), add(0xfe6100573d8160233d3973, shl(56, n)))\n            // Compute and store the bytecode hash.\n            mstore8(0x00, 0xff) // Write the prefix.\n            mstore(0x35, keccak256(add(m, 0x16), add(n, 0x7a)))\n            mstore(0x01, shl(96, address()))\n            mstore(0x15, salt)\n            instance := keccak256(0x00, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, add(m, 0x16), add(n, 0x7a), salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x35, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the initialization code of the ERC1967I beacon proxy with `args`.\n    function initCodeERC1967IBeaconProxy(address beacon, bytes memory args)\n        internal\n        pure\n        returns (bytes memory c)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x57 = 0xffa8`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffa8))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(c, 0x9a), i), mload(add(add(args, 0x20), i)))\n            }\n            mstore(add(c, 0x7a), 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(add(c, 0x5a), 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(add(c, 0x3a), 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(add(c, 0x1e), beacon)\n            mstore(add(c, 0x0a), add(0x6100573d8160233d3973, shl(56, n)))\n            mstore(add(c, add(n, 0x9a)), 0)\n            mstore(c, add(n, 0x7a)) // Store the length.\n            mstore(0x40, add(c, add(n, 0xba))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the ERC1967I beacon proxy with `args`.\n    function initCodeHashERC1967IBeaconProxy(address beacon, bytes memory args)\n        internal\n        pure\n        returns (bytes32 hash)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let c := mload(0x40) // Cache the free memory pointer.\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x57 = 0xffa8`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffa8))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(c, 0x90), i), mload(add(add(args, 0x20), i)))\n            }\n            mstore(add(c, 0x70), 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(add(c, 0x50), 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(add(c, 0x30), 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(add(c, 0x14), beacon)\n            mstore(c, add(0x6100573d8160233d3973, shl(56, n)))\n            hash := keccak256(add(c, 0x16), add(n, 0x7a))\n        }\n    }\n\n    /// @dev Returns the address of the ERC1967I beacon proxy, with  `args` and salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddressERC1967IBeaconProxy(\n        address beacon,\n        bytes memory args,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHashERC1967IBeaconProxy(beacon, args);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /// @dev Equivalent to `argsOnERC1967IBeaconProxy(instance, start, 2 ** 256 - 1)`.\n    function argsOnERC1967IBeaconProxy(address instance)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            mstore(args, and(0xffffffffff, sub(extcodesize(instance), 0x57))) // Store the length.\n            extcodecopy(instance, add(args, 0x20), 0x57, add(mload(args), 0x20))\n            mstore(0x40, add(mload(args), add(args, 0x40))) // Allocate memory.\n        }\n    }\n\n    /// @dev Equivalent to `argsOnERC1967IBeaconProxy(instance, start, 2 ** 256 - 1)`.\n    function argsOnERC1967IBeaconProxy(address instance, uint256 start)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            let n := and(0xffffffffff, sub(extcodesize(instance), 0x57))\n            let l := sub(n, and(0xffffff, mul(lt(start, n), start)))\n            extcodecopy(instance, args, add(start, 0x37), add(l, 0x40))\n            mstore(args, mul(sub(n, start), lt(start, n))) // Store the length.\n            mstore(0x40, add(args, add(0x40, mload(args)))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns a slice of the immutable arguments on `instance` from `start` to `end`.\n    /// `start` and `end` will be clamped to the range `[0, args.length]`.\n    /// The `instance` MUST be deployed via the ERC1967I beacon proxy with immutable args functions.\n    /// Otherwise, the behavior is undefined.\n    /// Out-of-gas reverts if `instance` does not have any code.\n    function argsOnERC1967IBeaconProxy(address instance, uint256 start, uint256 end)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            if iszero(lt(end, 0xffff)) { end := 0xffff }\n            let d := mul(sub(end, start), lt(start, end))\n            extcodecopy(instance, args, add(start, 0x37), add(d, 0x20))\n            if iszero(and(0xff, mload(add(args, d)))) {\n                let n := sub(extcodesize(instance), 0x57)\n                returndatacopy(returndatasize(), returndatasize(), shr(40, n))\n                d := mul(gt(n, start), sub(d, mul(gt(end, n), sub(end, n))))\n            }\n            mstore(args, d) // Store the length.\n            mstore(add(add(args, 0x20), d), 0) // Zeroize the slot after the bytes.\n            mstore(0x40, add(add(args, 0x40), d)) // Allocate memory.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      OTHER OPERATIONS                      */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns `address(0)` if the implementation address cannot be determined.\n    function implementationOf(address instance) internal view returns (address result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            for { extcodecopy(instance, 0x00, 0x00, 0x57) } 1 {} {\n                if mload(0x2d) {\n                    // ERC1967I and ERC1967IBeaconProxy detection.\n                    if or(\n                        eq(keccak256(0x00, 0x52), ERC1967I_CODE_HASH),\n                        eq(keccak256(0x00, 0x57), ERC1967I_BEACON_PROXY_CODE_HASH)\n                    ) {\n                        pop(staticcall(gas(), instance, 0x00, 0x01, 0x00, 0x20))\n                        result := mload(0x0c)\n                        break\n                    }\n                }\n                // 0age clone detection.\n                result := mload(0x0b)\n                codecopy(0x0b, codesize(), 0x14) // Zeroize the 20 bytes for the address.\n                if iszero(xor(keccak256(0x00, 0x2c), CLONE_CODE_HASH)) { break }\n                mstore(0x0b, result) // Restore the zeroized memory.\n                // CWIA detection.\n                result := mload(0x0a)\n                codecopy(0x0a, codesize(), 0x14) // Zeroize the 20 bytes for the address.\n                if iszero(xor(keccak256(0x00, 0x2d), CWIA_CODE_HASH)) { break }\n                mstore(0x0a, result) // Restore the zeroized memory.\n                // PUSH0 clone detection.\n                result := mload(0x09)\n                codecopy(0x09, codesize(), 0x14) // Zeroize the 20 bytes for the address.\n                result := shr(xor(keccak256(0x00, 0x2d), PUSH0_CLONE_CODE_HASH), result)\n                break\n            }\n            result := shr(96, result)\n            mstore(0x37, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the address when a contract with initialization code hash,\n    /// `hash`, is deployed with `salt`, by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddress(bytes32 hash, bytes32 salt, address deployer)\n        internal\n        pure\n        returns (address predicted)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute and store the bytecode hash.\n            mstore8(0x00, 0xff) // Write the prefix.\n            mstore(0x35, hash)\n            mstore(0x01, shl(96, deployer))\n            mstore(0x15, salt)\n            predicted := keccak256(0x00, 0x55)\n            mstore(0x35, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Requires that `salt` starts with either the zero address or `by`.\n    function checkStartsWith(bytes32 salt, address by) internal pure {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // If the salt does not start with the zero address or `by`.\n            if iszero(or(iszero(shr(96, salt)), eq(shr(96, shl(96, by)), shr(96, salt)))) {\n                mstore(0x00, 0x0c4549ef) // `SaltDoesNotStartWith()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Returns the `bytes32` at `offset` in `args`, without any bounds checks.\n    /// To load an address, you can use `address(bytes20(argLoad(args, offset)))`.\n    function argLoad(bytes memory args, uint256 offset) internal pure returns (bytes32 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := mload(add(add(args, 0x20), offset))\n        }\n    }\n}\n"},"lib/solady/src/utils/SafeTransferLib.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/SafeTransferLib.sol)\n/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol)\n/// @author Permit2 operations from (https://github.com/Uniswap/permit2/blob/main/src/libraries/Permit2Lib.sol)\n///\n/// @dev Note:\n/// - For ETH transfers, please use `forceSafeTransferETH` for DoS protection.\nlibrary SafeTransferLib {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The ETH transfer has failed.\n    error ETHTransferFailed();\n\n    /// @dev The ERC20 `transferFrom` has failed.\n    error TransferFromFailed();\n\n    /// @dev The ERC20 `transfer` has failed.\n    error TransferFailed();\n\n    /// @dev The ERC20 `approve` has failed.\n    error ApproveFailed();\n\n    /// @dev The ERC20 `totalSupply` query has failed.\n    error TotalSupplyQueryFailed();\n\n    /// @dev The Permit2 operation has failed.\n    error Permit2Failed();\n\n    /// @dev The Permit2 amount must be less than `2**160 - 1`.\n    error Permit2AmountOverflow();\n\n    /// @dev The Permit2 approve operation has failed.\n    error Permit2ApproveFailed();\n\n    /// @dev The Permit2 lockdown operation has failed.\n    error Permit2LockdownFailed();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         CONSTANTS                          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Suggested gas stipend for contract receiving ETH that disallows any storage writes.\n    uint256 internal constant GAS_STIPEND_NO_STORAGE_WRITES = 2300;\n\n    /// @dev Suggested gas stipend for contract receiving ETH to perform a few\n    /// storage reads and writes, but low enough to prevent griefing.\n    uint256 internal constant GAS_STIPEND_NO_GRIEF = 100000;\n\n    /// @dev The unique EIP-712 domain separator for the DAI token contract.\n    bytes32 internal constant DAI_DOMAIN_SEPARATOR =\n        0xdbb8cf42e1ecb028be3f3dbc922e1d878b963f411dc388ced501601c60f7c6f7;\n\n    /// @dev The address for the WETH9 contract on Ethereum mainnet.\n    address internal constant WETH9 = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;\n\n    /// @dev The canonical Permit2 address.\n    /// [Github](https://github.com/Uniswap/permit2)\n    /// [Etherscan](https://etherscan.io/address/0x000000000022D473030F116dDEE9F6B43aC78BA3)\n    address internal constant PERMIT2 = 0x000000000022D473030F116dDEE9F6B43aC78BA3;\n\n    /// @dev The canonical address of the `SELFDESTRUCT` ETH mover.\n    /// See: https://gist.github.com/Vectorized/1cb8ad4cf393b1378e08f23f79bd99fa\n    /// [Etherscan](https://etherscan.io/address/0x00000000000073c48c8055bD43D1A53799176f0D)\n    address internal constant ETH_MOVER = 0x00000000000073c48c8055bD43D1A53799176f0D;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       ETH OPERATIONS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // If the ETH transfer MUST succeed with a reasonable gas budget, use the force variants.\n    //\n    // The regular variants:\n    // - Forwards all remaining gas to the target.\n    // - Reverts if the target reverts.\n    // - Reverts if the current contract has insufficient balance.\n    //\n    // The force variants:\n    // - Forwards with an optional gas stipend\n    //   (defaults to `GAS_STIPEND_NO_GRIEF`, which is sufficient for most cases).\n    // - If the target reverts, or if the gas stipend is exhausted,\n    //   creates a temporary contract to force send the ETH via `SELFDESTRUCT`.\n    //   Future compatible with `SENDALL`: https://eips.ethereum.org/EIPS/eip-4758.\n    // - Reverts if the current contract has insufficient balance.\n    //\n    // The try variants:\n    // - Forwards with a mandatory gas stipend.\n    // - Instead of reverting, returns whether the transfer succeeded.\n\n    /// @dev Sends `amount` (in wei) ETH to `to`.\n    function safeTransferETH(address to, uint256 amount) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(call(gas(), to, amount, codesize(), 0x00, codesize(), 0x00)) {\n                mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Sends all the ETH in the current contract to `to`.\n    function safeTransferAllETH(address to) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Transfer all the ETH and check if it succeeded or not.\n            if iszero(call(gas(), to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n                mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Force sends `amount` (in wei) ETH to `to`, with a `gasStipend`.\n    function forceSafeTransferETH(address to, uint256 amount, uint256 gasStipend) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            if lt(selfbalance(), amount) {\n                mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                revert(0x1c, 0x04)\n            }\n            if iszero(call(gasStipend, to, amount, codesize(), 0x00, codesize(), 0x00)) {\n                mstore(0x00, to) // Store the address in scratch space.\n                mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n                mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n                if iszero(create(amount, 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n            }\n        }\n    }\n\n    /// @dev Force sends all the ETH in the current contract to `to`, with a `gasStipend`.\n    function forceSafeTransferAllETH(address to, uint256 gasStipend) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(call(gasStipend, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n                mstore(0x00, to) // Store the address in scratch space.\n                mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n                mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n                if iszero(create(selfbalance(), 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n            }\n        }\n    }\n\n    /// @dev Force sends `amount` (in wei) ETH to `to`, with `GAS_STIPEND_NO_GRIEF`.\n    function forceSafeTransferETH(address to, uint256 amount) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            if lt(selfbalance(), amount) {\n                mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                revert(0x1c, 0x04)\n            }\n            if iszero(call(GAS_STIPEND_NO_GRIEF, to, amount, codesize(), 0x00, codesize(), 0x00)) {\n                mstore(0x00, to) // Store the address in scratch space.\n                mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n                mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n                if iszero(create(amount, 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n            }\n        }\n    }\n\n    /// @dev Force sends all the ETH in the current contract to `to`, with `GAS_STIPEND_NO_GRIEF`.\n    function forceSafeTransferAllETH(address to) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // forgefmt: disable-next-item\n            if iszero(call(GAS_STIPEND_NO_GRIEF, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n                mstore(0x00, to) // Store the address in scratch space.\n                mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n                mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n                if iszero(create(selfbalance(), 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n            }\n        }\n    }\n\n    /// @dev Sends `amount` (in wei) ETH to `to`, with a `gasStipend`.\n    function trySafeTransferETH(address to, uint256 amount, uint256 gasStipend)\n        internal\n        returns (bool success)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            success := call(gasStipend, to, amount, codesize(), 0x00, codesize(), 0x00)\n        }\n    }\n\n    /// @dev Sends all the ETH in the current contract to `to`, with a `gasStipend`.\n    function trySafeTransferAllETH(address to, uint256 gasStipend)\n        internal\n        returns (bool success)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            success := call(gasStipend, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)\n        }\n    }\n\n    /// @dev Force transfers ETH to `to`, without triggering the fallback (if any).\n    /// This method attempts to use a separate contract to send via `SELFDESTRUCT`,\n    /// and upon failure, deploys a minimal vault to accrue the ETH.\n    function safeMoveETH(address to, uint256 amount) internal returns (address vault) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            to := shr(96, shl(96, to)) // Clean upper 96 bits.\n            for { let mover := ETH_MOVER } iszero(eq(to, address())) {} {\n                let selfBalanceBefore := selfbalance()\n                if or(lt(selfBalanceBefore, amount), eq(to, mover)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                if extcodesize(mover) {\n                    let balanceBefore := balance(to) // Check via delta, in case `SELFDESTRUCT` is bricked.\n                    mstore(0x00, to)\n                    pop(call(gas(), mover, amount, 0x00, 0x20, codesize(), 0x00))\n                    // If `address(to).balance >= amount + balanceBefore`, skip vault workflow.\n                    if iszero(lt(balance(to), add(amount, balanceBefore))) { break }\n                    // Just in case `SELFDESTRUCT` is changed to not revert and do nothing.\n                    if lt(selfBalanceBefore, selfbalance()) { invalid() }\n                }\n                let m := mload(0x40)\n                // If the mover is missing or bricked, deploy a minimal vault\n                // that withdraws all ETH to `to` when being called only by `to`.\n                // forgefmt: disable-next-item\n                mstore(add(m, 0x20), 0x33146025575b600160005260206000f35b3d3d3d3d47335af1601a5760003dfd)\n                mstore(m, or(to, shl(160, 0x6035600b3d3960353df3fe73)))\n                // Compute and store the bytecode hash.\n                mstore8(0x00, 0xff) // Write the prefix.\n                mstore(0x35, keccak256(m, 0x40))\n                mstore(0x01, shl(96, address())) // Deployer.\n                mstore(0x15, 0) // Salt.\n                vault := keccak256(0x00, 0x55)\n                pop(call(gas(), vault, amount, codesize(), 0x00, codesize(), 0x00))\n                // The vault returns a single word on success. Failure reverts with empty data.\n                if iszero(returndatasize()) {\n                    if iszero(create2(0, m, 0x40, 0)) { revert(codesize(), codesize()) } // For gas estimation.\n                }\n                mstore(0x40, m) // Restore the free memory pointer.\n                break\n            }\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      ERC20 OPERATIONS                      */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.\n    /// Reverts upon failure.\n    ///\n    /// The `from` account must have at least `amount` approved for\n    /// the current contract to manage.\n    function safeTransferFrom(address token, address from, address to, uint256 amount) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, amount) // Store the `amount` argument.\n            mstore(0x40, to) // Store the `to` argument.\n            mstore(0x2c, shl(96, from)) // Store the `from` argument.\n            mstore(0x0c, 0x23b872dd000000000000000000000000) // `transferFrom(address,address,uint256)`.\n            let success := call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                    mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            mstore(0x60, 0) // Restore the zero slot to zero.\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n    }\n\n    /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.\n    ///\n    /// The `from` account must have at least `amount` approved for the current contract to manage.\n    function trySafeTransferFrom(address token, address from, address to, uint256 amount)\n        internal\n        returns (bool success)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, amount) // Store the `amount` argument.\n            mstore(0x40, to) // Store the `to` argument.\n            mstore(0x2c, shl(96, from)) // Store the `from` argument.\n            mstore(0x0c, 0x23b872dd000000000000000000000000) // `transferFrom(address,address,uint256)`.\n            success := call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                success := lt(or(iszero(extcodesize(token)), returndatasize()), success)\n            }\n            mstore(0x60, 0) // Restore the zero slot to zero.\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n    }\n\n    /// @dev Sends all of ERC20 `token` from `from` to `to`.\n    /// Reverts upon failure.\n    ///\n    /// The `from` account must have their entire balance approved for the current contract to manage.\n    function safeTransferAllFrom(address token, address from, address to)\n        internal\n        returns (uint256 amount)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x40, to) // Store the `to` argument.\n            mstore(0x2c, shl(96, from)) // Store the `from` argument.\n            mstore(0x0c, 0x70a08231000000000000000000000000) // `balanceOf(address)`.\n            // Read the balance, reverting upon failure.\n            if iszero(\n                and( // The arguments of `and` are evaluated from right to left.\n                    gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n                    staticcall(gas(), token, 0x1c, 0x24, 0x60, 0x20)\n                )\n            ) {\n                mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x00, 0x23b872dd) // `transferFrom(address,address,uint256)`.\n            amount := mload(0x60) // The `amount` is already at 0x60. We'll need to return it.\n            // Perform the transfer, reverting upon failure.\n            let success := call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                    mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            mstore(0x60, 0) // Restore the zero slot to zero.\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n    }\n\n    /// @dev Sends `amount` of ERC20 `token` from the current contract to `to`.\n    /// Reverts upon failure.\n    function safeTransfer(address token, address to, uint256 amount) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x14, to) // Store the `to` argument.\n            mstore(0x34, amount) // Store the `amount` argument.\n            mstore(0x00, 0xa9059cbb000000000000000000000000) // `transfer(address,uint256)`.\n            // Perform the transfer, reverting upon failure.\n            let success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                    mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n        }\n    }\n\n    /// @dev Sends all of ERC20 `token` from the current contract to `to`.\n    /// Reverts upon failure.\n    function safeTransferAll(address token, address to) internal returns (uint256 amount) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, 0x70a08231) // Store the function selector of `balanceOf(address)`.\n            mstore(0x20, address()) // Store the address of the current contract.\n            // Read the balance, reverting upon failure.\n            if iszero(\n                and( // The arguments of `and` are evaluated from right to left.\n                    gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n                    staticcall(gas(), token, 0x1c, 0x24, 0x34, 0x20)\n                )\n            ) {\n                mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x14, to) // Store the `to` argument.\n            amount := mload(0x34) // The `amount` is already at 0x34. We'll need to return it.\n            mstore(0x00, 0xa9059cbb000000000000000000000000) // `transfer(address,uint256)`.\n            // Perform the transfer, reverting upon failure.\n            let success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                    mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n        }\n    }\n\n    /// @dev Sets `amount` of ERC20 `token` for `to` to manage on behalf of the current contract.\n    /// Reverts upon failure.\n    function safeApprove(address token, address to, uint256 amount) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x14, to) // Store the `to` argument.\n            mstore(0x34, amount) // Store the `amount` argument.\n            mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n            let success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                    mstore(0x00, 0x3e3f8f73) // `ApproveFailed()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n        }\n    }\n\n    /// @dev Sets `amount` of ERC20 `token` for `to` to manage on behalf of the current contract.\n    /// If the initial attempt to approve fails, attempts to reset the approved amount to zero,\n    /// then retries the approval again (some tokens, e.g. USDT, requires this).\n    /// Reverts upon failure.\n    function safeApproveWithRetry(address token, address to, uint256 amount) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x14, to) // Store the `to` argument.\n            mstore(0x34, amount) // Store the `amount` argument.\n            mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n            // Perform the approval, retrying upon failure.\n            let success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                    mstore(0x34, 0) // Store 0 for the `amount`.\n                    mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n                    pop(call(gas(), token, 0, 0x10, 0x44, codesize(), 0x00)) // Reset the approval.\n                    mstore(0x34, amount) // Store back the original `amount`.\n                    // Retry the approval, reverting upon failure.\n                    success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n                    if iszero(and(eq(mload(0x00), 1), success)) {\n                        // Check the `extcodesize` again just in case the token selfdestructs lol.\n                        if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                            mstore(0x00, 0x3e3f8f73) // `ApproveFailed()`.\n                            revert(0x1c, 0x04)\n                        }\n                    }\n                }\n            }\n            mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n        }\n    }\n\n    /// @dev Returns the amount of ERC20 `token` owned by `account`.\n    /// Returns zero if the `token` does not exist.\n    function balanceOf(address token, address account) internal view returns (uint256 amount) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x14, account) // Store the `account` argument.\n            mstore(0x00, 0x70a08231000000000000000000000000) // `balanceOf(address)`.\n            amount :=\n                mul( // The arguments of `mul` are evaluated from right to left.\n                    mload(0x20),\n                    and( // The arguments of `and` are evaluated from right to left.\n                        gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n                        staticcall(gas(), token, 0x10, 0x24, 0x20, 0x20)\n                    )\n                )\n        }\n    }\n\n    /// @dev Performs a `token.balanceOf(account)` check.\n    /// `implemented` denotes whether the `token` does not implement `balanceOf`.\n    /// `amount` is zero if the `token` does not implement `balanceOf`.\n    function checkBalanceOf(address token, address account)\n        internal\n        view\n        returns (bool implemented, uint256 amount)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x14, account) // Store the `account` argument.\n            mstore(0x00, 0x70a08231000000000000000000000000) // `balanceOf(address)`.\n            implemented :=\n                and( // The arguments of `and` are evaluated from right to left.\n                    gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n                    staticcall(gas(), token, 0x10, 0x24, 0x20, 0x20)\n                )\n            amount := mul(mload(0x20), implemented)\n        }\n    }\n\n    /// @dev Returns the total supply of the `token`.\n    /// Reverts if the token does not exist or does not implement `totalSupply()`.\n    function totalSupply(address token) internal view returns (uint256 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, 0x18160ddd) // `totalSupply()`.\n            if iszero(\n                and(gt(returndatasize(), 0x1f), staticcall(gas(), token, 0x1c, 0x04, 0x00, 0x20))\n            ) {\n                mstore(0x00, 0x54cd9435) // `TotalSupplyQueryFailed()`.\n                revert(0x1c, 0x04)\n            }\n            result := mload(0x00)\n        }\n    }\n\n    /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.\n    /// If the initial attempt fails, try to use Permit2 to transfer the token.\n    /// Reverts upon failure.\n    ///\n    /// The `from` account must have at least `amount` approved for the current contract to manage.\n    function safeTransferFrom2(address token, address from, address to, uint256 amount) internal {\n        if (!trySafeTransferFrom(token, from, to, amount)) {\n            permit2TransferFrom(token, from, to, amount);\n        }\n    }\n\n    /// @dev Sends `amount` of ERC20 `token` from `from` to `to` via Permit2.\n    /// Reverts upon failure.\n    function permit2TransferFrom(address token, address from, address to, uint256 amount)\n        internal\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            mstore(add(m, 0x74), shr(96, shl(96, token)))\n            mstore(add(m, 0x54), amount)\n            mstore(add(m, 0x34), to)\n            mstore(add(m, 0x20), shl(96, from))\n            // `transferFrom(address,address,uint160,address)`.\n            mstore(m, 0x36c78516000000000000000000000000)\n            let p := PERMIT2\n            let exists := eq(chainid(), 1)\n            if iszero(exists) { exists := iszero(iszero(extcodesize(p))) }\n            if iszero(\n                and(\n                    call(gas(), p, 0, add(m, 0x10), 0x84, codesize(), 0x00),\n                    lt(iszero(extcodesize(token)), exists) // Token has code and Permit2 exists.\n                )\n            ) {\n                mstore(0x00, 0x7939f4248757f0fd) // `TransferFromFailed()` or `Permit2AmountOverflow()`.\n                revert(add(0x18, shl(2, iszero(iszero(shr(160, amount))))), 0x04)\n            }\n        }\n    }\n\n    /// @dev Permit a user to spend a given amount of\n    /// another user's tokens via native EIP-2612 permit if possible, falling\n    /// back to Permit2 if native permit fails or is not implemented on the token.\n    function permit2(\n        address token,\n        address owner,\n        address spender,\n        uint256 amount,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) internal {\n        bool success;\n        /// @solidity memory-safe-assembly\n        assembly {\n            for {} shl(96, xor(token, WETH9)) {} {\n                mstore(0x00, 0x3644e515) // `DOMAIN_SEPARATOR()`.\n                if iszero(\n                    and( // The arguments of `and` are evaluated from right to left.\n                        lt(iszero(mload(0x00)), eq(returndatasize(), 0x20)), // Returns 1 non-zero word.\n                        // Gas stipend to limit gas burn for tokens that don't refund gas when\n                        // an non-existing function is called. 5K should be enough for a SLOAD.\n                        staticcall(5000, token, 0x1c, 0x04, 0x00, 0x20)\n                    )\n                ) { break }\n                // After here, we can be sure that token is a contract.\n                let m := mload(0x40)\n                mstore(add(m, 0x34), spender)\n                mstore(add(m, 0x20), shl(96, owner))\n                mstore(add(m, 0x74), deadline)\n                if eq(mload(0x00), DAI_DOMAIN_SEPARATOR) {\n                    mstore(0x14, owner)\n                    mstore(0x00, 0x7ecebe00000000000000000000000000) // `nonces(address)`.\n                    mstore(\n                        add(m, 0x94),\n                        lt(iszero(amount), staticcall(gas(), token, 0x10, 0x24, add(m, 0x54), 0x20))\n                    )\n                    mstore(m, 0x8fcbaf0c000000000000000000000000) // `IDAIPermit.permit`.\n                    // `nonces` is already at `add(m, 0x54)`.\n                    // `amount != 0` is already stored at `add(m, 0x94)`.\n                    mstore(add(m, 0xb4), and(0xff, v))\n                    mstore(add(m, 0xd4), r)\n                    mstore(add(m, 0xf4), s)\n                    success := call(gas(), token, 0, add(m, 0x10), 0x104, codesize(), 0x00)\n                    break\n                }\n                mstore(m, 0xd505accf000000000000000000000000) // `IERC20Permit.permit`.\n                mstore(add(m, 0x54), amount)\n                mstore(add(m, 0x94), and(0xff, v))\n                mstore(add(m, 0xb4), r)\n                mstore(add(m, 0xd4), s)\n                success := call(gas(), token, 0, add(m, 0x10), 0xe4, codesize(), 0x00)\n                break\n            }\n        }\n        if (!success) simplePermit2(token, owner, spender, amount, deadline, v, r, s);\n    }\n\n    /// @dev Simple permit on the Permit2 contract.\n    function simplePermit2(\n        address token,\n        address owner,\n        address spender,\n        uint256 amount,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            mstore(m, 0x927da105) // `allowance(address,address,address)`.\n            {\n                let addressMask := shr(96, not(0))\n                mstore(add(m, 0x20), and(addressMask, owner))\n                mstore(add(m, 0x40), and(addressMask, token))\n                mstore(add(m, 0x60), and(addressMask, spender))\n                mstore(add(m, 0xc0), and(addressMask, spender))\n            }\n            let p := mul(PERMIT2, iszero(shr(160, amount)))\n            if iszero(\n                and( // The arguments of `and` are evaluated from right to left.\n                    gt(returndatasize(), 0x5f), // Returns 3 words: `amount`, `expiration`, `nonce`.\n                    staticcall(gas(), p, add(m, 0x1c), 0x64, add(m, 0x60), 0x60)\n                )\n            ) {\n                mstore(0x00, 0x6b836e6b8757f0fd) // `Permit2Failed()` or `Permit2AmountOverflow()`.\n                revert(add(0x18, shl(2, iszero(p))), 0x04)\n            }\n            mstore(m, 0x2b67b570) // `Permit2.permit` (PermitSingle variant).\n            // `owner` is already `add(m, 0x20)`.\n            // `token` is already at `add(m, 0x40)`.\n            mstore(add(m, 0x60), amount)\n            mstore(add(m, 0x80), 0xffffffffffff) // `expiration = type(uint48).max`.\n            // `nonce` is already at `add(m, 0xa0)`.\n            // `spender` is already at `add(m, 0xc0)`.\n            mstore(add(m, 0xe0), deadline)\n            mstore(add(m, 0x100), 0x100) // `signature` offset.\n            mstore(add(m, 0x120), 0x41) // `signature` length.\n            mstore(add(m, 0x140), r)\n            mstore(add(m, 0x160), s)\n            mstore(add(m, 0x180), shl(248, v))\n            if iszero( // Revert if token does not have code, or if the call fails.\n            mul(extcodesize(token), call(gas(), p, 0, add(m, 0x1c), 0x184, codesize(), 0x00))) {\n                mstore(0x00, 0x6b836e6b) // `Permit2Failed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Approves `spender` to spend `amount` of `token` for `address(this)`.\n    function permit2Approve(address token, address spender, uint160 amount, uint48 expiration)\n        internal\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let addressMask := shr(96, not(0))\n            let m := mload(0x40)\n            mstore(m, 0x87517c45) // `approve(address,address,uint160,uint48)`.\n            mstore(add(m, 0x20), and(addressMask, token))\n            mstore(add(m, 0x40), and(addressMask, spender))\n            mstore(add(m, 0x60), and(addressMask, amount))\n            mstore(add(m, 0x80), and(0xffffffffffff, expiration))\n            if iszero(call(gas(), PERMIT2, 0, add(m, 0x1c), 0xa0, codesize(), 0x00)) {\n                mstore(0x00, 0x324f14ae) // `Permit2ApproveFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Revokes an approval for `token` and `spender` for `address(this)`.\n    function permit2Lockdown(address token, address spender) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            mstore(m, 0xcc53287f) // `Permit2.lockdown`.\n            mstore(add(m, 0x20), 0x20) // Offset of the `approvals`.\n            mstore(add(m, 0x40), 1) // `approvals.length`.\n            mstore(add(m, 0x60), shr(96, shl(96, token)))\n            mstore(add(m, 0x80), shr(96, shl(96, spender)))\n            if iszero(call(gas(), PERMIT2, 0, add(m, 0x1c), 0xa0, codesize(), 0x00)) {\n                mstore(0x00, 0x96b3de23) // `Permit2LockdownFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n}\n"},"lib/solady/src/utils/UUPSUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\nimport {CallContextChecker} from \"./CallContextChecker.sol\";\n\n/// @notice UUPS proxy mixin.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/UUPSUpgradeable.sol)\n/// @author Modified from OpenZeppelin\n/// (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/proxy/utils/UUPSUpgradeable.sol)\n///\n/// @dev Note:\n/// - This implementation is intended to be used with ERC1967 proxies.\n/// See: `LibClone.deployERC1967` and related functions.\n/// - This implementation is NOT compatible with legacy OpenZeppelin proxies\n/// which do not store the implementation at `_ERC1967_IMPLEMENTATION_SLOT`.\nabstract contract UUPSUpgradeable is CallContextChecker {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The upgrade failed.\n    error UpgradeFailed();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                           EVENTS                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Emitted when the proxy's implementation is upgraded.\n    event Upgraded(address indexed implementation);\n\n    /// @dev `keccak256(bytes(\"Upgraded(address)\"))`.\n    uint256 private constant _UPGRADED_EVENT_SIGNATURE =\n        0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                          STORAGE                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The ERC-1967 storage slot for the implementation in the proxy.\n    /// `uint256(keccak256(\"eip1967.proxy.implementation\")) - 1`.\n    bytes32 internal constant _ERC1967_IMPLEMENTATION_SLOT =\n        0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      UUPS OPERATIONS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Please override this function to check if `msg.sender` is authorized\n    /// to upgrade the proxy to `newImplementation`, reverting if not.\n    /// ```\n    ///     function _authorizeUpgrade(address) internal override onlyOwner {}\n    /// ```\n    function _authorizeUpgrade(address newImplementation) internal virtual;\n\n    /// @dev Returns the storage slot used by the implementation,\n    /// as specified in [ERC1822](https://eips.ethereum.org/EIPS/eip-1822).\n    ///\n    /// Note: The `notDelegated` modifier prevents accidental upgrades to\n    /// an implementation that is a proxy contract.\n    function proxiableUUID() public view virtual notDelegated returns (bytes32) {\n        // This function must always return `_ERC1967_IMPLEMENTATION_SLOT` to comply with ERC1967.\n        return _ERC1967_IMPLEMENTATION_SLOT;\n    }\n\n    /// @dev Upgrades the proxy's implementation to `newImplementation`.\n    /// Emits a {Upgraded} event.\n    ///\n    /// Note: Passing in empty `data` skips the delegatecall to `newImplementation`.\n    function upgradeToAndCall(address newImplementation, bytes calldata data)\n        public\n        payable\n        virtual\n        onlyProxy\n    {\n        _authorizeUpgrade(newImplementation);\n        /// @solidity memory-safe-assembly\n        assembly {\n            newImplementation := shr(96, shl(96, newImplementation)) // Clears upper 96 bits.\n            mstore(0x00, returndatasize())\n            mstore(0x01, 0x52d1902d) // `proxiableUUID()`.\n            let s := _ERC1967_IMPLEMENTATION_SLOT\n            // Check if `newImplementation` implements `proxiableUUID` correctly.\n            if iszero(eq(mload(staticcall(gas(), newImplementation, 0x1d, 0x04, 0x01, 0x20)), s)) {\n                mstore(0x01, 0x55299b49) // `UpgradeFailed()`.\n                revert(0x1d, 0x04)\n            }\n            // Emit the {Upgraded} event.\n            log2(codesize(), 0x00, _UPGRADED_EVENT_SIGNATURE, newImplementation)\n            sstore(s, newImplementation) // Updates the implementation.\n\n            // Perform a delegatecall to `newImplementation` if `data` is non-empty.\n            if data.length {\n                // Forwards the `data` to `newImplementation` via delegatecall.\n                let m := mload(0x40)\n                calldatacopy(m, data.offset, data.length)\n                if iszero(delegatecall(gas(), newImplementation, m, data.length, codesize(), 0x00))\n                {\n                    // Bubble up the revert if the call reverts.\n                    returndatacopy(m, 0x00, returndatasize())\n                    revert(m, returndatasize())\n                }\n            }\n        }\n    }\n}\n"},"src/DepositWalletFactory.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity 0.8.34;\n\nimport {OwnableRoles} from \"@solady/src/auth/OwnableRoles.sol\";\nimport {Initializable} from \"@solady/src/utils/Initializable.sol\";\nimport {LibClone} from \"@solady/src/utils/LibClone.sol\";\nimport {UUPSUpgradeable} from \"@solady/src/utils/UUPSUpgradeable.sol\";\n\nimport {IDepositWallet, Batch} from \"@deposit-wallet/src/interfaces/IDepositWallet.sol\";\n\n/// @title DepositWalletFactoryErrors\n/// @author Polymarket\n/// @notice Custom errors for {DepositWalletFactory}.\nabstract contract DepositWalletFactoryErrors {\n    /// @notice Thrown when the caller does not have the admin role.\n    error OnlyAdmin();\n\n    /// @notice Thrown when the caller does not have the operator role.\n    error OnlyOperator();\n\n    /// @notice Thrown when paired input arrays have mismatched lengths.\n    error ArrayLengthMismatch();\n\n    /// @notice Thrown when the zero address is provided where a valid address is required.\n    error ZeroAddress();\n\n    /// @notice Thrown when an implementation has not been authorized.\n    error ImplementationNotAuthorized();\n\n    /// @notice Thrown when the provided timelock delay is zero or exceeds the maximum.\n    error InvalidTimelockDelay();\n}\n\n/// @title DepositWalletFactoryEvents\n/// @author Polymarket\n/// @notice Events emitted by {DepositWalletFactory}.\nabstract contract DepositWalletFactoryEvents {\n    /// @notice Emitted when a wallet implementation is added to the authorized set.\n    /// @param implementation The address of the authorized implementation.\n    event ImplementationAuthorized(address indexed implementation);\n\n    /// @notice Emitted when the default wallet implementation is updated.\n    /// @param Implementation The address of the new default implementation.\n    event ImplementationSet(address Implementation);\n\n    /// @notice Emitted when a wallet implementation is removed from the authorized set.\n    /// @param implementation The address of the unauthorized implementation.\n    event ImplementationUnauthorized(address indexed implementation);\n\n    /// @notice Emitted when the timelock delay is updated.\n    /// @param timelockDelay The new timelock delay in seconds.\n    event TimelockDelaySet(uint256 timelockDelay);\n\n    /// @notice Emitted when a new deposit wallet is deployed.\n    /// @param wallet The address of the newly deployed wallet proxy.\n    /// @param owner The initial owner of the wallet.\n    /// @param id The unique identifier assigned to the wallet.\n    /// @param implementation The implementation address used for the deployment.\n    event WalletDeployed(\n        address indexed wallet, address indexed owner, bytes32 indexed id, address implementation\n    );\n}\n\n/// @title DepositWalletFactory\n/// @author Polymarket\n/// @notice Factory contract for deploying and managing DepositWallet proxies.\n/// @dev Uses a three-tier role model:\n///      - **Owner**: can add/remove admins, manage implementations, and authorize UUPS upgrades\n///                   of the factory itself.\n///      - **Admin** (ROLE_0): can add/remove operators and configure the timelock delay.\n///      - **Operator** (ROLE_1): can deploy wallets and proxy batch executions.\n///\n///      Wallets are deployed as deterministic ERC-1967 proxies via {LibClone}.\ncontract DepositWalletFactory is\n    OwnableRoles,\n    Initializable,\n    UUPSUpgradeable,\n    DepositWalletFactoryErrors,\n    DepositWalletFactoryEvents\n{\n    /*--------------------------------------------------------------\n                                 STATE\n    --------------------------------------------------------------*/\n\n    /// @notice The default wallet implementation used for new deployments.\n    address public implementation;\n\n    /// @notice The delay in seconds that must elapse after pausing before the owner can\n    ///         execute paused-only operations on a wallet.\n    uint256 public timelockDelay;\n\n    /// @notice Tracks which implementation addresses are authorized for UUPS upgrades.\n    mapping(address => bool) public authorizedImplementation;\n\n    /*--------------------------------------------------------------\n                               CONSTANTS\n    --------------------------------------------------------------*/\n\n    /// @notice The maximum allowed timelock delay (7 days).\n    uint256 public constant MAX_TIMELOCK_DELAY = 7 days;\n\n    /*--------------------------------------------------------------\n                              CONSTRUCTOR\n    --------------------------------------------------------------*/\n\n    /// @dev Disables initializers on the implementation contract to prevent misuse.\n    constructor() {\n        _disableInitializers();\n    }\n\n    /*--------------------------------------------------------------\n                              INITIALIZER\n    --------------------------------------------------------------*/\n\n    /// @notice Initializes the factory with an owner, admin, implementation, and timelock delay.\n    /// @param _owner The address to set as the factory owner.\n    /// @param _admin The address to grant the initial admin role.\n    /// @param _implementation The default wallet implementation address.\n    /// @param _timelockDelay The initial timelock delay in seconds.\n    function initialize(\n        address _owner,\n        address _admin,\n        address _implementation,\n        uint256 _timelockDelay\n    ) external initializer {\n        _initializeOwner(_owner);\n        _setRoles(_admin, _ROLE_0);\n        _authorizeImplementation(_implementation);\n        _setImplementation(_implementation);\n        _setTimelockDelay(_timelockDelay);\n    }\n\n    /*--------------------------------------------------------------\n                               MODIFIERS\n    --------------------------------------------------------------*/\n\n    /// @dev Restricts access to addresses with the admin role (ROLE_0).\n    modifier onlyAdmin() {\n        require(hasAnyRole(msg.sender, _ROLE_0), OnlyAdmin());\n        _;\n    }\n\n    /// @dev Restricts access to addresses with the operator role (ROLE_1).\n    modifier onlyOperator() {\n        require(hasAnyRole(msg.sender, _ROLE_1), OnlyOperator());\n        _;\n    }\n\n    /*--------------------------------------------------------------\n                                  VIEW\n    --------------------------------------------------------------*/\n\n    /// @notice Returns whether the given address has the admin role.\n    /// @param _admin The address to check.\n    /// @return True if the address is an admin.\n    function isAdmin(address _admin) external view returns (bool) {\n        return hasAnyRole(_admin, _ROLE_0);\n    }\n\n    /// @notice Returns whether the given address has the operator role.\n    /// @param _operator The address to check.\n    /// @return True if the address is an operator.\n    function isOperator(address _operator) external view returns (bool) {\n        return hasAnyRole(_operator, _ROLE_1);\n    }\n\n    /// @notice Predicts the deterministic address of a wallet before deployment.\n    /// @param _implementation The implementation address to use for the prediction.\n    /// @param _id The unique identifier for the wallet.\n    /// @return The predicted wallet proxy address.\n    function predictWalletAddress(address _implementation, bytes32 _id)\n        external\n        view\n        returns (address)\n    {\n        bytes memory args = abi.encode(address(this), _id);\n\n        return LibClone.predictDeterministicAddressERC1967(\n            _implementation, args, keccak256(args), address(this)\n        );\n    }\n\n    /*--------------------------------------------------------------\n                             ONLY OPERATOR\n    --------------------------------------------------------------*/\n\n    /// @notice Deploys one or more deposit wallets with deterministic addresses.\n    /// @dev It is the operator's responsibility to ensure that each `_id` is unique.\n    ///      Duplicate IDs will cause the deployment to revert.\n    /// @param _owners The initial owner addresses for each wallet.\n    /// @param _ids The unique identifiers for each wallet.\n    function deploy(address[] calldata _owners, bytes32[] calldata _ids) external onlyOperator {\n        require(_owners.length == _ids.length, ArrayLengthMismatch());\n\n        address implementation_ = implementation;\n        require(authorizedImplementation[implementation_], ImplementationNotAuthorized());\n\n        for (uint256 i; i < _owners.length; ++i) {\n            bytes memory args = abi.encode(address(this), _ids[i]);\n\n            address wallet =\n                LibClone.deployDeterministicERC1967(implementation_, args, keccak256(args));\n\n            IDepositWallet(wallet).initialize(_owners[i]);\n\n            emit WalletDeployed(wallet, _owners[i], _ids[i], implementation_);\n        }\n    }\n\n    /// @notice Proxies batch execution to one or more wallets.\n    /// @dev Each batch is forwarded to its target wallet's `execute` function.\n    /// @param _batches The batches to execute.\n    /// @param _signatures The corresponding signatures for each batch.\n    function proxy(Batch[] calldata _batches, bytes[] calldata _signatures) external onlyOperator {\n        require(_batches.length == _signatures.length, ArrayLengthMismatch());\n        for (uint256 i; i < _batches.length; ++i) {\n            IDepositWallet(_batches[i].wallet).execute(_batches[i], _signatures[i]);\n        }\n    }\n\n    /*--------------------------------------------------------------\n                               ONLY ADMIN\n    --------------------------------------------------------------*/\n\n    /// @notice Grants the operator role to an address.\n    /// @param _operator The address to grant the operator role.\n    function addOperator(address _operator) external onlyAdmin {\n        _grantRoles(_operator, _ROLE_1);\n    }\n\n    /// @notice Removes the operator role from an address.\n    /// @param _operator The address to remove the operator role from.\n    function removeOperator(address _operator) external onlyAdmin {\n        _removeRoles(_operator, _ROLE_1);\n    }\n\n    /// @notice Sets the timelock delay for paused wallet operations.\n    /// @param _timelockDelay The new timelock delay in seconds.\n    function setTimelockDelay(uint256 _timelockDelay) external onlyAdmin {\n        _setTimelockDelay(_timelockDelay);\n    }\n\n    /*--------------------------------------------------------------\n                               ONLY OWNER\n    --------------------------------------------------------------*/\n\n    /// @notice Grants the admin role to an address.\n    /// @param _admin The address to grant the admin role.\n    function addAdmin(address _admin) external onlyOwner {\n        _grantRoles(_admin, _ROLE_0);\n    }\n\n    /// @notice Removes the admin role from an address.\n    /// @param _admin The address to remove the admin role from.\n    function removeAdmin(address _admin) external onlyOwner {\n        _removeRoles(_admin, _ROLE_0);\n    }\n\n    /// @notice Sets the default wallet implementation for new deployments.\n    /// @param _implementation The new default implementation address.\n    function setImplementation(address _implementation) external onlyOwner {\n        _setImplementation(_implementation);\n    }\n\n    /// @notice Authorizes an implementation address for wallet UUPS upgrades.\n    /// @param _implementation The implementation address to authorize.\n    function authorizeImplementation(address _implementation) external onlyOwner {\n        _authorizeImplementation(_implementation);\n    }\n\n    /// @notice Removes an implementation address from the authorized set.\n    /// @param _implementation The implementation address to unauthorize.\n    function unauthorizeImplementation(address _implementation) external onlyOwner {\n        authorizedImplementation[_implementation] = false;\n\n        emit ImplementationUnauthorized(_implementation);\n    }\n\n    /*--------------------------------------------------------------\n                               INTERNAL\n    --------------------------------------------------------------*/\n\n    /// @dev Authorizes UUPS upgrades of the factory. Restricted to the owner.\n    function _authorizeUpgrade(address) internal override onlyOwner {}\n\n    /// @notice Authorizes an implementation address and records it in the authorized set.\n    /// @param _implementation The implementation address to authorize (must not be `address(0)`).\n    function _authorizeImplementation(address _implementation) internal {\n        require(_implementation != address(0), ZeroAddress());\n        authorizedImplementation[_implementation] = true;\n\n        emit ImplementationAuthorized(_implementation);\n    }\n\n    /// @notice Sets the default wallet implementation for new deployments.\n    /// @param _implementation The new default implementation address (must be authorized).\n    function _setImplementation(address _implementation) internal {\n        require(authorizedImplementation[_implementation], ImplementationNotAuthorized());\n        implementation = _implementation;\n\n        emit ImplementationSet(_implementation);\n    }\n\n    /// @notice Sets the timelock delay for paused wallet operations.\n    /// @param _timelockDelay The new timelock delay in seconds.\n    function _setTimelockDelay(uint256 _timelockDelay) internal {\n        require(_timelockDelay > 0 && _timelockDelay <= MAX_TIMELOCK_DELAY, InvalidTimelockDelay());\n        timelockDelay = _timelockDelay;\n\n        emit TimelockDelaySet(_timelockDelay);\n    }\n}\n"},"src/libraries/Ownable.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.13;\n\nimport {ECDSA} from \"@solady/src/utils/ECDSA.sol\";\nimport {EIP712} from \"@solady/src/utils/EIP712.sol\";\n\nimport {Errors} from \"@deposit-wallet/src/Errors.sol\";\nimport {Events} from \"@deposit-wallet/src/Events.sol\";\n\n/// @title Ownable\n/// @author Polymarket\n/// @notice Two-step ownership management with EIP-712 signature-based handover.\n/// @dev Ownership transfers require the new owner to sign an `OwnershipHandover` EIP-712 message.\n///      This prevents accidental transfers to addresses that cannot interact with the wallet.\n///      Storage uses custom slots to avoid collisions in proxy-based deployments.\nabstract contract Ownable is EIP712, Errors, Events {\n    /*--------------------------------------------------------------\n                                 STATE\n    --------------------------------------------------------------*/\n\n    /// @dev Storage slot for the owner address. keccak256(\"DepositWallet.owner\") - 1\n    bytes32 internal constant _OWNER_SLOT = bytes32(uint256(keccak256(\"DepositWallet.owner\")) - 1);\n\n    /// @dev Storage slot for the pending owner address. keccak256(\"DepositWallet.pendingOwner\") - 1\n    bytes32 internal constant _PENDING_OWNER_SLOT =\n        bytes32(uint256(keccak256(\"DepositWallet.pendingOwner\")) - 1);\n\n    /// @dev EIP-712 typehash for the `OwnershipHandover` struct.\n    bytes32 private constant _OWNERSHIP_HANDOVER_TYPEHASH =\n        keccak256(\"OwnershipHandover(address newOwner,uint256 deadline)\");\n\n    /*--------------------------------------------------------------\n                                  VIEW\n    --------------------------------------------------------------*/\n\n    /// @notice Returns the current owner of the wallet.\n    /// @return result The owner address.\n    function owner() public view virtual returns (address result) {\n        bytes32 slot = _OWNER_SLOT;\n        assembly {\n            result := sload(slot)\n        }\n    }\n\n    /// @notice Returns the pending owner awaiting handover completion.\n    /// @return result The pending owner address, or `address(0)` if none.\n    function pendingOwner() public view virtual returns (address result) {\n        bytes32 slot = _PENDING_OWNER_SLOT;\n        assembly {\n            result := sload(slot)\n        }\n    }\n\n    /*--------------------------------------------------------------\n                              INTERNAL\n    --------------------------------------------------------------*/\n\n    /// @notice Sets the initial owner of the wallet.\n    /// @dev Should only be called once during initialization.\n    /// @param _newOwner The address to set as the initial owner.\n    function _initializeOwner(address _newOwner) internal virtual {\n        require(_newOwner != address(0), InvalidOwner());\n\n        bytes32 slot = _OWNER_SLOT;\n\n        assembly {\n            sstore(slot, _newOwner)\n        }\n\n        emit OwnershipTransferred(address(0), _newOwner);\n    }\n\n    /// @notice Replaces the current owner with a new address.\n    /// @param _newOwner The address of the new owner.\n    function _setOwner(address _newOwner) internal virtual {\n        address oldOwner = owner();\n        bytes32 slot = _OWNER_SLOT;\n\n        assembly {\n            sstore(slot, _newOwner)\n        }\n\n        emit OwnershipTransferred(oldOwner, _newOwner);\n    }\n\n    /// @notice Stores a new pending owner address.\n    /// @param _pendingOwner The address to set as the pending owner.\n    function _setPendingOwner(address _pendingOwner) internal virtual {\n        bytes32 slot = _PENDING_OWNER_SLOT;\n\n        assembly {\n            sstore(slot, _pendingOwner)\n        }\n    }\n\n    /// @notice Reverts if `msg.sender` is not the current owner.\n    function _checkOwner() internal view virtual {\n        require(msg.sender == owner(), Unauthorized());\n    }\n\n    /*--------------------------------------------------------------\n                           OWNERSHIP HANDOVER\n    --------------------------------------------------------------*/\n\n    /// @notice Initiates a two-step ownership transfer to `_newOwner`.\n    /// @dev Sets the pending owner and emits {OwnershipHandoverRequested}.\n    ///      The transfer must be completed by calling `completeOwnershipHandover` with\n    ///      a valid EIP-712 signature from `_newOwner`.\n    /// @param _newOwner The proposed new owner (must not be `address(0)`).\n    function _transferOwnership(address _newOwner) internal virtual {\n        require(_newOwner != address(0), InvalidOwner());\n\n        _setPendingOwner(_newOwner);\n\n        emit OwnershipHandoverRequested(_newOwner);\n    }\n\n    /// @notice Cancels any pending ownership handover.\n    /// @dev Reverts if there is no pending owner.\n    function _cancelOwnershipHandover() internal virtual {\n        address pending = pendingOwner();\n\n        require(pending != address(0), NoPendingOwner());\n\n        _setPendingOwner(address(0));\n\n        emit OwnershipHandoverCanceled(pending);\n    }\n\n    /// @notice Completes a two-step ownership handover using an EIP-712 signature from the pending\n    /// owner. @dev Validates the signature against the `OwnershipHandover` typehash and transfers\n    /// ownership.\n    /// @param _deadline The deadline timestamp included in the signed message.\n    /// @param _signature The EIP-712 signature from the pending owner.\n    function _completeOwnershipHandover(uint256 _deadline, bytes calldata _signature)\n        internal\n        virtual\n    {\n        // ensure _signature is still valid\n        require(block.timestamp <= _deadline, Expired());\n\n        address pending = pendingOwner();\n\n        // ensure there is a pending owner\n        require(pending != address(0), NoPendingOwner());\n\n        bytes32 structHash = keccak256(abi.encode(_OWNERSHIP_HANDOVER_TYPEHASH, pending, _deadline));\n        bytes32 digest = _hashTypedData(structHash);\n\n        // validate signature\n        require(ECDSA.recoverCalldata(digest, _signature) == pending, InvalidSignature());\n\n        address previousOwner = owner();\n\n        // update state\n        _setPendingOwner(address(0));\n        _setOwner(pending);\n\n        emit OwnershipHandoverCompleted(previousOwner, pending);\n    }\n}\n"},"src/libraries/SessionSignerLib.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.13;\n\n/// @dev Magic suffix bytes appended to a signature to indicate the presence of a session signer.\n/// Mirrors the ERC-6492 magic value to reuse the same detection mechanism.\nbytes32 constant SESSION_SIGNER_MAGIC_BYTES =\n    0x6492649264926492649264926492649264926492649264926492649264926492;\n\n/// @title SessionSignerLib\n/// @author Polymarket\n/// @notice Utilities for encoding and decoding session signer signatures.\n/// @dev Session signer signatures wrap a standard ECDSA signature with an address prefix\n///      and a trailing magic suffix, following the ERC-6492 envelope format.\nlibrary SessionSignerLib {\n    /// @notice Extracts the session signer address from a signature, if present.\n    /// @dev Returns `address(0)` if the signature does not contain the session signer magic suffix.\n    /// @param _signature The raw signature bytes (potentially wrapped with session signer data).\n    /// @return sessionSigner The extracted session signer address, or `address(0)` if none.\n    function extractSessionSigner(bytes calldata _signature)\n        internal\n        pure\n        returns (address sessionSigner)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Detects the ERC6492 wrapper if it exists.\n            // See: https://eips.ethereum.org/EIPS/eip-6492\n            if eq(\n                calldataload(add(_signature.offset, sub(_signature.length, 0x20))),\n                SESSION_SIGNER_MAGIC_BYTES\n            ) {\n                // the session signer is in the first 32 bytes of the signature\n                sessionSigner := calldataload(_signature.offset)\n            }\n        }\n    }\n\n    /// @notice Creates a session signer signature by wrapping an existing signature.\n    /// @dev Encodes the session signer address, a zero-bytes placeholder, the inner signature,\n    ///      and the magic suffix into a single byte array.\n    /// @param _sessionSigner The session signer address to encode.\n    /// @param _signature The inner ECDSA signature to wrap.\n    /// @return The wrapped session signer signature.\n    function getSessionSignerSignature(address _sessionSigner, bytes memory _signature)\n        internal\n        pure\n        returns (bytes memory)\n    {\n        return bytes.concat(\n            abi.encode(bytes32(uint256(uint160(_sessionSigner))), bytes32(0), _signature),\n            SESSION_SIGNER_MAGIC_BYTES\n        );\n    }\n}\n"},"src/libraries/WalletLib.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.13;\n\n/// @dev ERC-1271 magic value returned on successful signature validation.\n/// bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))\nbytes4 constant ERC1271_MAGIC_VALUE = 0x1626ba7e;\n\n/// @dev EIP-712 typehash for the `Call` struct.\nbytes32 constant CALL_TYPEHASH = keccak256(\"Call(address target,uint256 value,bytes data)\");\n\n/// @dev EIP-712 type name for the `Batch` struct, used in ERC-1271 nested signatures.\nstring constant BATCH_CONTENTS_NAME = \"Batch\";\n\n/// @dev EIP-712 type string for the `Batch` struct, including the nested `Call` type.\nstring constant BATCH_CONTENTS_TYPE =\n    \"Batch(address wallet,uint256 nonce,uint256 deadline,Call[] calls)Call(address target,uint256 value,bytes data)\";\n\n/// @dev EIP-712 typehash for the `Batch` struct.\nbytes32 constant BATCH_TYPEHASH = keccak256(bytes(BATCH_CONTENTS_TYPE));\n\n/// @notice A batch of calls to be executed by a DepositWallet.\n/// @dev Signed by the wallet owner or an authorized session signer using EIP-712.\nstruct Batch {\n    /// @dev The address of the wallet that will execute this batch.\n    address wallet;\n    /// @dev Replay-protection nonce; must equal the wallet's current nonce.\n    uint256 nonce;\n    /// @dev Timestamp after which the batch signature is no longer valid.\n    uint256 deadline;\n    /// @dev The ordered list of calls to execute.\n    Call[] calls;\n}\n\n/// @notice A single call within a batch.\nstruct Call {\n    /// @dev The target address to call.\n    address target;\n    /// @dev The ETH value to send with the call.\n    uint256 value;\n    /// @dev The calldata to send to the target.\n    bytes data;\n}\n\n/// @title WalletLib\n/// @author Polymarket\n/// @notice EIP-712 hashing utilities for `Batch` and `Call` structs.\nlibrary WalletLib {\n    /// @notice Computes the EIP-712 struct hash of a batch.\n    /// @param _batch The batch to hash.\n    /// @return The EIP-712 struct hash.\n    function hash(Batch memory _batch) internal pure returns (bytes32) {\n        return keccak256(\n            abi.encode(\n                BATCH_TYPEHASH, _batch.wallet, _batch.nonce, _batch.deadline, hash(_batch.calls)\n            )\n        );\n    }\n\n    /// @notice Computes the EIP-712 array hash of an array of calls.\n    /// @param _calls The calls to hash.\n    /// @return The keccak256 hash of the concatenated individual call hashes.\n    function hash(Call[] memory _calls) internal pure returns (bytes32) {\n        bytes32[] memory hashes = new bytes32[](_calls.length);\n        for (uint256 i; i < _calls.length; i++) {\n            hashes[i] = hash(_calls[i]);\n        }\n        return keccak256(abi.encodePacked(hashes));\n    }\n\n    /// @notice Computes the EIP-712 struct hash of a single call.\n    /// @param _call The call to hash.\n    /// @return The EIP-712 struct hash.\n    function hash(Call memory _call) internal pure returns (bytes32) {\n        return keccak256(\n            abi.encode(\n                CALL_TYPEHASH,\n                _call.target,\n                _call.value,\n                keccak256(_call.data) // bytes fields must be hashed\n            )\n        );\n    }\n}\n"},"lib/solady/src/utils/EIP712.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Contract for EIP-712 typed structured data hashing and signing.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/EIP712.sol)\n/// @author Modified from Solbase (https://github.com/Sol-DAO/solbase/blob/main/src/utils/EIP712.sol)\n/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/cryptography/EIP712.sol)\n///\n/// @dev Note, this implementation:\n/// - Uses `address(this)` for the `verifyingContract` field.\n/// - Does NOT use the optional EIP-712 salt.\n/// - Does NOT use any EIP-712 extensions.\n/// This is for simplicity and to save gas.\n/// If you need to customize, please fork / modify accordingly.\nabstract contract EIP712 {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                  CONSTANTS AND IMMUTABLES                  */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev `keccak256(\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\")`.\n    bytes32 internal constant _DOMAIN_TYPEHASH =\n        0x8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f;\n\n    /// @dev `keccak256(\"EIP712Domain(string name,string version,address verifyingContract)\")`.\n    /// This is only used in `_hashTypedDataSansChainId`.\n    bytes32 internal constant _DOMAIN_TYPEHASH_SANS_CHAIN_ID =\n        0x91ab3d17e3a50a9d89e63fd30b92be7f5336b03b287bb946787a83a9d62a2766;\n\n    /// @dev `keccak256(\"EIP712Domain(string name,string version)\")`.\n    /// This is only used in `_hashTypedDataSansChainIdAndVerifyingContract`.\n    bytes32 internal constant _DOMAIN_TYPEHASH_SANS_CHAIN_ID_AND_VERIFYING_CONTRACT =\n        0xb03948446334eb9b2196d5eb166f69b9d49403eb4a12f36de8d3f9f3cb8e15c3;\n\n    /// @dev `keccak256(\"EIP712Domain(string name,string version,uint256 chainId)\")`.\n    /// This is only used in `_hashTypedDataSansVerifyingContract`.\n    bytes32 internal constant _DOMAIN_TYPEHASH_SANS_VERIFYING_CONTRACT =\n        0xc2f8787176b8ac6bf7215b4adcc1e069bf4ab82d9ab1df05a57a91d425935b6e;\n\n    uint256 private immutable _cachedThis;\n    uint256 private immutable _cachedChainId;\n    bytes32 private immutable _cachedNameHash;\n    bytes32 private immutable _cachedVersionHash;\n    bytes32 private immutable _cachedDomainSeparator;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                        CONSTRUCTOR                         */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Cache the hashes for cheaper runtime gas costs.\n    /// In the case of upgradeable contracts (i.e. proxies),\n    /// or if the chain id changes due to a hard fork,\n    /// the domain separator will be seamlessly calculated on-the-fly.\n    constructor() {\n        _cachedThis = uint256(uint160(address(this)));\n        _cachedChainId = block.chainid;\n\n        string memory name;\n        string memory version;\n        if (!_domainNameAndVersionMayChange()) (name, version) = _domainNameAndVersion();\n        bytes32 nameHash = _domainNameAndVersionMayChange() ? bytes32(0) : keccak256(bytes(name));\n        bytes32 versionHash =\n            _domainNameAndVersionMayChange() ? bytes32(0) : keccak256(bytes(version));\n        _cachedNameHash = nameHash;\n        _cachedVersionHash = versionHash;\n\n        bytes32 separator;\n        if (!_domainNameAndVersionMayChange()) {\n            /// @solidity memory-safe-assembly\n            assembly {\n                let m := mload(0x40) // Load the free memory pointer.\n                mstore(m, _DOMAIN_TYPEHASH)\n                mstore(add(m, 0x20), nameHash)\n                mstore(add(m, 0x40), versionHash)\n                mstore(add(m, 0x60), chainid())\n                mstore(add(m, 0x80), address())\n                separator := keccak256(m, 0xa0)\n            }\n        }\n        _cachedDomainSeparator = separator;\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                   FUNCTIONS TO OVERRIDE                    */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Please override this function to return the domain name and version.\n    /// ```\n    ///     function _domainNameAndVersion()\n    ///         internal\n    ///         pure\n    ///         virtual\n    ///         returns (string memory name, string memory version)\n    ///     {\n    ///         name = \"Solady\";\n    ///         version = \"1\";\n    ///     }\n    /// ```\n    ///\n    /// Note: If the returned result may change after the contract has been deployed,\n    /// you must override `_domainNameAndVersionMayChange()` to return true.\n    function _domainNameAndVersion()\n        internal\n        view\n        virtual\n        returns (string memory name, string memory version);\n\n    /// @dev Returns if `_domainNameAndVersion()` may change\n    /// after the contract has been deployed (i.e. after the constructor).\n    /// Default: false.\n    function _domainNameAndVersionMayChange() internal pure virtual returns (bool result) {}\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     HASHING OPERATIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns the EIP-712 domain separator.\n    function _domainSeparator() internal view virtual returns (bytes32 separator) {\n        if (_domainNameAndVersionMayChange()) {\n            separator = _buildDomainSeparator();\n        } else {\n            separator = _cachedDomainSeparator;\n            if (_cachedDomainSeparatorInvalidated()) separator = _buildDomainSeparator();\n        }\n    }\n\n    /// @dev Returns the hash of the fully encoded EIP-712 message for this domain,\n    /// given `structHash`, as defined in\n    /// https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct.\n    ///\n    /// The hash can be used together with {ECDSA-recover} to obtain the signer of a message:\n    /// ```\n    ///     bytes32 digest = _hashTypedData(keccak256(abi.encode(\n    ///         keccak256(\"Mail(address to,string contents)\"),\n    ///         mailTo,\n    ///         keccak256(bytes(mailContents))\n    ///     )));\n    ///     address signer = ECDSA.recover(digest, signature);\n    /// ```\n    function _hashTypedData(bytes32 structHash) internal view virtual returns (bytes32 digest) {\n        // We will use `digest` to store the domain separator to save a bit of gas.\n        if (_domainNameAndVersionMayChange()) {\n            digest = _buildDomainSeparator();\n        } else {\n            digest = _cachedDomainSeparator;\n            if (_cachedDomainSeparatorInvalidated()) digest = _buildDomainSeparator();\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute the digest.\n            mstore(0x00, 0x1901000000000000) // Store \"\\x19\\x01\".\n            mstore(0x1a, digest) // Store the domain separator.\n            mstore(0x3a, structHash) // Store the struct hash.\n            digest := keccak256(0x18, 0x42)\n            // Restore the part of the free memory slot that was overwritten.\n            mstore(0x3a, 0)\n        }\n    }\n\n    /// @dev Variant of `_hashTypedData` that excludes the chain ID.\n    /// Included for the niche use case of cross-chain workflows.\n    function _hashTypedDataSansChainId(bytes32 structHash)\n        internal\n        view\n        virtual\n        returns (bytes32 digest)\n    {\n        (string memory name, string memory version) = _domainNameAndVersion();\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Load the free memory pointer.\n            mstore(0x00, _DOMAIN_TYPEHASH_SANS_CHAIN_ID)\n            mstore(0x20, keccak256(add(name, 0x20), mload(name)))\n            mstore(0x40, keccak256(add(version, 0x20), mload(version)))\n            mstore(0x60, address())\n            // Compute the digest.\n            mstore(0x20, keccak256(0x00, 0x80)) // Store the domain separator.\n            mstore(0x00, 0x1901) // Store \"\\x19\\x01\".\n            mstore(0x40, structHash) // Store the struct hash.\n            digest := keccak256(0x1e, 0x42)\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero pointer.\n        }\n    }\n\n    /// @dev Variant of `_hashTypedData` that excludes the chain ID and verifying contract.\n    /// Included for the niche use case of cross-chain and multi-verifier workflows.\n    function _hashTypedDataSansChainIdAndVerifyingContract(bytes32 structHash)\n        internal\n        view\n        virtual\n        returns (bytes32 digest)\n    {\n        (string memory name, string memory version) = _domainNameAndVersion();\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Load the free memory pointer.\n            mstore(0x00, _DOMAIN_TYPEHASH_SANS_CHAIN_ID_AND_VERIFYING_CONTRACT)\n            mstore(0x20, keccak256(add(name, 0x20), mload(name)))\n            mstore(0x40, keccak256(add(version, 0x20), mload(version)))\n            // Compute the digest.\n            mstore(0x20, keccak256(0x00, 0x60)) // Store the domain separator.\n            mstore(0x00, 0x1901) // Store \"\\x19\\x01\".\n            mstore(0x40, structHash) // Store the struct hash.\n            digest := keccak256(0x1e, 0x42)\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero pointer.\n        }\n    }\n\n    /// @dev Variant of `_hashTypedData` that excludes the chain ID and verifying contract.\n    /// Included for the niche use case of multi-verifier workflows.\n    function _hashTypedDataSansVerifyingContract(bytes32 structHash)\n        internal\n        view\n        virtual\n        returns (bytes32 digest)\n    {\n        (string memory name, string memory version) = _domainNameAndVersion();\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Load the free memory pointer.\n            mstore(0x00, _DOMAIN_TYPEHASH_SANS_VERIFYING_CONTRACT)\n            mstore(0x20, keccak256(add(name, 0x20), mload(name)))\n            mstore(0x40, keccak256(add(version, 0x20), mload(version)))\n            mstore(0x60, chainid())\n            // Compute the digest.\n            mstore(0x20, keccak256(0x00, 0x80)) // Store the domain separator.\n            mstore(0x00, 0x1901) // Store \"\\x19\\x01\".\n            mstore(0x40, structHash) // Store the struct hash.\n            digest := keccak256(0x1e, 0x42)\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero pointer.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                    EIP-5267 OPERATIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev See: https://eips.ethereum.org/EIPS/eip-5267\n    function eip712Domain()\n        public\n        view\n        virtual\n        returns (\n            bytes1 fields,\n            string memory name,\n            string memory version,\n            uint256 chainId,\n            address verifyingContract,\n            bytes32 salt,\n            uint256[] memory extensions\n        )\n    {\n        fields = hex\"0f\"; // `0b01111`.\n        (name, version) = _domainNameAndVersion();\n        chainId = block.chainid;\n        verifyingContract = address(this);\n        salt = salt; // `bytes32(0)`.\n        extensions = extensions; // `new uint256[](0)`.\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      PRIVATE HELPERS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns the EIP-712 domain separator.\n    function _buildDomainSeparator() private view returns (bytes32 separator) {\n        // We will use `separator` to store the name hash to save a bit of gas.\n        bytes32 versionHash;\n        if (_domainNameAndVersionMayChange()) {\n            (string memory name, string memory version) = _domainNameAndVersion();\n            separator = keccak256(bytes(name));\n            versionHash = keccak256(bytes(version));\n        } else {\n            separator = _cachedNameHash;\n            versionHash = _cachedVersionHash;\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Load the free memory pointer.\n            mstore(m, _DOMAIN_TYPEHASH)\n            mstore(add(m, 0x20), separator) // Name hash.\n            mstore(add(m, 0x40), versionHash)\n            mstore(add(m, 0x60), chainid())\n            mstore(add(m, 0x80), address())\n            separator := keccak256(m, 0xa0)\n        }\n    }\n\n    /// @dev Returns if the cached domain separator has been invalidated.\n    function _cachedDomainSeparatorInvalidated() private view returns (bool result) {\n        uint256 cachedChainId = _cachedChainId;\n        uint256 cachedThis = _cachedThis;\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := iszero(and(eq(chainid(), cachedChainId), eq(address(), cachedThis)))\n        }\n    }\n}\n"},"lib/solady/src/utils/SignatureCheckerLib.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Signature verification helper that supports both ECDSA signatures from EOAs\n/// and ERC1271 signatures from smart contract wallets like Argent and Gnosis safe.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/SignatureCheckerLib.sol)\n/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/cryptography/SignatureChecker.sol)\n///\n/// @dev Note:\n/// - The signature checking functions use the ecrecover precompile (0x1).\n/// - The `bytes memory signature` variants use the identity precompile (0x4)\n///   to copy memory internally.\n/// - Unlike ECDSA signatures, contract signatures are revocable.\n/// - As of Solady version 0.0.134, all `bytes signature` variants accept both\n///   regular 65-byte `(r, s, v)` and EIP-2098 `(r, vs)` short form signatures.\n///   See: https://eips.ethereum.org/EIPS/eip-2098\n///   This is for calldata efficiency on smart accounts prevalent on L2s.\n///\n/// WARNING! Do NOT use signatures as unique identifiers:\n/// - Use a nonce in the digest to prevent replay attacks on the same contract.\n/// - Use EIP-712 for the digest to prevent replay attacks across different chains and contracts.\n///   EIP-712 also enables readable signing of typed data for better user safety.\n/// This implementation does NOT check if a signature is non-malleable.\nlibrary SignatureCheckerLib {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*               SIGNATURE CHECKING OPERATIONS                */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns whether `signature` is valid for `signer` and `hash`.\n    /// If `signer.code.length == 0`, then validate with `ecrecover`, else\n    /// it will validate with ERC1271 on `signer`.\n    function isValidSignatureNow(address signer, bytes32 hash, bytes memory signature)\n        internal\n        view\n        returns (bool isValid)\n    {\n        if (signer == address(0)) return isValid;\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            for {} 1 {} {\n                if iszero(extcodesize(signer)) {\n                    switch mload(signature)\n                    case 64 {\n                        let vs := mload(add(signature, 0x40))\n                        mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                        mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                    }\n                    case 65 {\n                        mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`.\n                        mstore(0x60, mload(add(signature, 0x40))) // `s`.\n                    }\n                    default { break }\n                    mstore(0x00, hash)\n                    mstore(0x40, mload(add(signature, 0x20))) // `r`.\n                    let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n                    isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n                    mstore(0x60, 0) // Restore the zero slot.\n                    mstore(0x40, m) // Restore the free memory pointer.\n                    break\n                }\n                let f := shl(224, 0x1626ba7e)\n                mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n                mstore(add(m, 0x04), hash)\n                let d := add(m, 0x24)\n                mstore(d, 0x40) // The offset of the `signature` in the calldata.\n                // Copy the `signature` over.\n                let n := add(0x20, mload(signature))\n                let copied := staticcall(gas(), 4, signature, n, add(m, 0x44), n)\n                isValid := staticcall(gas(), signer, m, add(returndatasize(), 0x44), d, 0x20)\n                isValid := and(eq(mload(d), f), and(isValid, copied))\n                break\n            }\n        }\n    }\n\n    /// @dev Returns whether `signature` is valid for `signer` and `hash`.\n    /// If `signer.code.length == 0`, then validate with `ecrecover`, else\n    /// it will validate with ERC1271 on `signer`.\n    function isValidSignatureNowCalldata(address signer, bytes32 hash, bytes calldata signature)\n        internal\n        view\n        returns (bool isValid)\n    {\n        if (signer == address(0)) return isValid;\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            for {} 1 {} {\n                if iszero(extcodesize(signer)) {\n                    switch signature.length\n                    case 64 {\n                        let vs := calldataload(add(signature.offset, 0x20))\n                        mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                        mstore(0x40, calldataload(signature.offset)) // `r`.\n                        mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                    }\n                    case 65 {\n                        mstore(0x20, byte(0, calldataload(add(signature.offset, 0x40)))) // `v`.\n                        calldatacopy(0x40, signature.offset, 0x40) // `r`, `s`.\n                    }\n                    default { break }\n                    mstore(0x00, hash)\n                    let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n                    isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n                    mstore(0x60, 0) // Restore the zero slot.\n                    mstore(0x40, m) // Restore the free memory pointer.\n                    break\n                }\n                let f := shl(224, 0x1626ba7e)\n                mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n                mstore(add(m, 0x04), hash)\n                let d := add(m, 0x24)\n                mstore(d, 0x40) // The offset of the `signature` in the calldata.\n                mstore(add(m, 0x44), signature.length)\n                // Copy the `signature` over.\n                calldatacopy(add(m, 0x64), signature.offset, signature.length)\n                isValid := staticcall(gas(), signer, m, add(signature.length, 0x64), d, 0x20)\n                isValid := and(eq(mload(d), f), isValid)\n                break\n            }\n        }\n    }\n\n    /// @dev Returns whether the signature (`r`, `vs`) is valid for `signer` and `hash`.\n    /// If `signer.code.length == 0`, then validate with `ecrecover`, else\n    /// it will validate with ERC1271 on `signer`.\n    function isValidSignatureNow(address signer, bytes32 hash, bytes32 r, bytes32 vs)\n        internal\n        view\n        returns (bool isValid)\n    {\n        if (signer == address(0)) return isValid;\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            for {} 1 {} {\n                if iszero(extcodesize(signer)) {\n                    mstore(0x00, hash)\n                    mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                    mstore(0x40, r) // `r`.\n                    mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                    let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n                    isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n                    mstore(0x60, 0) // Restore the zero slot.\n                    mstore(0x40, m) // Restore the free memory pointer.\n                    break\n                }\n                let f := shl(224, 0x1626ba7e)\n                mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n                mstore(add(m, 0x04), hash)\n                let d := add(m, 0x24)\n                mstore(d, 0x40) // The offset of the `signature` in the calldata.\n                mstore(add(m, 0x44), 65) // Length of the signature.\n                mstore(add(m, 0x64), r) // `r`.\n                mstore(add(m, 0x84), shr(1, shl(1, vs))) // `s`.\n                mstore8(add(m, 0xa4), add(shr(255, vs), 27)) // `v`.\n                isValid := staticcall(gas(), signer, m, 0xa5, d, 0x20)\n                isValid := and(eq(mload(d), f), isValid)\n                break\n            }\n        }\n    }\n\n    /// @dev Returns whether the signature (`v`, `r`, `s`) is valid for `signer` and `hash`.\n    /// If `signer.code.length == 0`, then validate with `ecrecover`, else\n    /// it will validate with ERC1271 on `signer`.\n    function isValidSignatureNow(address signer, bytes32 hash, uint8 v, bytes32 r, bytes32 s)\n        internal\n        view\n        returns (bool isValid)\n    {\n        if (signer == address(0)) return isValid;\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            for {} 1 {} {\n                if iszero(extcodesize(signer)) {\n                    mstore(0x00, hash)\n                    mstore(0x20, and(v, 0xff)) // `v`.\n                    mstore(0x40, r) // `r`.\n                    mstore(0x60, s) // `s`.\n                    let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n                    isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n                    mstore(0x60, 0) // Restore the zero slot.\n                    mstore(0x40, m) // Restore the free memory pointer.\n                    break\n                }\n                let f := shl(224, 0x1626ba7e)\n                mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n                mstore(add(m, 0x04), hash)\n                let d := add(m, 0x24)\n                mstore(d, 0x40) // The offset of the `signature` in the calldata.\n                mstore(add(m, 0x44), 65) // Length of the signature.\n                mstore(add(m, 0x64), r) // `r`.\n                mstore(add(m, 0x84), s) // `s`.\n                mstore8(add(m, 0xa4), v) // `v`.\n                isValid := staticcall(gas(), signer, m, 0xa5, d, 0x20)\n                isValid := and(eq(mload(d), f), isValid)\n                break\n            }\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     ERC1271 OPERATIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // Note: These ERC1271 operations do NOT have an ECDSA fallback.\n\n    /// @dev Returns whether `signature` is valid for `hash` for an ERC1271 `signer` contract.\n    function isValidERC1271SignatureNow(address signer, bytes32 hash, bytes memory signature)\n        internal\n        view\n        returns (bool isValid)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let f := shl(224, 0x1626ba7e)\n            mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n            mstore(add(m, 0x04), hash)\n            let d := add(m, 0x24)\n            mstore(d, 0x40) // The offset of the `signature` in the calldata.\n            // Copy the `signature` over.\n            let n := add(0x20, mload(signature))\n            let copied := staticcall(gas(), 4, signature, n, add(m, 0x44), n)\n            isValid := staticcall(gas(), signer, m, add(returndatasize(), 0x44), d, 0x20)\n            isValid := and(eq(mload(d), f), and(isValid, copied))\n        }\n    }\n\n    /// @dev Returns whether `signature` is valid for `hash` for an ERC1271 `signer` contract.\n    function isValidERC1271SignatureNowCalldata(\n        address signer,\n        bytes32 hash,\n        bytes calldata signature\n    ) internal view returns (bool isValid) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let f := shl(224, 0x1626ba7e)\n            mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n            mstore(add(m, 0x04), hash)\n            let d := add(m, 0x24)\n            mstore(d, 0x40) // The offset of the `signature` in the calldata.\n            mstore(add(m, 0x44), signature.length)\n            // Copy the `signature` over.\n            calldatacopy(add(m, 0x64), signature.offset, signature.length)\n            isValid := staticcall(gas(), signer, m, add(signature.length, 0x64), d, 0x20)\n            isValid := and(eq(mload(d), f), isValid)\n        }\n    }\n\n    /// @dev Returns whether the signature (`r`, `vs`) is valid for `hash`\n    /// for an ERC1271 `signer` contract.\n    function isValidERC1271SignatureNow(address signer, bytes32 hash, bytes32 r, bytes32 vs)\n        internal\n        view\n        returns (bool isValid)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let f := shl(224, 0x1626ba7e)\n            mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n            mstore(add(m, 0x04), hash)\n            let d := add(m, 0x24)\n            mstore(d, 0x40) // The offset of the `signature` in the calldata.\n            mstore(add(m, 0x44), 65) // Length of the signature.\n            mstore(add(m, 0x64), r) // `r`.\n            mstore(add(m, 0x84), shr(1, shl(1, vs))) // `s`.\n            mstore8(add(m, 0xa4), add(shr(255, vs), 27)) // `v`.\n            isValid := staticcall(gas(), signer, m, 0xa5, d, 0x20)\n            isValid := and(eq(mload(d), f), isValid)\n        }\n    }\n\n    /// @dev Returns whether the signature (`v`, `r`, `s`) is valid for `hash`\n    /// for an ERC1271 `signer` contract.\n    function isValidERC1271SignatureNow(address signer, bytes32 hash, uint8 v, bytes32 r, bytes32 s)\n        internal\n        view\n        returns (bool isValid)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let f := shl(224, 0x1626ba7e)\n            mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n            mstore(add(m, 0x04), hash)\n            let d := add(m, 0x24)\n            mstore(d, 0x40) // The offset of the `signature` in the calldata.\n            mstore(add(m, 0x44), 65) // Length of the signature.\n            mstore(add(m, 0x64), r) // `r`.\n            mstore(add(m, 0x84), s) // `s`.\n            mstore8(add(m, 0xa4), v) // `v`.\n            isValid := staticcall(gas(), signer, m, 0xa5, d, 0x20)\n            isValid := and(eq(mload(d), f), isValid)\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     ERC6492 OPERATIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // Note: These ERC6492 operations now include an ECDSA fallback at the very end.\n    // The calldata variants are excluded for brevity.\n\n    /// @dev Returns whether `signature` is valid for `hash`.\n    /// If the signature is postfixed with the ERC6492 magic number, it will attempt to\n    /// deploy / prepare the `signer` smart account before doing a regular ERC1271 check.\n    /// Note: This function is NOT reentrancy safe.\n    /// The verifier must be deployed.\n    /// Otherwise, the function will return false if `signer` is not yet deployed / prepared.\n    /// See: https://gist.github.com/Vectorized/011d6becff6e0a73e42fe100f8d7ef04\n    /// With a dedicated verifier, this function is safe to use in contracts\n    /// that have been granted special permissions.\n    function isValidERC6492SignatureNowAllowSideEffects(\n        address signer,\n        bytes32 hash,\n        bytes memory signature\n    ) internal returns (bool isValid) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            function callIsValidSignature(signer_, hash_, signature_) -> _isValid {\n                let m_ := mload(0x40)\n                let f_ := shl(224, 0x1626ba7e)\n                mstore(m_, f_) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n                mstore(add(m_, 0x04), hash_)\n                let d_ := add(m_, 0x24)\n                mstore(d_, 0x40) // The offset of the `signature` in the calldata.\n                let n_ := add(0x20, mload(signature_))\n                let copied_ := staticcall(gas(), 4, signature_, n_, add(m_, 0x44), n_)\n                _isValid := staticcall(gas(), signer_, m_, add(returndatasize(), 0x44), d_, 0x20)\n                _isValid := and(eq(mload(d_), f_), and(_isValid, copied_))\n            }\n            let noCode := iszero(extcodesize(signer))\n            let n := mload(signature)\n            for {} 1 {} {\n                if iszero(eq(mload(add(signature, n)), mul(0x6492, div(not(isValid), 0xffff)))) {\n                    if iszero(noCode) { isValid := callIsValidSignature(signer, hash, signature) }\n                    break\n                }\n                if iszero(noCode) {\n                    let o := add(signature, 0x20) // Signature bytes.\n                    isValid := callIsValidSignature(signer, hash, add(o, mload(add(o, 0x40))))\n                    if isValid { break }\n                }\n                let m := mload(0x40)\n                mstore(m, signer)\n                mstore(add(m, 0x20), hash)\n                pop(\n                    call(\n                        gas(), // Remaining gas.\n                        0x0000bc370E4DC924F427d84e2f4B9Ec81626ba7E, // Non-reverting verifier.\n                        0, // Send zero ETH.\n                        m, // Start of memory.\n                        add(returndatasize(), 0x40), // Length of calldata in memory.\n                        staticcall(gas(), 4, add(signature, 0x20), n, add(m, 0x40), n), // 1.\n                        0x00 // Length of returndata to write.\n                    )\n                )\n                isValid := returndatasize()\n                break\n            }\n            // Do `ecrecover` fallback if `noCode && !isValid`.\n            for {} gt(noCode, isValid) {} {\n                switch n\n                case 64 {\n                    let vs := mload(add(signature, 0x40))\n                    mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                    mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                }\n                case 65 {\n                    mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`.\n                    mstore(0x60, mload(add(signature, 0x40))) // `s`.\n                }\n                default { break }\n                let m := mload(0x40)\n                mstore(0x00, hash)\n                mstore(0x40, mload(add(signature, 0x20))) // `r`.\n                let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n                isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n                mstore(0x60, 0) // Restore the zero slot.\n                mstore(0x40, m) // Restore the free memory pointer.\n                break\n            }\n        }\n    }\n\n    /// @dev Returns whether `signature` is valid for `hash`.\n    /// If the signature is postfixed with the ERC6492 magic number, it will attempt\n    /// to use a reverting verifier to deploy / prepare the `signer` smart account\n    /// and do a `isValidSignature` check via the reverting verifier.\n    /// Note: This function is reentrancy safe.\n    /// The reverting verifier must be deployed.\n    /// Otherwise, the function will return false if `signer` is not yet deployed / prepared.\n    /// See: https://gist.github.com/Vectorized/846a474c855eee9e441506676800a9ad\n    function isValidERC6492SignatureNow(address signer, bytes32 hash, bytes memory signature)\n        internal\n        returns (bool isValid)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            function callIsValidSignature(signer_, hash_, signature_) -> _isValid {\n                let m_ := mload(0x40)\n                let f_ := shl(224, 0x1626ba7e)\n                mstore(m_, f_) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n                mstore(add(m_, 0x04), hash_)\n                let d_ := add(m_, 0x24)\n                mstore(d_, 0x40) // The offset of the `signature` in the calldata.\n                let n_ := add(0x20, mload(signature_))\n                let copied_ := staticcall(gas(), 4, signature_, n_, add(m_, 0x44), n_)\n                _isValid := staticcall(gas(), signer_, m_, add(returndatasize(), 0x44), d_, 0x20)\n                _isValid := and(eq(mload(d_), f_), and(_isValid, copied_))\n            }\n            let noCode := iszero(extcodesize(signer))\n            let n := mload(signature)\n            for {} 1 {} {\n                if iszero(eq(mload(add(signature, n)), mul(0x6492, div(not(isValid), 0xffff)))) {\n                    if iszero(noCode) { isValid := callIsValidSignature(signer, hash, signature) }\n                    break\n                }\n                if iszero(noCode) {\n                    let o := add(signature, 0x20) // Signature bytes.\n                    isValid := callIsValidSignature(signer, hash, add(o, mload(add(o, 0x40))))\n                    if isValid { break }\n                }\n                let m := mload(0x40)\n                mstore(m, signer)\n                mstore(add(m, 0x20), hash)\n                let willBeZeroIfRevertingVerifierExists :=\n                    call(\n                        gas(), // Remaining gas.\n                        0x00007bd799e4A591FeA53f8A8a3E9f931626Ba7e, // Reverting verifier.\n                        0, // Send zero ETH.\n                        m, // Start of memory.\n                        add(returndatasize(), 0x40), // Length of calldata in memory.\n                        staticcall(gas(), 4, add(signature, 0x20), n, add(m, 0x40), n), // 1.\n                        0x00 // Length of returndata to write.\n                    )\n                isValid := gt(returndatasize(), willBeZeroIfRevertingVerifierExists)\n                break\n            }\n            // Do `ecrecover` fallback if `noCode && !isValid`.\n            for {} gt(noCode, isValid) {} {\n                switch n\n                case 64 {\n                    let vs := mload(add(signature, 0x40))\n                    mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                    mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                }\n                case 65 {\n                    mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`.\n                    mstore(0x60, mload(add(signature, 0x40))) // `s`.\n                }\n                default { break }\n                let m := mload(0x40)\n                mstore(0x00, hash)\n                mstore(0x40, mload(add(signature, 0x20))) // `r`.\n                let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n                isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n                mstore(0x60, 0) // Restore the zero slot.\n                mstore(0x40, m) // Restore the free memory pointer.\n                break\n            }\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     HASHING OPERATIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns an Ethereum Signed Message, created from a `hash`.\n    /// This produces a hash corresponding to the one signed with the\n    /// [`eth_sign`](https://eth.wiki/json-rpc/API#eth_sign)\n    /// JSON-RPC method as part of EIP-191.\n    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x20, hash) // Store into scratch space for keccak256.\n            mstore(0x00, \"\\x00\\x00\\x00\\x00\\x19Ethereum Signed Message:\\n32\") // 28 bytes.\n            result := keccak256(0x04, 0x3c) // `32 * 2 - (32 - 28) = 60 = 0x3c`.\n        }\n    }\n\n    /// @dev Returns an Ethereum Signed Message, created from `s`.\n    /// This produces a hash corresponding to the one signed with the\n    /// [`eth_sign`](https://eth.wiki/json-rpc/API#eth_sign)\n    /// JSON-RPC method as part of EIP-191.\n    /// Note: Supports lengths of `s` up to 999999 bytes.\n    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let sLength := mload(s)\n            let o := 0x20\n            mstore(o, \"\\x19Ethereum Signed Message:\\n\") // 26 bytes, zero-right-padded.\n            mstore(0x00, 0x00)\n            // Convert the `s.length` to ASCII decimal representation: `base10(s.length)`.\n            for { let temp := sLength } 1 {} {\n                o := sub(o, 1)\n                mstore8(o, add(48, mod(temp, 10)))\n                temp := div(temp, 10)\n                if iszero(temp) { break }\n            }\n            let n := sub(0x3a, o) // Header length: `26 + 32 - o`.\n            // Throw an out-of-offset error (consumes all gas) if the header exceeds 32 bytes.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0x20))\n            mstore(s, or(mload(0x00), mload(n))) // Temporarily store the header.\n            result := keccak256(add(s, sub(0x20, n)), add(n, sLength))\n            mstore(s, sLength) // Restore the length.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                   EMPTY CALLDATA HELPERS                   */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns an empty calldata bytes.\n    function emptySignature() internal pure returns (bytes calldata signature) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            signature.length := 0\n        }\n    }\n}\n"},"lib/solady/src/utils/CallContextChecker.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Call context checker mixin.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/CallContextChecker.sol)\ncontract CallContextChecker {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The call is from an unauthorized call context.\n    error UnauthorizedCallContext();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         IMMUTABLES                         */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev For checking if the context is a delegate call.\n    ///\n    /// Note: To enable use cases with an immutable default implementation in the bytecode,\n    /// (see: ERC6551Proxy), we don't require that the proxy address must match the\n    /// value stored in the implementation slot, which may not be initialized.\n    uint256 private immutable __self = uint256(uint160(address(this)));\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                    CALL CONTEXT CHECKS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // A proxy call can be either via a `delegatecall` to an implementation,\n    // or a 7702 call on an authority that points to a delegation.\n\n    /// @dev Returns whether the current call context is on a EIP7702 authority\n    /// (i.e. externally owned account).\n    function _onEIP7702Authority() internal view virtual returns (bool result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            extcodecopy(address(), 0x00, 0x00, 0x20)\n            // Note: Checking that it starts with hex\"ef01\" is the most general and futureproof.\n            // 7702 bytecode is `abi.encodePacked(hex\"ef01\", uint8(version), address(delegation))`.\n            result := eq(0xef01, shr(240, mload(0x00)))\n        }\n    }\n\n    /// @dev Returns the implementation of this contract.\n    function _selfImplementation() internal view virtual returns (address) {\n        return address(uint160(__self));\n    }\n\n    /// @dev Returns whether the current call context is on the implementation itself.\n    function _onImplementation() internal view virtual returns (bool) {\n        return __self == uint160(address(this));\n    }\n\n    /// @dev Requires that the current call context is performed via a EIP7702 authority.\n    function _checkOnlyEIP7702Authority() internal view virtual {\n        if (!_onEIP7702Authority()) _revertUnauthorizedCallContext();\n    }\n\n    /// @dev Requires that the current call context is performed via a proxy.\n    function _checkOnlyProxy() internal view virtual {\n        if (_onImplementation()) _revertUnauthorizedCallContext();\n    }\n\n    /// @dev Requires that the current call context is NOT performed via a proxy.\n    /// This is the opposite of `checkOnlyProxy`.\n    function _checkNotDelegated() internal view virtual {\n        if (!_onImplementation()) _revertUnauthorizedCallContext();\n    }\n\n    /// @dev Requires that the current call context is performed via a EIP7702 authority.\n    modifier onlyEIP7702Authority() virtual {\n        _checkOnlyEIP7702Authority();\n        _;\n    }\n\n    /// @dev Requires that the current call context is performed via a proxy.\n    modifier onlyProxy() virtual {\n        _checkOnlyProxy();\n        _;\n    }\n\n    /// @dev Requires that the current call context is NOT performed via a proxy.\n    /// This is the opposite of `onlyProxy`.\n    modifier notDelegated() virtual {\n        _checkNotDelegated();\n        _;\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      PRIVATE HELPERS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    function _revertUnauthorizedCallContext() private pure {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, 0x9f03a026) // `UnauthorizedCallContext()`.\n            revert(0x1c, 0x04)\n        }\n    }\n}\n"},"lib/solady/src/auth/OwnableRoles.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\nimport {Ownable} from \"./Ownable.sol\";\n\n/// @notice Simple single owner and multiroles authorization mixin.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/auth/OwnableRoles.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 OwnableRoles is Ownable {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                           EVENTS                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The `user`'s roles is updated to `roles`.\n    /// Each bit of `roles` represents whether the role is set.\n    event RolesUpdated(address indexed user, uint256 indexed roles);\n\n    /// @dev `keccak256(bytes(\"RolesUpdated(address,uint256)\"))`.\n    uint256 private constant _ROLES_UPDATED_EVENT_SIGNATURE =\n        0x715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe26;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                          STORAGE                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The role slot of `user` is given by:\n    /// ```\n    ///     mstore(0x00, or(shl(96, user), _ROLE_SLOT_SEED))\n    ///     let roleSlot := keccak256(0x00, 0x20)\n    /// ```\n    /// This automatically ignores the upper bits of the `user` in case\n    /// they are not clean, as well as keep the `keccak256` under 32-bytes.\n    ///\n    /// Note: This is equivalent to `uint32(bytes4(keccak256(\"_OWNER_SLOT_NOT\")))`.\n    uint256 private constant _ROLE_SLOT_SEED = 0x8b78c6d8;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     INTERNAL FUNCTIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Overwrite the roles directly without authorization guard.\n    function _setRoles(address user, uint256 roles) internal virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x0c, _ROLE_SLOT_SEED)\n            mstore(0x00, user)\n            // Store the new value.\n            sstore(keccak256(0x0c, 0x20), roles)\n            // Emit the {RolesUpdated} event.\n            log3(0, 0, _ROLES_UPDATED_EVENT_SIGNATURE, shr(96, mload(0x0c)), roles)\n        }\n    }\n\n    /// @dev Updates the roles directly without authorization guard.\n    /// If `on` is true, each set bit of `roles` will be turned on,\n    /// otherwise, each set bit of `roles` will be turned off.\n    function _updateRoles(address user, uint256 roles, bool on) internal virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x0c, _ROLE_SLOT_SEED)\n            mstore(0x00, user)\n            let roleSlot := keccak256(0x0c, 0x20)\n            // Load the current value.\n            let current := sload(roleSlot)\n            // Compute the updated roles if `on` is true.\n            let updated := or(current, roles)\n            // Compute the updated roles if `on` is false.\n            // Use `and` to compute the intersection of `current` and `roles`,\n            // `xor` it with `current` to flip the bits in the intersection.\n            if iszero(on) { updated := xor(current, and(current, roles)) }\n            // Then, store the new value.\n            sstore(roleSlot, updated)\n            // Emit the {RolesUpdated} event.\n            log3(0, 0, _ROLES_UPDATED_EVENT_SIGNATURE, shr(96, mload(0x0c)), updated)\n        }\n    }\n\n    /// @dev Grants the roles directly without authorization guard.\n    /// Each bit of `roles` represents the role to turn on.\n    function _grantRoles(address user, uint256 roles) internal virtual {\n        _updateRoles(user, roles, true);\n    }\n\n    /// @dev Removes the roles directly without authorization guard.\n    /// Each bit of `roles` represents the role to turn off.\n    function _removeRoles(address user, uint256 roles) internal virtual {\n        _updateRoles(user, roles, false);\n    }\n\n    /// @dev Throws if the sender does not have any of the `roles`.\n    function _checkRoles(uint256 roles) internal view virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute the role slot.\n            mstore(0x0c, _ROLE_SLOT_SEED)\n            mstore(0x00, caller())\n            // Load the stored value, and if the `and` intersection\n            // of the value and `roles` is zero, revert.\n            if iszero(and(sload(keccak256(0x0c, 0x20)), roles)) {\n                mstore(0x00, 0x82b42900) // `Unauthorized()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Throws if the sender is not the owner,\n    /// and does not have any of the `roles`.\n    /// Checks for ownership first, then lazily checks for roles.\n    function _checkOwnerOrRoles(uint256 roles) internal view virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // If the caller is not the stored owner.\n            // Note: `_ROLE_SLOT_SEED` is equal to `_OWNER_SLOT_NOT`.\n            if iszero(eq(caller(), sload(not(_ROLE_SLOT_SEED)))) {\n                // Compute the role slot.\n                mstore(0x0c, _ROLE_SLOT_SEED)\n                mstore(0x00, caller())\n                // Load the stored value, and if the `and` intersection\n                // of the value and `roles` is zero, revert.\n                if iszero(and(sload(keccak256(0x0c, 0x20)), roles)) {\n                    mstore(0x00, 0x82b42900) // `Unauthorized()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n        }\n    }\n\n    /// @dev Throws if the sender does not have any of the `roles`,\n    /// and is not the owner.\n    /// Checks for roles first, then lazily checks for ownership.\n    function _checkRolesOrOwner(uint256 roles) internal view virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute the role slot.\n            mstore(0x0c, _ROLE_SLOT_SEED)\n            mstore(0x00, caller())\n            // Load the stored value, and if the `and` intersection\n            // of the value and `roles` is zero, revert.\n            if iszero(and(sload(keccak256(0x0c, 0x20)), roles)) {\n                // If the caller is not the stored owner.\n                // Note: `_ROLE_SLOT_SEED` is equal to `_OWNER_SLOT_NOT`.\n                if iszero(eq(caller(), sload(not(_ROLE_SLOT_SEED)))) {\n                    mstore(0x00, 0x82b42900) // `Unauthorized()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n        }\n    }\n\n    /// @dev Convenience function to return a `roles` bitmap from an array of `ordinals`.\n    /// This is meant for frontends like Etherscan, and is therefore not fully optimized.\n    /// Not recommended to be called on-chain.\n    /// Made internal to conserve bytecode. Wrap it in a public function if needed.\n    function _rolesFromOrdinals(uint8[] memory ordinals) internal pure returns (uint256 roles) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            for { let i := shl(5, mload(ordinals)) } i { i := sub(i, 0x20) } {\n                // We don't need to mask the values of `ordinals`, as Solidity\n                // cleans dirty upper bits when storing variables into memory.\n                roles := or(shl(mload(add(ordinals, i)), 1), roles)\n            }\n        }\n    }\n\n    /// @dev Convenience function to return an array of `ordinals` from the `roles` bitmap.\n    /// This is meant for frontends like Etherscan, and is therefore not fully optimized.\n    /// Not recommended to be called on-chain.\n    /// Made internal to conserve bytecode. Wrap it in a public function if needed.\n    function _ordinalsFromRoles(uint256 roles) internal pure returns (uint8[] memory ordinals) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Grab the pointer to the free memory.\n            ordinals := mload(0x40)\n            let ptr := add(ordinals, 0x20)\n            let o := 0\n            // The absence of lookup tables, De Bruijn, etc., here is intentional for\n            // smaller bytecode, as this function is not meant to be called on-chain.\n            for { let t := roles } 1 {} {\n                mstore(ptr, o)\n                // `shr` 5 is equivalent to multiplying by 0x20.\n                // Push back into the ordinals array if the bit is set.\n                ptr := add(ptr, shl(5, and(t, 1)))\n                o := add(o, 1)\n                t := shr(o, roles)\n                if iszero(t) { break }\n            }\n            // Store the length of `ordinals`.\n            mstore(ordinals, shr(5, sub(ptr, add(ordinals, 0x20))))\n            // Allocate the memory.\n            mstore(0x40, ptr)\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                  PUBLIC UPDATE FUNCTIONS                   */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Allows the owner to grant `user` `roles`.\n    /// If the `user` already has a role, then it will be an no-op for the role.\n    function grantRoles(address user, uint256 roles) public payable virtual onlyOwner {\n        _grantRoles(user, roles);\n    }\n\n    /// @dev Allows the owner to remove `user` `roles`.\n    /// If the `user` does not have a role, then it will be an no-op for the role.\n    function revokeRoles(address user, uint256 roles) public payable virtual onlyOwner {\n        _removeRoles(user, roles);\n    }\n\n    /// @dev Allow the caller to remove their own roles.\n    /// If the caller does not have a role, then it will be an no-op for the role.\n    function renounceRoles(uint256 roles) public payable virtual {\n        _removeRoles(msg.sender, roles);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                   PUBLIC READ FUNCTIONS                    */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns the roles of `user`.\n    function rolesOf(address user) public view virtual returns (uint256 roles) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute the role slot.\n            mstore(0x0c, _ROLE_SLOT_SEED)\n            mstore(0x00, user)\n            // Load the stored value.\n            roles := sload(keccak256(0x0c, 0x20))\n        }\n    }\n\n    /// @dev Returns whether `user` has any of `roles`.\n    function hasAnyRole(address user, uint256 roles) public view virtual returns (bool) {\n        return rolesOf(user) & roles != 0;\n    }\n\n    /// @dev Returns whether `user` has all of `roles`.\n    function hasAllRoles(address user, uint256 roles) public view virtual returns (bool) {\n        return rolesOf(user) & roles == roles;\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         MODIFIERS                          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Marks a function as only callable by an account with `roles`.\n    modifier onlyRoles(uint256 roles) virtual {\n        _checkRoles(roles);\n        _;\n    }\n\n    /// @dev Marks a function as only callable by the owner or by an account\n    /// with `roles`. Checks for ownership first, then lazily checks for roles.\n    modifier onlyOwnerOrRoles(uint256 roles) virtual {\n        _checkOwnerOrRoles(roles);\n        _;\n    }\n\n    /// @dev Marks a function as only callable by an account with `roles`\n    /// or the owner. Checks for roles first, then lazily checks for ownership.\n    modifier onlyRolesOrOwner(uint256 roles) virtual {\n        _checkRolesOrOwner(roles);\n        _;\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       ROLE CONSTANTS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // IYKYK\n\n    uint256 internal constant _ROLE_0 = 1 << 0;\n    uint256 internal constant _ROLE_1 = 1 << 1;\n    uint256 internal constant _ROLE_2 = 1 << 2;\n    uint256 internal constant _ROLE_3 = 1 << 3;\n    uint256 internal constant _ROLE_4 = 1 << 4;\n    uint256 internal constant _ROLE_5 = 1 << 5;\n    uint256 internal constant _ROLE_6 = 1 << 6;\n    uint256 internal constant _ROLE_7 = 1 << 7;\n    uint256 internal constant _ROLE_8 = 1 << 8;\n    uint256 internal constant _ROLE_9 = 1 << 9;\n    uint256 internal constant _ROLE_10 = 1 << 10;\n    uint256 internal constant _ROLE_11 = 1 << 11;\n    uint256 internal constant _ROLE_12 = 1 << 12;\n    uint256 internal constant _ROLE_13 = 1 << 13;\n    uint256 internal constant _ROLE_14 = 1 << 14;\n    uint256 internal constant _ROLE_15 = 1 << 15;\n    uint256 internal constant _ROLE_16 = 1 << 16;\n    uint256 internal constant _ROLE_17 = 1 << 17;\n    uint256 internal constant _ROLE_18 = 1 << 18;\n    uint256 internal constant _ROLE_19 = 1 << 19;\n    uint256 internal constant _ROLE_20 = 1 << 20;\n    uint256 internal constant _ROLE_21 = 1 << 21;\n    uint256 internal constant _ROLE_22 = 1 << 22;\n    uint256 internal constant _ROLE_23 = 1 << 23;\n    uint256 internal constant _ROLE_24 = 1 << 24;\n    uint256 internal constant _ROLE_25 = 1 << 25;\n    uint256 internal constant _ROLE_26 = 1 << 26;\n    uint256 internal constant _ROLE_27 = 1 << 27;\n    uint256 internal constant _ROLE_28 = 1 << 28;\n    uint256 internal constant _ROLE_29 = 1 << 29;\n    uint256 internal constant _ROLE_30 = 1 << 30;\n    uint256 internal constant _ROLE_31 = 1 << 31;\n    uint256 internal constant _ROLE_32 = 1 << 32;\n    uint256 internal constant _ROLE_33 = 1 << 33;\n    uint256 internal constant _ROLE_34 = 1 << 34;\n    uint256 internal constant _ROLE_35 = 1 << 35;\n    uint256 internal constant _ROLE_36 = 1 << 36;\n    uint256 internal constant _ROLE_37 = 1 << 37;\n    uint256 internal constant _ROLE_38 = 1 << 38;\n    uint256 internal constant _ROLE_39 = 1 << 39;\n    uint256 internal constant _ROLE_40 = 1 << 40;\n    uint256 internal constant _ROLE_41 = 1 << 41;\n    uint256 internal constant _ROLE_42 = 1 << 42;\n    uint256 internal constant _ROLE_43 = 1 << 43;\n    uint256 internal constant _ROLE_44 = 1 << 44;\n    uint256 internal constant _ROLE_45 = 1 << 45;\n    uint256 internal constant _ROLE_46 = 1 << 46;\n    uint256 internal constant _ROLE_47 = 1 << 47;\n    uint256 internal constant _ROLE_48 = 1 << 48;\n    uint256 internal constant _ROLE_49 = 1 << 49;\n    uint256 internal constant _ROLE_50 = 1 << 50;\n    uint256 internal constant _ROLE_51 = 1 << 51;\n    uint256 internal constant _ROLE_52 = 1 << 52;\n    uint256 internal constant _ROLE_53 = 1 << 53;\n    uint256 internal constant _ROLE_54 = 1 << 54;\n    uint256 internal constant _ROLE_55 = 1 << 55;\n    uint256 internal constant _ROLE_56 = 1 << 56;\n    uint256 internal constant _ROLE_57 = 1 << 57;\n    uint256 internal constant _ROLE_58 = 1 << 58;\n    uint256 internal constant _ROLE_59 = 1 << 59;\n    uint256 internal constant _ROLE_60 = 1 << 60;\n    uint256 internal constant _ROLE_61 = 1 << 61;\n    uint256 internal constant _ROLE_62 = 1 << 62;\n    uint256 internal constant _ROLE_63 = 1 << 63;\n    uint256 internal constant _ROLE_64 = 1 << 64;\n    uint256 internal constant _ROLE_65 = 1 << 65;\n    uint256 internal constant _ROLE_66 = 1 << 66;\n    uint256 internal constant _ROLE_67 = 1 << 67;\n    uint256 internal constant _ROLE_68 = 1 << 68;\n    uint256 internal constant _ROLE_69 = 1 << 69;\n    uint256 internal constant _ROLE_70 = 1 << 70;\n    uint256 internal constant _ROLE_71 = 1 << 71;\n    uint256 internal constant _ROLE_72 = 1 << 72;\n    uint256 internal constant _ROLE_73 = 1 << 73;\n    uint256 internal constant _ROLE_74 = 1 << 74;\n    uint256 internal constant _ROLE_75 = 1 << 75;\n    uint256 internal constant _ROLE_76 = 1 << 76;\n    uint256 internal constant _ROLE_77 = 1 << 77;\n    uint256 internal constant _ROLE_78 = 1 << 78;\n    uint256 internal constant _ROLE_79 = 1 << 79;\n    uint256 internal constant _ROLE_80 = 1 << 80;\n    uint256 internal constant _ROLE_81 = 1 << 81;\n    uint256 internal constant _ROLE_82 = 1 << 82;\n    uint256 internal constant _ROLE_83 = 1 << 83;\n    uint256 internal constant _ROLE_84 = 1 << 84;\n    uint256 internal constant _ROLE_85 = 1 << 85;\n    uint256 internal constant _ROLE_86 = 1 << 86;\n    uint256 internal constant _ROLE_87 = 1 << 87;\n    uint256 internal constant _ROLE_88 = 1 << 88;\n    uint256 internal constant _ROLE_89 = 1 << 89;\n    uint256 internal constant _ROLE_90 = 1 << 90;\n    uint256 internal constant _ROLE_91 = 1 << 91;\n    uint256 internal constant _ROLE_92 = 1 << 92;\n    uint256 internal constant _ROLE_93 = 1 << 93;\n    uint256 internal constant _ROLE_94 = 1 << 94;\n    uint256 internal constant _ROLE_95 = 1 << 95;\n    uint256 internal constant _ROLE_96 = 1 << 96;\n    uint256 internal constant _ROLE_97 = 1 << 97;\n    uint256 internal constant _ROLE_98 = 1 << 98;\n    uint256 internal constant _ROLE_99 = 1 << 99;\n    uint256 internal constant _ROLE_100 = 1 << 100;\n    uint256 internal constant _ROLE_101 = 1 << 101;\n    uint256 internal constant _ROLE_102 = 1 << 102;\n    uint256 internal constant _ROLE_103 = 1 << 103;\n    uint256 internal constant _ROLE_104 = 1 << 104;\n    uint256 internal constant _ROLE_105 = 1 << 105;\n    uint256 internal constant _ROLE_106 = 1 << 106;\n    uint256 internal constant _ROLE_107 = 1 << 107;\n    uint256 internal constant _ROLE_108 = 1 << 108;\n    uint256 internal constant _ROLE_109 = 1 << 109;\n    uint256 internal constant _ROLE_110 = 1 << 110;\n    uint256 internal constant _ROLE_111 = 1 << 111;\n    uint256 internal constant _ROLE_112 = 1 << 112;\n    uint256 internal constant _ROLE_113 = 1 << 113;\n    uint256 internal constant _ROLE_114 = 1 << 114;\n    uint256 internal constant _ROLE_115 = 1 << 115;\n    uint256 internal constant _ROLE_116 = 1 << 116;\n    uint256 internal constant _ROLE_117 = 1 << 117;\n    uint256 internal constant _ROLE_118 = 1 << 118;\n    uint256 internal constant _ROLE_119 = 1 << 119;\n    uint256 internal constant _ROLE_120 = 1 << 120;\n    uint256 internal constant _ROLE_121 = 1 << 121;\n    uint256 internal constant _ROLE_122 = 1 << 122;\n    uint256 internal constant _ROLE_123 = 1 << 123;\n    uint256 internal constant _ROLE_124 = 1 << 124;\n    uint256 internal constant _ROLE_125 = 1 << 125;\n    uint256 internal constant _ROLE_126 = 1 << 126;\n    uint256 internal constant _ROLE_127 = 1 << 127;\n    uint256 internal constant _ROLE_128 = 1 << 128;\n    uint256 internal constant _ROLE_129 = 1 << 129;\n    uint256 internal constant _ROLE_130 = 1 << 130;\n    uint256 internal constant _ROLE_131 = 1 << 131;\n    uint256 internal constant _ROLE_132 = 1 << 132;\n    uint256 internal constant _ROLE_133 = 1 << 133;\n    uint256 internal constant _ROLE_134 = 1 << 134;\n    uint256 internal constant _ROLE_135 = 1 << 135;\n    uint256 internal constant _ROLE_136 = 1 << 136;\n    uint256 internal constant _ROLE_137 = 1 << 137;\n    uint256 internal constant _ROLE_138 = 1 << 138;\n    uint256 internal constant _ROLE_139 = 1 << 139;\n    uint256 internal constant _ROLE_140 = 1 << 140;\n    uint256 internal constant _ROLE_141 = 1 << 141;\n    uint256 internal constant _ROLE_142 = 1 << 142;\n    uint256 internal constant _ROLE_143 = 1 << 143;\n    uint256 internal constant _ROLE_144 = 1 << 144;\n    uint256 internal constant _ROLE_145 = 1 << 145;\n    uint256 internal constant _ROLE_146 = 1 << 146;\n    uint256 internal constant _ROLE_147 = 1 << 147;\n    uint256 internal constant _ROLE_148 = 1 << 148;\n    uint256 internal constant _ROLE_149 = 1 << 149;\n    uint256 internal constant _ROLE_150 = 1 << 150;\n    uint256 internal constant _ROLE_151 = 1 << 151;\n    uint256 internal constant _ROLE_152 = 1 << 152;\n    uint256 internal constant _ROLE_153 = 1 << 153;\n    uint256 internal constant _ROLE_154 = 1 << 154;\n    uint256 internal constant _ROLE_155 = 1 << 155;\n    uint256 internal constant _ROLE_156 = 1 << 156;\n    uint256 internal constant _ROLE_157 = 1 << 157;\n    uint256 internal constant _ROLE_158 = 1 << 158;\n    uint256 internal constant _ROLE_159 = 1 << 159;\n    uint256 internal constant _ROLE_160 = 1 << 160;\n    uint256 internal constant _ROLE_161 = 1 << 161;\n    uint256 internal constant _ROLE_162 = 1 << 162;\n    uint256 internal constant _ROLE_163 = 1 << 163;\n    uint256 internal constant _ROLE_164 = 1 << 164;\n    uint256 internal constant _ROLE_165 = 1 << 165;\n    uint256 internal constant _ROLE_166 = 1 << 166;\n    uint256 internal constant _ROLE_167 = 1 << 167;\n    uint256 internal constant _ROLE_168 = 1 << 168;\n    uint256 internal constant _ROLE_169 = 1 << 169;\n    uint256 internal constant _ROLE_170 = 1 << 170;\n    uint256 internal constant _ROLE_171 = 1 << 171;\n    uint256 internal constant _ROLE_172 = 1 << 172;\n    uint256 internal constant _ROLE_173 = 1 << 173;\n    uint256 internal constant _ROLE_174 = 1 << 174;\n    uint256 internal constant _ROLE_175 = 1 << 175;\n    uint256 internal constant _ROLE_176 = 1 << 176;\n    uint256 internal constant _ROLE_177 = 1 << 177;\n    uint256 internal constant _ROLE_178 = 1 << 178;\n    uint256 internal constant _ROLE_179 = 1 << 179;\n    uint256 internal constant _ROLE_180 = 1 << 180;\n    uint256 internal constant _ROLE_181 = 1 << 181;\n    uint256 internal constant _ROLE_182 = 1 << 182;\n    uint256 internal constant _ROLE_183 = 1 << 183;\n    uint256 internal constant _ROLE_184 = 1 << 184;\n    uint256 internal constant _ROLE_185 = 1 << 185;\n    uint256 internal constant _ROLE_186 = 1 << 186;\n    uint256 internal constant _ROLE_187 = 1 << 187;\n    uint256 internal constant _ROLE_188 = 1 << 188;\n    uint256 internal constant _ROLE_189 = 1 << 189;\n    uint256 internal constant _ROLE_190 = 1 << 190;\n    uint256 internal constant _ROLE_191 = 1 << 191;\n    uint256 internal constant _ROLE_192 = 1 << 192;\n    uint256 internal constant _ROLE_193 = 1 << 193;\n    uint256 internal constant _ROLE_194 = 1 << 194;\n    uint256 internal constant _ROLE_195 = 1 << 195;\n    uint256 internal constant _ROLE_196 = 1 << 196;\n    uint256 internal constant _ROLE_197 = 1 << 197;\n    uint256 internal constant _ROLE_198 = 1 << 198;\n    uint256 internal constant _ROLE_199 = 1 << 199;\n    uint256 internal constant _ROLE_200 = 1 << 200;\n    uint256 internal constant _ROLE_201 = 1 << 201;\n    uint256 internal constant _ROLE_202 = 1 << 202;\n    uint256 internal constant _ROLE_203 = 1 << 203;\n    uint256 internal constant _ROLE_204 = 1 << 204;\n    uint256 internal constant _ROLE_205 = 1 << 205;\n    uint256 internal constant _ROLE_206 = 1 << 206;\n    uint256 internal constant _ROLE_207 = 1 << 207;\n    uint256 internal constant _ROLE_208 = 1 << 208;\n    uint256 internal constant _ROLE_209 = 1 << 209;\n    uint256 internal constant _ROLE_210 = 1 << 210;\n    uint256 internal constant _ROLE_211 = 1 << 211;\n    uint256 internal constant _ROLE_212 = 1 << 212;\n    uint256 internal constant _ROLE_213 = 1 << 213;\n    uint256 internal constant _ROLE_214 = 1 << 214;\n    uint256 internal constant _ROLE_215 = 1 << 215;\n    uint256 internal constant _ROLE_216 = 1 << 216;\n    uint256 internal constant _ROLE_217 = 1 << 217;\n    uint256 internal constant _ROLE_218 = 1 << 218;\n    uint256 internal constant _ROLE_219 = 1 << 219;\n    uint256 internal constant _ROLE_220 = 1 << 220;\n    uint256 internal constant _ROLE_221 = 1 << 221;\n    uint256 internal constant _ROLE_222 = 1 << 222;\n    uint256 internal constant _ROLE_223 = 1 << 223;\n    uint256 internal constant _ROLE_224 = 1 << 224;\n    uint256 internal constant _ROLE_225 = 1 << 225;\n    uint256 internal constant _ROLE_226 = 1 << 226;\n    uint256 internal constant _ROLE_227 = 1 << 227;\n    uint256 internal constant _ROLE_228 = 1 << 228;\n    uint256 internal constant _ROLE_229 = 1 << 229;\n    uint256 internal constant _ROLE_230 = 1 << 230;\n    uint256 internal constant _ROLE_231 = 1 << 231;\n    uint256 internal constant _ROLE_232 = 1 << 232;\n    uint256 internal constant _ROLE_233 = 1 << 233;\n    uint256 internal constant _ROLE_234 = 1 << 234;\n    uint256 internal constant _ROLE_235 = 1 << 235;\n    uint256 internal constant _ROLE_236 = 1 << 236;\n    uint256 internal constant _ROLE_237 = 1 << 237;\n    uint256 internal constant _ROLE_238 = 1 << 238;\n    uint256 internal constant _ROLE_239 = 1 << 239;\n    uint256 internal constant _ROLE_240 = 1 << 240;\n    uint256 internal constant _ROLE_241 = 1 << 241;\n    uint256 internal constant _ROLE_242 = 1 << 242;\n    uint256 internal constant _ROLE_243 = 1 << 243;\n    uint256 internal constant _ROLE_244 = 1 << 244;\n    uint256 internal constant _ROLE_245 = 1 << 245;\n    uint256 internal constant _ROLE_246 = 1 << 246;\n    uint256 internal constant _ROLE_247 = 1 << 247;\n    uint256 internal constant _ROLE_248 = 1 << 248;\n    uint256 internal constant _ROLE_249 = 1 << 249;\n    uint256 internal constant _ROLE_250 = 1 << 250;\n    uint256 internal constant _ROLE_251 = 1 << 251;\n    uint256 internal constant _ROLE_252 = 1 << 252;\n    uint256 internal constant _ROLE_253 = 1 << 253;\n    uint256 internal constant _ROLE_254 = 1 << 254;\n    uint256 internal constant _ROLE_255 = 1 << 255;\n}\n"},"src/interfaces/IDepositWallet.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.13;\n\nimport {Batch} from \"@deposit-wallet/src/libraries/WalletLib.sol\";\n\n/// @title IDepositWallet\n/// @author Polymarket\n/// @notice Interface for the DepositWallet proxy contract.\ninterface IDepositWallet {\n    /*--------------------------------------------------------------\n                             INITIALIZER\n    --------------------------------------------------------------*/\n\n    /// @notice Initializes the wallet with a designated owner.\n    /// @param _owner The address to set as the wallet owner.\n    function initialize(address _owner) external;\n\n    /*--------------------------------------------------------------\n                                  VIEW\n    --------------------------------------------------------------*/\n\n    /// @notice Returns the wallet's current execution nonce.\n    /// @return The current nonce.\n    function nonce() external view returns (uint256);\n\n    /// @notice Returns the timestamp at which the wallet was paused.\n    /// @return The paused timestamp, or zero if not paused.\n    function paused() external view returns (uint256);\n\n    /// @notice Returns the timestamp until which a session signer is authorized.\n    /// @param _signer The session signer address to query.\n    /// @return The authorization expiry timestamp, or zero if not authorized.\n    function sessionSignerAuthorizedUntil(address _signer) external view returns (uint256);\n\n    /// @notice Returns the unique identifier assigned to this wallet at deployment.\n    /// @return The wallet ID decoded from the ERC-1967 immutable args.\n    function id() external view returns (bytes32);\n\n    /// @notice Returns the factory contract that deployed this wallet.\n    /// @return The factory address decoded from the ERC-1967 immutable args.\n    function factory() external view returns (address);\n\n    /// @notice Returns the current owner of the wallet.\n    /// @return The owner address.\n    function owner() external view returns (address);\n\n    /// @notice Returns the pending owner awaiting handover completion.\n    /// @return The pending owner address, or `address(0)` if none.\n    function pendingOwner() external view returns (address);\n\n    /*--------------------------------------------------------------\n                             ONLY FACTORY\n    --------------------------------------------------------------*/\n\n    /// @notice Executes a signed batch of calls through the factory.\n    /// @dev Validates the batch (non-empty, correct wallet, nonce, deadline), verifies the EIP-712\n    ///      signature against the owner or an authorized session signer, then executes each call\n    ///      sequentially. Session signers are prevented from calling the wallet itself.\n    /// @param _batch The batch containing the target wallet, nonce, deadline, and calls.\n    /// @param _signature The EIP-712 signature authorizing the batch (owner or session signer).\n    function execute(Batch calldata _batch, bytes calldata _signature) external;\n\n    /*--------------------------------------------------------------\n                               ONLY SELF\n    --------------------------------------------------------------*/\n\n    /// @notice Authorizes a session signer until the specified timestamp.\n    /// @dev Can only be invoked via batch execution (self-call).\n    /// @param _sessionSigner The address to authorize as a session signer.\n    /// @param _validUntil The timestamp until which the session signer is valid.\n    function authorizeSessionSigner(address _sessionSigner, uint256 _validUntil) external;\n\n    /// @notice Revokes a session signer's authorization.\n    /// @dev Can only be invoked via batch execution (self-call).\n    /// @param _sessionSigner The session signer address to revoke.\n    function revokeSessionSigner(address _sessionSigner) external;\n\n    /// @notice Initiates a two-step ownership transfer to a new owner.\n    /// @dev Can only be invoked via batch execution (self-call).\n    /// @param _newOwner The proposed new owner address.\n    function transferOwnership(address _newOwner) external;\n\n    /// @notice Cancels any pending ownership handover.\n    /// @dev Can only be invoked via batch execution (self-call).\n    function cancelOwnershipHandover() external;\n\n    /// @notice Upgrades the wallet implementation via UUPS.\n    /// @dev Can only be invoked via batch execution (self-call).\n    ///      The new implementation must be authorized by the factory.\n    /// @param _implementation The address of the new implementation contract.\n    /// @param _data Optional calldata to execute on the new implementation after upgrade.\n    function upgrade(address _implementation, bytes calldata _data) external;\n\n    /*--------------------------------------------------------------\n                           OWNERSHIP HANDOVER\n    --------------------------------------------------------------*/\n\n    /// @notice Completes a pending ownership transfer.\n    /// @dev Permissionless — anyone may submit, but the pending owner must have signed\n    ///      an EIP-712 `OwnershipHandover` message.\n    /// @param _deadline The deadline timestamp included in the signed message.\n    /// @param _signature The EIP-712 signature from the pending owner.\n    function completeOwnershipHandover(uint256 _deadline, bytes calldata _signature) external;\n\n    /*--------------------------------------------------------------\n                               ONLY OWNER\n    --------------------------------------------------------------*/\n\n    /// @notice Pauses the wallet, recording the current timestamp.\n    /// @dev After pausing, the owner must wait for the timelock delay before calling\n    ///      paused-only functions (e.g., withdrawals, revocations).\n    function pause() external;\n\n    /// @notice Unpauses the wallet.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    function unpause() external;\n\n    /// @notice Withdraws ERC-20 tokens from the wallet.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _token The ERC-20 token address.\n    /// @param _to The recipient address.\n    /// @param _amount The amount of tokens to withdraw.\n    function withdrawERC20(address _token, address _to, uint256 _amount) external;\n\n    /// @notice Batch-withdraws ERC-1155 tokens from the wallet.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _token The ERC-1155 token address.\n    /// @param _to The recipient address.\n    /// @param _ids The token IDs to withdraw.\n    /// @param _amounts The amounts for each token ID.\n    function withdrawERC1155(\n        address _token,\n        address _to,\n        uint256[] calldata _ids,\n        uint256[] calldata _amounts\n    ) external;\n\n    /// @notice Revokes an ERC-20 allowance by setting it to zero.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _token The ERC-20 token address.\n    /// @param _spender The spender whose allowance is revoked.\n    function revokeAllowance(address _token, address _spender) external;\n\n    /// @notice Revokes an ERC-1155 operator approval.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _token The ERC-1155 token address.\n    /// @param _operator The operator whose approval is revoked.\n    function revokeApprovalForAll(address _token, address _operator) external;\n\n    /// @notice Emergency revocation of a session signer by the owner.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _sessionSigner The session signer to revoke.\n    function revokeSessionSignerEmergency(address _sessionSigner) external;\n\n    /*--------------------------------------------------------------\n                                ERC1271\n    --------------------------------------------------------------*/\n\n    /// @notice Validates a signature against the wallet owner or an authorized session signer.\n    /// @param _hash The hash that was signed.\n    /// @param _signature The signature to validate (may contain a session signer wrapper).\n    /// @return result `ERC1271_MAGIC_VALUE` if the signature is valid.\n    function isValidSignature(bytes32 _hash, bytes calldata _signature)\n        external\n        view\n        returns (bytes4 result);\n}\n"},"src/Errors.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.13;\n\n/// @title Errors\n/// @author Polymarket\n/// @notice Custom errors shared across DepositWallet contracts.\nabstract contract Errors {\n    /// @notice Thrown when the caller is not authorized to perform the action.\n    error Unauthorized();\n\n    /// @notice Thrown when the provided owner address is invalid (e.g., zero address).\n    error InvalidOwner();\n\n    /// @notice Thrown when an ownership handover is expected but none is pending.\n    error NoPendingOwner();\n\n    /// @notice Thrown when a deadline has passed.\n    error Expired();\n\n    /// @notice Thrown when a signature fails verification.\n    error InvalidSignature();\n\n    /// @notice Thrown when the caller is not the factory contract.\n    error OnlyFactory();\n\n    /// @notice Thrown when a low-level call within a batch execution fails.\n    error CallFailed();\n\n    /// @notice Thrown when a function restricted to self-calls is invoked externally.\n    error OnlySelf();\n\n    /// @notice Thrown when a batch contains zero calls.\n    error EmptyBatch();\n\n    /// @notice Thrown when the batch nonce does not match the wallet's current nonce.\n    error InvalidNonce();\n\n    /// @notice Thrown when the batch's wallet address does not match the executing wallet.\n    error InvalidWallet();\n\n    /// @notice Thrown when a UUPS upgrade targets an unauthorized implementation.\n    error InvalidImplementation();\n\n    /// @notice Thrown when a session signer's authorization has expired or does not exist.\n    error SessionSignerUnauthorized();\n\n    /// @notice Thrown when a session signer attempts to call the wallet itself.\n    error SessionSignerSelfCallNotAllowed();\n\n    /// @notice Thrown when a paused-only function is called while the wallet is not paused.\n    error NotPaused();\n\n    /// @notice Thrown when the timelock delay has not elapsed since the wallet was paused.\n    error TimelockInsufficientDelay();\n}\n"},"src/Events.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.13;\n\n/// @title Events\n/// @author Polymarket\n/// @notice Events emitted by DepositWallet contracts.\nabstract contract Events {\n    /// @notice Emitted when ownership is transferred.\n    /// @param oldOwner The address of the previous owner.\n    /// @param newOwner The address of the new owner.\n    event OwnershipTransferred(address indexed oldOwner, address indexed newOwner);\n\n    /// @notice Emitted when a two-step ownership handover is initiated.\n    /// @param pendingOwner The address of the proposed new owner.\n    event OwnershipHandoverRequested(address indexed pendingOwner);\n\n    /// @notice Emitted when a two-step ownership handover is completed.\n    /// @param previousOwner The address of the outgoing owner.\n    /// @param newOwner The address of the incoming owner.\n    event OwnershipHandoverCompleted(address indexed previousOwner, address indexed newOwner);\n\n    /// @notice Emitted when a pending ownership handover is canceled.\n    /// @param pendingOwner The address of the canceled pending owner.\n    event OwnershipHandoverCanceled(address indexed pendingOwner);\n\n    /// @notice Emitted when ERC-20 tokens are withdrawn from the wallet by the owner.\n    /// @param token The address of the ERC-20 token.\n    /// @param to The recipient address.\n    /// @param amount The amount of tokens withdrawn.\n    event ERC20Withdrawal(address indexed token, address indexed to, uint256 amount);\n\n    /// @notice Emitted when ERC-1155 tokens are batch-withdrawn from the wallet by the owner.\n    /// @param token The address of the ERC-1155 token.\n    /// @param to The recipient address.\n    /// @param ids The token IDs withdrawn.\n    /// @param amounts The amounts withdrawn for each token ID.\n    event ERC1155BatchWithdrawal(\n        address indexed token, address indexed to, uint256[] ids, uint256[] amounts\n    );\n\n    /// @notice Emitted for each individual call executed within a batch.\n    /// @param target The address called.\n    /// @param value The ETH value sent with the call.\n    /// @param data The calldata sent to the target.\n    /// @param result The return data from the call.\n    event Execution(address indexed target, uint256 value, bytes data, bytes result);\n\n    /// @notice Emitted after a batch of calls has been successfully executed.\n    /// @param nonce The nonce of the executed batch.\n    event BatchExecuted(uint256 indexed nonce);\n\n    /// @notice Emitted when a session signer is authorized.\n    /// @param sessionSigner The address of the authorized session signer.\n    /// @param validUntil The timestamp until which the session signer is valid.\n    event SessionSignerAuthorized(address indexed sessionSigner, uint256 validUntil);\n\n    /// @notice Emitted when a session signer is revoked via a self-call.\n    /// @param sessionSigner The address of the revoked session signer.\n    event SessionSignerRevoked(address indexed sessionSigner);\n\n    /// @notice Emitted when the wallet is paused.\n    /// @param timestamp The block timestamp at which the wallet was paused.\n    event Paused(uint256 timestamp);\n\n    /// @notice Emitted when the wallet is unpaused.\n    /// @param timestamp The block timestamp at which the wallet was unpaused.\n    event Unpaused(uint256 timestamp);\n\n    /// @notice Emitted when an ERC-20 allowance is revoked by the owner.\n    /// @param token The address of the ERC-20 token.\n    /// @param spender The address whose allowance was revoked.\n    event AllowanceRevoked(address indexed token, address indexed spender);\n\n    /// @notice Emitted when an ERC-1155 operator approval is revoked by the owner.\n    /// @param token The address of the ERC-1155 token.\n    /// @param operator The address whose approval was revoked.\n    event ApprovalForAllRevoked(address indexed token, address indexed operator);\n\n    /// @notice Emitted when a session signer is emergency-revoked by the owner while paused.\n    /// @param sessionSigner The address of the revoked session signer.\n    event SessionSignerRevokedEmergency(address indexed sessionSigner);\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"}},"compilation":{"language":"Solidity","compiler":"solc","compilerVersion":"0.8.34+commit.80d5c536","compilerSettings":{"viaIR":false,"metadata":{"appendCBOR":true,"bytecodeHash":"ipfs","useLiteralContent":false},"optimizer":{"runs":1000000,"enabled":true},"evmVersion":"cancun","remappings":["@solady/=lib/solady/","@forge-std/=lib/forge-std/","@deposit-wallet/src/=src/"]},"name":"DepositWallet","fullyQualifiedName":"src/DepositWallet.sol:DepositWallet"},"abi":[{"type":"constructor","inputs":[],"stateMutability":"nonpayable"},{"name":"CallFailed","type":"error","inputs":[]},{"name":"EmptyBatch","type":"error","inputs":[]},{"name":"Expired","type":"error","inputs":[]},{"name":"FnSelectorNotRecognized","type":"error","inputs":[]},{"name":"InvalidImplementation","type":"error","inputs":[]},{"name":"InvalidInitialization","type":"error","inputs":[]},{"name":"InvalidNonce","type":"error","inputs":[]},{"name":"InvalidOwner","type":"error","inputs":[]},{"name":"InvalidSignature","type":"error","inputs":[]},{"name":"InvalidWallet","type":"error","inputs":[]},{"name":"NoPendingOwner","type":"error","inputs":[]},{"name":"NotInitializing","type":"error","inputs":[]},{"name":"NotPaused","type":"error","inputs":[]},{"name":"OnlyFactory","type":"error","inputs":[]},{"name":"OnlySelf","type":"error","inputs":[]},{"name":"SessionSignerSelfCallNotAllowed","type":"error","inputs":[]},{"name":"SessionSignerUnauthorized","type":"error","inputs":[]},{"name":"TimelockInsufficientDelay","type":"error","inputs":[]},{"name":"Unauthorized","type":"error","inputs":[]},{"name":"UnauthorizedCallContext","type":"error","inputs":[]},{"name":"UpgradeFailed","type":"error","inputs":[]},{"name":"AllowanceRevoked","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"spender","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"ApprovalForAllRevoked","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"operator","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"BatchExecuted","type":"event","inputs":[{"name":"nonce","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"name":"ERC1155BatchWithdrawal","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"to","type":"address","indexed":true,"internalType":"address"},{"name":"ids","type":"uint256[]","indexed":false,"internalType":"uint256[]"},{"name":"amounts","type":"uint256[]","indexed":false,"internalType":"uint256[]"}],"anonymous":false},{"name":"ERC20Withdrawal","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"to","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"Execution","type":"event","inputs":[{"name":"target","type":"address","indexed":true,"internalType":"address"},{"name":"value","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"data","type":"bytes","indexed":false,"internalType":"bytes"},{"name":"result","type":"bytes","indexed":false,"internalType":"bytes"}],"anonymous":false},{"name":"Initialized","type":"event","inputs":[{"name":"version","type":"uint64","indexed":false,"internalType":"uint64"}],"anonymous":false},{"name":"OwnershipHandoverCanceled","type":"event","inputs":[{"name":"pendingOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"OwnershipHandoverCompleted","type":"event","inputs":[{"name":"previousOwner","type":"address","indexed":true,"internalType":"address"},{"name":"newOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"OwnershipHandoverRequested","type":"event","inputs":[{"name":"pendingOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"OwnershipTransferred","type":"event","inputs":[{"name":"oldOwner","type":"address","indexed":true,"internalType":"address"},{"name":"newOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"Paused","type":"event","inputs":[{"name":"timestamp","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"SessionSignerAuthorized","type":"event","inputs":[{"name":"sessionSigner","type":"address","indexed":true,"internalType":"address"},{"name":"validUntil","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"SessionSignerRevoked","type":"event","inputs":[{"name":"sessionSigner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"SessionSignerRevokedEmergency","type":"event","inputs":[{"name":"sessionSigner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"Unpaused","type":"event","inputs":[{"name":"timestamp","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"Upgraded","type":"event","inputs":[{"name":"implementation","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"fallback","stateMutability":"payable"},{"name":"authorizeSessionSigner","type":"function","inputs":[{"name":"_sessionSigner","type":"address","internalType":"address"},{"name":"_validUntil","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"cancelOwnershipHandover","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"completeOwnershipHandover","type":"function","inputs":[{"name":"_deadline","type":"uint256","internalType":"uint256"},{"name":"_signature","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"eip712Domain","type":"function","inputs":[],"outputs":[{"name":"fields","type":"bytes1","internalType":"bytes1"},{"name":"name","type":"string","internalType":"string"},{"name":"version","type":"string","internalType":"string"},{"name":"chainId","type":"uint256","internalType":"uint256"},{"name":"verifyingContract","type":"address","internalType":"address"},{"name":"salt","type":"bytes32","internalType":"bytes32"},{"name":"extensions","type":"uint256[]","internalType":"uint256[]"}],"stateMutability":"view"},{"name":"execute","type":"function","inputs":[{"name":"_batch","type":"tuple","components":[{"name":"wallet","type":"address","internalType":"address"},{"name":"nonce","type":"uint256","internalType":"uint256"},{"name":"deadline","type":"uint256","internalType":"uint256"},{"name":"calls","type":"tuple[]","components":[{"name":"target","type":"address","internalType":"address"},{"name":"value","type":"uint256","internalType":"uint256"},{"name":"data","type":"bytes","internalType":"bytes"}],"internalType":"struct Call[]"}],"internalType":"struct Batch"},{"name":"_signature","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"factory","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"id","type":"function","inputs":[],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"name":"initialize","type":"function","inputs":[{"name":"_owner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"isValidSignature","type":"function","inputs":[{"name":"_hash","type":"bytes32","internalType":"bytes32"},{"name":"_signature","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"result","type":"bytes4","internalType":"bytes4"}],"stateMutability":"view"},{"name":"nonce","type":"function","inputs":[],"outputs":[{"name":"nonce_","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"owner","type":"function","inputs":[],"outputs":[{"name":"result","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"pause","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"paused","type":"function","inputs":[],"outputs":[{"name":"paused_","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"pendingOwner","type":"function","inputs":[],"outputs":[{"name":"result","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"proxiableUUID","type":"function","inputs":[],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"name":"revokeAllowance","type":"function","inputs":[{"name":"_token","type":"address","internalType":"address"},{"name":"_spender","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"revokeApprovalForAll","type":"function","inputs":[{"name":"_token","type":"address","internalType":"address"},{"name":"_operator","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"revokeSessionSigner","type":"function","inputs":[{"name":"_sessionSigner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"revokeSessionSignerEmergency","type":"function","inputs":[{"name":"_sessionSigner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"sessionSignerAuthorizedUntil","type":"function","inputs":[{"name":"_signer","type":"address","internalType":"address"}],"outputs":[{"name":"validUntil_","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"transferOwnership","type":"function","inputs":[{"name":"_newOwner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"unpause","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"upgrade","type":"function","inputs":[{"name":"_implementation","type":"address","internalType":"address"},{"name":"_data","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"upgradeToAndCall","type":"function","inputs":[{"name":"newImplementation","type":"address","internalType":"address"},{"name":"data","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"payable"},{"name":"withdrawERC1155","type":"function","inputs":[{"name":"_token","type":"address","internalType":"address"},{"name":"_to","type":"address","internalType":"address"},{"name":"_ids","type":"uint256[]","internalType":"uint256[]"},{"name":"_amounts","type":"uint256[]","internalType":"uint256[]"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"withdrawERC20","type":"function","inputs":[{"name":"_token","type":"address","internalType":"address"},{"name":"_to","type":"address","internalType":"address"},{"name":"_amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"receive","stateMutability":"payable"}],"metadata":{"compiler":{"version":"0.8.34+commit.80d5c536"},"language":"Solidity","output":{"abi":[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"CallFailed","type":"error"},{"inputs":[],"name":"EmptyBatch","type":"error"},{"inputs":[],"name":"Expired","type":"error"},{"inputs":[],"name":"FnSelectorNotRecognized","type":"error"},{"inputs":[],"name":"InvalidImplementation","type":"error"},{"inputs":[],"name":"InvalidInitialization","type":"error"},{"inputs":[],"name":"InvalidNonce","type":"error"},{"inputs":[],"name":"InvalidOwner","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"InvalidWallet","type":"error"},{"inputs":[],"name":"NoPendingOwner","type":"error"},{"inputs":[],"name":"NotInitializing","type":"error"},{"inputs":[],"name":"NotPaused","type":"error"},{"inputs":[],"name":"OnlyFactory","type":"error"},{"inputs":[],"name":"OnlySelf","type":"error"},{"inputs":[],"name":"SessionSignerSelfCallNotAllowed","type":"error"},{"inputs":[],"name":"SessionSignerUnauthorized","type":"error"},{"inputs":[],"name":"TimelockInsufficientDelay","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"UnauthorizedCallContext","type":"error"},{"inputs":[],"name":"UpgradeFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"}],"name":"AllowanceRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"}],"name":"ApprovalForAllRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"BatchExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"ERC1155BatchWithdrawal","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20Withdrawal","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"result","type":"bytes"}],"name":"Execution","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"version","type":"uint64"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pendingOwner","type":"address"}],"name":"OwnershipHandoverCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipHandoverCompleted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pendingOwner","type":"address"}],"name":"OwnershipHandoverRequested","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sessionSigner","type":"address"},{"indexed":false,"internalType":"uint256","name":"validUntil","type":"uint256"}],"name":"SessionSignerAuthorized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sessionSigner","type":"address"}],"name":"SessionSignerRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sessionSigner","type":"address"}],"name":"SessionSignerRevokedEmergency","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"_sessionSigner","type":"address"},{"internalType":"uint256","name":"_validUntil","type":"uint256"}],"name":"authorizeSessionSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cancelOwnershipHandover","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_deadline","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"completeOwnershipHandover","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct Call[]","name":"calls","type":"tuple[]"}],"internalType":"struct Batch","name":"_batch","type":"tuple"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"execute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"id","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_hash","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"isValidSignature","outputs":[{"internalType":"bytes4","name":"result","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nonce","outputs":[{"internalType":"uint256","name":"nonce_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"result","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"uint256","name":"paused_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"result","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_spender","type":"address"}],"name":"revokeAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"revokeApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_sessionSigner","type":"address"}],"name":"revokeSessionSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_sessionSigner","type":"address"}],"name":"revokeSessionSignerEmergency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"sessionSignerAuthorizedUntil","outputs":[{"internalType":"uint256","name":"validUntil_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_implementation","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"upgrade","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":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"withdrawERC1155","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}],"devdoc":{"author":"Polymarket","details":"Deployed as an ERC-1967 proxy via {DepositWalletFactory}. Supports batch execution      of arbitrary calls signed by the owner or an authorized session signer, ERC-1271      signature validation, two-step ownership transfers, and an owner-controlled pause      mechanism with a timelock for emergency asset recovery.","errors":{"FnSelectorNotRecognized()":[{"details":"The function selector is not recognized."}],"InvalidInitialization()":[{"details":"The contract is already initialized."}],"NotInitializing()":[{"details":"The contract is not initializing."}],"UnauthorizedCallContext()":[{"details":"The call is from an unauthorized call context."}],"UpgradeFailed()":[{"details":"The upgrade failed."}]},"events":{"AllowanceRevoked(address,address)":{"params":{"spender":"The address whose allowance was revoked.","token":"The address of the ERC-20 token."}},"ApprovalForAllRevoked(address,address)":{"params":{"operator":"The address whose approval was revoked.","token":"The address of the ERC-1155 token."}},"BatchExecuted(uint256)":{"params":{"nonce":"The nonce of the executed batch."}},"ERC1155BatchWithdrawal(address,address,uint256[],uint256[])":{"params":{"amounts":"The amounts withdrawn for each token ID.","ids":"The token IDs withdrawn.","to":"The recipient address.","token":"The address of the ERC-1155 token."}},"ERC20Withdrawal(address,address,uint256)":{"params":{"amount":"The amount of tokens withdrawn.","to":"The recipient address.","token":"The address of the ERC-20 token."}},"Execution(address,uint256,bytes,bytes)":{"params":{"data":"The calldata sent to the target.","result":"The return data from the call.","target":"The address called.","value":"The ETH value sent with the call."}},"Initialized(uint64)":{"details":"Triggered when the contract has been initialized."},"OwnershipHandoverCanceled(address)":{"params":{"pendingOwner":"The address of the canceled pending owner."}},"OwnershipHandoverCompleted(address,address)":{"params":{"newOwner":"The address of the incoming owner.","previousOwner":"The address of the outgoing owner."}},"OwnershipHandoverRequested(address)":{"params":{"pendingOwner":"The address of the proposed new owner."}},"OwnershipTransferred(address,address)":{"params":{"newOwner":"The address of the new owner.","oldOwner":"The address of the previous owner."}},"Paused(uint256)":{"params":{"timestamp":"The block timestamp at which the wallet was paused."}},"SessionSignerAuthorized(address,uint256)":{"params":{"sessionSigner":"The address of the authorized session signer.","validUntil":"The timestamp until which the session signer is valid."}},"SessionSignerRevoked(address)":{"params":{"sessionSigner":"The address of the revoked session signer."}},"SessionSignerRevokedEmergency(address)":{"params":{"sessionSigner":"The address of the revoked session signer."}},"Unpaused(uint256)":{"params":{"timestamp":"The block timestamp at which the wallet was unpaused."}},"Upgraded(address)":{"details":"Emitted when the proxy's implementation is upgraded."}},"kind":"dev","methods":{"authorizeSessionSigner(address,uint256)":{"details":"Can only be invoked via batch execution (self-call).","params":{"_sessionSigner":"The address to authorize as a session signer.","_validUntil":"The timestamp until which the session signer is valid."}},"cancelOwnershipHandover()":{"details":"Can only be invoked via batch execution (self-call)."},"completeOwnershipHandover(uint256,bytes)":{"details":"Permissionless — anyone may submit, but the pending owner must have signed      an EIP-712 `OwnershipHandover` message.","params":{"_deadline":"The deadline timestamp included in the signed message.","_signature":"The EIP-712 signature from the pending owner."}},"constructor":{"details":"Disables initializers on the implementation contract to prevent misuse."},"eip712Domain()":{"details":"See: https://eips.ethereum.org/EIPS/eip-5267"},"execute((address,uint256,uint256,(address,uint256,bytes)[]),bytes)":{"details":"Validates the batch (non-empty, correct wallet, nonce, deadline), verifies the EIP-712      signature against the owner or an authorized session signer, then executes each call      sequentially. Session signers are prevented from calling the wallet itself.","params":{"_batch":"The batch containing the target wallet, nonce, deadline, and calls.","_signature":"The EIP-712 signature authorizing the batch (owner or session signer)."}},"factory()":{"returns":{"_0":"The factory address decoded from the ERC-1967 immutable args."}},"id()":{"returns":{"_0":"The wallet ID decoded from the ERC-1967 immutable args."}},"initialize(address)":{"details":"This replaces the constructor for upgradeable contracts.","params":{"_owner":"The address to set as the wallet owner."}},"isValidSignature(bytes32,bytes)":{"details":"Overrides Solady's ERC-1271 implementation to support session signer signatures.      The resolved signer is stored in memory at `_ERC1271_SIGNER_MEM_SLOT` so that      `_erc1271Signer` can return it to the parent verification logic.","params":{"_hash":"The hash that was signed.","_signature":"The signature to validate (may contain a session signer wrapper)."},"returns":{"result":"`ERC1271_MAGIC_VALUE` if the signature is valid, otherwise reverts or returns failure."}},"nonce()":{"returns":{"nonce_":"The current nonce."}},"owner()":{"returns":{"result":"The owner address."}},"pause()":{"details":"After pausing, the owner must wait for the timelock delay before calling      paused-only functions (e.g., withdrawals, revocations)."},"paused()":{"returns":{"paused_":"The paused timestamp, or zero if not paused."}},"pendingOwner()":{"returns":{"result":"The pending owner address, or `address(0)` if none."}},"proxiableUUID()":{"details":"Returns the storage slot used by the implementation, as specified in [ERC1822](https://eips.ethereum.org/EIPS/eip-1822). Note: The `notDelegated` modifier prevents accidental upgrades to an implementation that is a proxy contract."},"revokeAllowance(address,address)":{"details":"Requires the wallet to be paused and the timelock delay to have elapsed.","params":{"_spender":"The spender whose allowance is revoked.","_token":"The ERC-20 token address."}},"revokeApprovalForAll(address,address)":{"details":"Requires the wallet to be paused and the timelock delay to have elapsed.","params":{"_operator":"The operator whose approval is revoked.","_token":"The ERC-1155 token address."}},"revokeSessionSigner(address)":{"details":"Can only be invoked via batch execution (self-call).","params":{"_sessionSigner":"The session signer address to revoke."}},"revokeSessionSignerEmergency(address)":{"details":"Requires the wallet to be paused and the timelock delay to have elapsed.","params":{"_sessionSigner":"The session signer to revoke."}},"sessionSignerAuthorizedUntil(address)":{"params":{"_signer":"The session signer address to query."},"returns":{"validUntil_":"The authorization expiry timestamp, or zero if not authorized."}},"transferOwnership(address)":{"details":"Can only be invoked via batch execution (self-call).","params":{"_newOwner":"The proposed new owner address."}},"unpause()":{"details":"Requires the wallet to be paused and the timelock delay to have elapsed."},"upgrade(address,bytes)":{"details":"Can only be invoked via batch execution (self-call).      The new implementation must be authorized by the factory.","params":{"_data":"Optional calldata to execute on the new implementation after upgrade.","_implementation":"The address of the new implementation contract."}},"upgradeToAndCall(address,bytes)":{"details":"Upgrades the proxy's implementation to `newImplementation`. Emits a {Upgraded} event. Note: Passing in empty `data` skips the delegatecall to `newImplementation`."},"withdrawERC1155(address,address,uint256[],uint256[])":{"details":"Requires the wallet to be paused and the timelock delay to have elapsed.","params":{"_amounts":"The amounts for each token ID.","_ids":"The token IDs to withdraw.","_to":"The recipient address.","_token":"The ERC-1155 token address."}},"withdrawERC20(address,address,uint256)":{"details":"Requires the wallet to be paused and the timelock delay to have elapsed.","params":{"_amount":"The amount of tokens to withdraw.","_to":"The recipient address.","_token":"The ERC-20 token address."}}},"stateVariables":{"_ERC1271_SIGNER_MEM_SLOT":{"details":"Memory slot used to pass the resolved signer from `isValidSignature` to `_erc1271Signer`. Chosen at 0x80 (first allocatable slot). Before the super call we advance the free memory pointer to 0xa0 so the parent and all callees allocate above this slot and do not overwrite."},"_NONCE_SLOT":{"details":"Storage slot for the replay-protection nonce. keccak256(\"DepositWallet.nonce\") - 1"},"_PAUSED_SLOT":{"details":"Storage slot for the paused timestamp. keccak256(\"DepositWallet.paused\") - 1"},"_SESSION_SIGNER_SLOT":{"details":"Base storage slot for the session signer mapping. keccak256(\"DepositWallet.sessionSignerAuthorizedUntil\") - 1"}},"title":"DepositWallet","version":1},"userdoc":{"errors":{"CallFailed()":[{"notice":"Thrown when a low-level call within a batch execution fails."}],"EmptyBatch()":[{"notice":"Thrown when a batch contains zero calls."}],"Expired()":[{"notice":"Thrown when a deadline has passed."}],"InvalidImplementation()":[{"notice":"Thrown when a UUPS upgrade targets an unauthorized implementation."}],"InvalidNonce()":[{"notice":"Thrown when the batch nonce does not match the wallet's current nonce."}],"InvalidOwner()":[{"notice":"Thrown when the provided owner address is invalid (e.g., zero address)."}],"InvalidSignature()":[{"notice":"Thrown when a signature fails verification."}],"InvalidWallet()":[{"notice":"Thrown when the batch's wallet address does not match the executing wallet."}],"NoPendingOwner()":[{"notice":"Thrown when an ownership handover is expected but none is pending."}],"NotPaused()":[{"notice":"Thrown when a paused-only function is called while the wallet is not paused."}],"OnlyFactory()":[{"notice":"Thrown when the caller is not the factory contract."}],"OnlySelf()":[{"notice":"Thrown when a function restricted to self-calls is invoked externally."}],"SessionSignerSelfCallNotAllowed()":[{"notice":"Thrown when a session signer attempts to call the wallet itself."}],"SessionSignerUnauthorized()":[{"notice":"Thrown when a session signer's authorization has expired or does not exist."}],"TimelockInsufficientDelay()":[{"notice":"Thrown when the timelock delay has not elapsed since the wallet was paused."}],"Unauthorized()":[{"notice":"Thrown when the caller is not authorized to perform the action."}]},"events":{"AllowanceRevoked(address,address)":{"notice":"Emitted when an ERC-20 allowance is revoked by the owner."},"ApprovalForAllRevoked(address,address)":{"notice":"Emitted when an ERC-1155 operator approval is revoked by the owner."},"BatchExecuted(uint256)":{"notice":"Emitted after a batch of calls has been successfully executed."},"ERC1155BatchWithdrawal(address,address,uint256[],uint256[])":{"notice":"Emitted when ERC-1155 tokens are batch-withdrawn from the wallet by the owner."},"ERC20Withdrawal(address,address,uint256)":{"notice":"Emitted when ERC-20 tokens are withdrawn from the wallet by the owner."},"Execution(address,uint256,bytes,bytes)":{"notice":"Emitted for each individual call executed within a batch."},"OwnershipHandoverCanceled(address)":{"notice":"Emitted when a pending ownership handover is canceled."},"OwnershipHandoverCompleted(address,address)":{"notice":"Emitted when a two-step ownership handover is completed."},"OwnershipHandoverRequested(address)":{"notice":"Emitted when a two-step ownership handover is initiated."},"OwnershipTransferred(address,address)":{"notice":"Emitted when ownership is transferred."},"Paused(uint256)":{"notice":"Emitted when the wallet is paused."},"SessionSignerAuthorized(address,uint256)":{"notice":"Emitted when a session signer is authorized."},"SessionSignerRevoked(address)":{"notice":"Emitted when a session signer is revoked via a self-call."},"SessionSignerRevokedEmergency(address)":{"notice":"Emitted when a session signer is emergency-revoked by the owner while paused."},"Unpaused(uint256)":{"notice":"Emitted when the wallet is unpaused."}},"kind":"user","methods":{"authorizeSessionSigner(address,uint256)":{"notice":"Authorizes a session signer until the specified timestamp."},"cancelOwnershipHandover()":{"notice":"Cancels any pending ownership handover."},"completeOwnershipHandover(uint256,bytes)":{"notice":"Completes a pending ownership transfer."},"execute((address,uint256,uint256,(address,uint256,bytes)[]),bytes)":{"notice":"Executes a signed batch of calls through the factory."},"factory()":{"notice":"Returns the factory contract that deployed this wallet."},"id()":{"notice":"Returns the unique identifier assigned to this wallet at deployment."},"initialize(address)":{"notice":"Initializes the wallet with a designated owner."},"isValidSignature(bytes32,bytes)":{"notice":"Validates a signature against the wallet owner or an authorized session signer."},"nonce()":{"notice":"Returns the wallet's current execution nonce."},"owner()":{"notice":"Returns the current owner of the wallet."},"pause()":{"notice":"Pauses the wallet, recording the current timestamp."},"paused()":{"notice":"Returns the timestamp at which the wallet was paused."},"pendingOwner()":{"notice":"Returns the pending owner awaiting handover completion."},"revokeAllowance(address,address)":{"notice":"Revokes an ERC-20 allowance by setting it to zero."},"revokeApprovalForAll(address,address)":{"notice":"Revokes an ERC-1155 operator approval."},"revokeSessionSigner(address)":{"notice":"Revokes a session signer's authorization."},"revokeSessionSignerEmergency(address)":{"notice":"Emergency revocation of a session signer by the owner."},"sessionSignerAuthorizedUntil(address)":{"notice":"Returns the timestamp until which a session signer is authorized."},"transferOwnership(address)":{"notice":"Initiates a two-step ownership transfer to a new owner."},"unpause()":{"notice":"Unpauses the wallet."},"upgrade(address,bytes)":{"notice":"Upgrades the wallet implementation via UUPS."},"withdrawERC1155(address,address,uint256[],uint256[])":{"notice":"Batch-withdraws ERC-1155 tokens from the wallet."},"withdrawERC20(address,address,uint256)":{"notice":"Withdraws ERC-20 tokens from the wallet."}},"notice":"Minimal, upgradeable smart-contract wallet for deposit operations.","version":1}},"settings":{"compilationTarget":{"src/DepositWallet.sol":"DepositWallet"},"evmVersion":"cancun","libraries":{},"metadata":{"bytecodeHash":"ipfs"},"optimizer":{"enabled":true,"runs":1000000},"remappings":[":@deposit-wallet/src/=src/",":@forge-std/=lib/forge-std/",":@solady/=lib/solady/"]},"sources":{"lib/solady/src/accounts/ERC1271.sol":{"keccak256":"0x196fbf4f691aba451297e24974216613d1d13514f35a446662ad6b8d62f1a2fd","license":"MIT","urls":["bzz-raw://4fcf2fb41d12165cc219f737472023997b726247d7bc7f7e2b26fcf395047953","dweb:/ipfs/QmYoHCQaLtW2M4U5NpYWPsomzqABu1GFJJ71TJHf4Qm33N"]},"lib/solady/src/accounts/Receiver.sol":{"keccak256":"0xc879aa81dd5639f5fd97b31acd91658ffe33ae4b72b70ed7bd701c37addce43b","license":"MIT","urls":["bzz-raw://2e03a8d37d48644857d94f7432c1e2272bfd19649dfe80aba8f979f157f71f00","dweb:/ipfs/QmWWS34bNWhiZgLXS9gtD8N2dxreRsVXxhvQRKqd4wKUuU"]},"lib/solady/src/auth/Ownable.sol":{"keccak256":"0xc208cdd9de02bbf4b5edad18b88e23a2be7ff56d2287d5649329dc7cda64b9a3","license":"MIT","urls":["bzz-raw://e8fba079cc7230c617f7493a2e97873f88e59a53a5018fcb2e2b6ac42d8aa5a3","dweb:/ipfs/QmTXg8GSt8hsK2cZhbPFrund1mrwVdkLQmEPoQaFy4fhjs"]},"lib/solady/src/auth/OwnableRoles.sol":{"keccak256":"0x34fc1e43ab0c413faea47d5198d49879ccafd3a46c1657083ec79e3f4ca4359d","license":"MIT","urls":["bzz-raw://539e93fa51da529c6fdf122a68239652e98a4e31eaf5a08868339404878a095d","dweb:/ipfs/Qmf4SGkn3LDLGAeFmuSnETrQUCa8g8h2dSoukCwyj36yy6"]},"lib/solady/src/tokens/ERC1155.sol":{"keccak256":"0x306249cc3611727ffa9e15ec816282a60fd9629e5ea03ab1c780d638d1537c68","license":"MIT","urls":["bzz-raw://f5627bb90f7db938144047956c23ce8b1b00925aeceb75561f599585f14c2a76","dweb:/ipfs/QmPQ9wMm5govH7jNTF7AMwvt6LrrZgurJhPe7feZBxfpop"]},"lib/solady/src/utils/CallContextChecker.sol":{"keccak256":"0xc54c743a03f4909826712e9c6b683ca95e8b0c120c55284a9e3572621ebd734b","license":"MIT","urls":["bzz-raw://3d3138009aba3d2fd310636f3cc1d6029e970c57ddb74693bebf2a02d3e6f12d","dweb:/ipfs/QmauMpcVDyQqVnAUF75DXy831LvtxyFS7GND7kge1Zgw55"]},"lib/solady/src/utils/ECDSA.sol":{"keccak256":"0xb0754260daabfe6f20dd16f2213823f27c8df1089b43c8eda9b3c2a6eca07478","license":"MIT","urls":["bzz-raw://ffef4ca363ec0e2437b5e195fbb3d58bdc6750921fce32f351ca1c092ad36a75","dweb:/ipfs/QmTcnAyxwvQg3h357PdB8S8oz5bBt85J4SvEgmMqwAfPKF"]},"lib/solady/src/utils/EIP712.sol":{"keccak256":"0x53ccaa757944900e7423347c3c35ea5a905580f3f075452b8468a501a9c39839","license":"MIT","urls":["bzz-raw://aa5688d98319fbeb5b3c46330a394e15a0f2c862d651415e183da4179b918351","dweb:/ipfs/QmZZFrFWmUCFL1qkZDVm3oqrDkQfumYnnksF6cpPkAHdtJ"]},"lib/solady/src/utils/Initializable.sol":{"keccak256":"0x58ee7b2e966232ca1ca9e9e705d8afcefa83fe29d37d6f8361d73015a9db1fe4","license":"MIT","urls":["bzz-raw://59f134cb038e0a547f0a3dbfe9c9b6939f7b39dff64646a79e8cf2dd6ba14f80","dweb:/ipfs/QmfXt149JQEWsYbLUkS9iLP6kGZqzHYyMg7SsLUUPgafEb"]},"lib/solady/src/utils/LibClone.sol":{"keccak256":"0x1b96fd03a3948155bd2fe95dc4980930c759b174026e18f11bc8e88d55ae030e","license":"MIT","urls":["bzz-raw://64998d16472a127031ee6a796ed9afcf13dd662afd30eb4d3e2a42c2bc9fd204","dweb:/ipfs/QmTXHGy9t8YTW96tjiZ8RBqmijXUTqc1JznEBqHv8Duc4A"]},"lib/solady/src/utils/SafeTransferLib.sol":{"keccak256":"0xf53a25143307304d9de7186f93f11faae3cc4f722c4b088aed6f4f8f87a02f7a","license":"MIT","urls":["bzz-raw://b722c08826ece540bbc4ee9f825aac501282c0900a0a2caa618154d77f23223d","dweb:/ipfs/QmeMsPT5S4vV8f7DYC2eZ7TBCrtRi9cKMsoW6Ca62Uaqwg"]},"lib/solady/src/utils/SignatureCheckerLib.sol":{"keccak256":"0x098c7eb88b3048f227b240e0e5bf1da4a8f7622b30f6d7c06416bfcab3225e77","license":"MIT","urls":["bzz-raw://50c2766f652916c5d6433665fb1c3b2f04c3d9292a35c12e0f8d7c71dd6438cb","dweb:/ipfs/QmWTMwN2RDZUUPg7KkH1qFBjTSh84Zw8bbYwRBCQUtLN2h"]},"lib/solady/src/utils/UUPSUpgradeable.sol":{"keccak256":"0x63899eaf1a24713464b8084ada33a83c4b7db789fe83ae22f016e39646bee361","license":"MIT","urls":["bzz-raw://617fa735ffa8ba31051745614a508abd69d2cfc1b1bc1eb3c772865db5f7ce65","dweb:/ipfs/QmR1pQbHPyXcLbFm2vHrXBs1qRFrGC22gF7wWYamYy8aaE"]},"src/DepositWallet.sol":{"keccak256":"0x9b1e2a01ef4e46a8e68f38562ffcea60da8822c16fa66fa763d4fe0d96484a14","license":"BUSL-1.1","urls":["bzz-raw://3717dccfb4b5533d874565db8dce721458223603d8ae8b36980abdb971e990d4","dweb:/ipfs/QmV8xGmVVhZYbZVkbJMqX7d4aCqReDPDwW6CpUDZkxznWh"]},"src/DepositWalletFactory.sol":{"keccak256":"0x9578f922ac4e65388fa00edaf19505edbc5d400d17b0360a0d7247790516ddf8","license":"BUSL-1.1","urls":["bzz-raw://acfe35dae98a650bdaa404dd6b757e1b0bd998a05b8e8a956d82e702011c35cd","dweb:/ipfs/QmSwhEfjumbg7urxaDTyBgXYsJvKbn1m3Bcxs1cjEddZHE"]},"src/Errors.sol":{"keccak256":"0xc1737f29d8587bdd60a4e273ec5525052c60113013d61e72488aadf956875830","license":"BUSL-1.1","urls":["bzz-raw://9b66ac96c4ab85adb1a5ddd4ea293ab059518eca27ea37850595fd48ca7ab614","dweb:/ipfs/QmUnA1xzxhxQNUSiDXstTULYHhRW6n4KSMgDKcjkLxE6pW"]},"src/Events.sol":{"keccak256":"0x533975b4866e0587fa01133c71b41c31502c91e9e5dad7dcc4f326d8fcfd0a3d","license":"BUSL-1.1","urls":["bzz-raw://07801a1a686c34ee79212fd0e757d95c3293df3e5d0342e2610b7dee649f9ba7","dweb:/ipfs/QmY8YtxPYKSZCqpXHGLQUaVLNNTqrsTEyEyv8Wq9QDN7c1"]},"src/interfaces/IDepositWallet.sol":{"keccak256":"0xb746e6894bcad8ddc7b35fe094c8310bbc932fd99c58d8d11f4f1eae632f1620","license":"BUSL-1.1","urls":["bzz-raw://a8ae7517449e209d01a7eeaba5249b30af3250e84750b0aaa4719daa33ab9a3f","dweb:/ipfs/QmdEshsP7nsET7qdLWZg6RMfYdJRZwi3boWsFPNNUpkPav"]},"src/libraries/Ownable.sol":{"keccak256":"0xe4f63ef5f967690bee2e731f349df50ac378b88594001be7a3b0bc320abd817a","license":"BUSL-1.1","urls":["bzz-raw://8c9970d4534c12b2a135b95799fc96f475630bdb8ef75ba583aeb95288705851","dweb:/ipfs/QmV7x6DUfLyE4xmwV4sFV9g5WXY594aP986kKme9r1JUF5"]},"src/libraries/SessionSignerLib.sol":{"keccak256":"0x7ad60b737fcc5c25adc985978bbefb6c602739c79a4f748cebb461b791035f4b","license":"BUSL-1.1","urls":["bzz-raw://028c0ed17bccc7193d339d497b14ae69e1a822382690c8ec2d48c195d98dc221","dweb:/ipfs/QmVZibtLHvtFkhdFYfhspLDYm3dBcZkLkHEZh7QS1Zwe75"]},"src/libraries/WalletLib.sol":{"keccak256":"0x5434d2fa5ae09569a73ad2d42518f632bd41d52864c1e0320de97082b4273b95","license":"BUSL-1.1","urls":["bzz-raw://0d5fd49206129a9f133ee6cf68ad3c17b866d4e43ef09638c2f2ddbc5c568453","dweb:/ipfs/QmbngHk8oJG8uSsNny8qCXjuap64Eq1XUheCxUdjKgKHTH"]}},"version":1},"storageLayout":{"types":null,"storage":[]},"transientStorageLayout":{"types":null,"storage":[]},"userdoc":{"kind":"user","errors":{"Expired()":[{"notice":"Thrown when a deadline has passed."}],"OnlySelf()":[{"notice":"Thrown when a function restricted to self-calls is invoked externally."}],"NotPaused()":[{"notice":"Thrown when a paused-only function is called while the wallet is not paused."}],"CallFailed()":[{"notice":"Thrown when a low-level call within a batch execution fails."}],"EmptyBatch()":[{"notice":"Thrown when a batch contains zero calls."}],"OnlyFactory()":[{"notice":"Thrown when the caller is not the factory contract."}],"InvalidNonce()":[{"notice":"Thrown when the batch nonce does not match the wallet's current nonce."}],"InvalidOwner()":[{"notice":"Thrown when the provided owner address is invalid (e.g., zero address)."}],"Unauthorized()":[{"notice":"Thrown when the caller is not authorized to perform the action."}],"InvalidWallet()":[{"notice":"Thrown when the batch's wallet address does not match the executing wallet."}],"NoPendingOwner()":[{"notice":"Thrown when an ownership handover is expected but none is pending."}],"InvalidSignature()":[{"notice":"Thrown when a signature fails verification."}],"InvalidImplementation()":[{"notice":"Thrown when a UUPS upgrade targets an unauthorized implementation."}],"SessionSignerUnauthorized()":[{"notice":"Thrown when a session signer's authorization has expired or does not exist."}],"TimelockInsufficientDelay()":[{"notice":"Thrown when the timelock delay has not elapsed since the wallet was paused."}],"SessionSignerSelfCallNotAllowed()":[{"notice":"Thrown when a session signer attempts to call the wallet itself."}]},"events":{"Paused(uint256)":{"notice":"Emitted when the wallet is paused."},"Unpaused(uint256)":{"notice":"Emitted when the wallet is unpaused."},"BatchExecuted(uint256)":{"notice":"Emitted after a batch of calls has been successfully executed."},"SessionSignerRevoked(address)":{"notice":"Emitted when a session signer is revoked via a self-call."},"AllowanceRevoked(address,address)":{"notice":"Emitted when an ERC-20 allowance is revoked by the owner."},"OwnershipHandoverCanceled(address)":{"notice":"Emitted when a pending ownership handover is canceled."},"OwnershipHandoverRequested(address)":{"notice":"Emitted when a two-step ownership handover is initiated."},"OwnershipTransferred(address,address)":{"notice":"Emitted when ownership is transferred."},"ApprovalForAllRevoked(address,address)":{"notice":"Emitted when an ERC-1155 operator approval is revoked by the owner."},"Execution(address,uint256,bytes,bytes)":{"notice":"Emitted for each individual call executed within a batch."},"SessionSignerRevokedEmergency(address)":{"notice":"Emitted when a session signer is emergency-revoked by the owner while paused."},"ERC20Withdrawal(address,address,uint256)":{"notice":"Emitted when ERC-20 tokens are withdrawn from the wallet by the owner."},"SessionSignerAuthorized(address,uint256)":{"notice":"Emitted when a session signer is authorized."},"OwnershipHandoverCompleted(address,address)":{"notice":"Emitted when a two-step ownership handover is completed."},"ERC1155BatchWithdrawal(address,address,uint256[],uint256[])":{"notice":"Emitted when ERC-1155 tokens are batch-withdrawn from the wallet by the owner."}},"notice":"Minimal, upgradeable smart-contract wallet for deposit operations.","methods":{"id()":{"notice":"Returns the unique identifier assigned to this wallet at deployment."},"nonce()":{"notice":"Returns the wallet's current execution nonce."},"owner()":{"notice":"Returns the current owner of the wallet."},"pause()":{"notice":"Pauses the wallet, recording the current timestamp."},"paused()":{"notice":"Returns the timestamp at which the wallet was paused."},"factory()":{"notice":"Returns the factory contract that deployed this wallet."},"unpause()":{"notice":"Unpauses the wallet."},"pendingOwner()":{"notice":"Returns the pending owner awaiting handover completion."},"initialize(address)":{"notice":"Initializes the wallet with a designated owner."},"upgrade(address,bytes)":{"notice":"Upgrades the wallet implementation via UUPS."},"cancelOwnershipHandover()":{"notice":"Cancels any pending ownership handover."},"transferOwnership(address)":{"notice":"Initiates a two-step ownership transfer to a new owner."},"revokeSessionSigner(address)":{"notice":"Revokes a session signer's authorization."},"isValidSignature(bytes32,bytes)":{"notice":"Validates a signature against the wallet owner or an authorized session signer."},"revokeAllowance(address,address)":{"notice":"Revokes an ERC-20 allowance by setting it to zero."},"revokeApprovalForAll(address,address)":{"notice":"Revokes an ERC-1155 operator approval."},"revokeSessionSignerEmergency(address)":{"notice":"Emergency revocation of a session signer by the owner."},"sessionSignerAuthorizedUntil(address)":{"notice":"Returns the timestamp until which a session signer is authorized."},"withdrawERC20(address,address,uint256)":{"notice":"Withdraws ERC-20 tokens from the wallet."},"authorizeSessionSigner(address,uint256)":{"notice":"Authorizes a session signer until the specified timestamp."},"completeOwnershipHandover(uint256,bytes)":{"notice":"Completes a pending ownership transfer."},"withdrawERC1155(address,address,uint256[],uint256[])":{"notice":"Batch-withdraws ERC-1155 tokens from the wallet."},"execute((address,uint256,uint256,(address,uint256,bytes)[]),bytes)":{"notice":"Executes a signed batch of calls through the factory."}},"version":1},"devdoc":{"kind":"dev","title":"DepositWallet","author":"Polymarket","errors":{"UpgradeFailed()":[{"details":"The upgrade failed."}],"NotInitializing()":[{"details":"The contract is not initializing."}],"InvalidInitialization()":[{"details":"The contract is already initialized."}],"FnSelectorNotRecognized()":[{"details":"The function selector is not recognized."}],"UnauthorizedCallContext()":[{"details":"The call is from an unauthorized call context."}]},"events":{"Paused(uint256)":{"params":{"timestamp":"The block timestamp at which the wallet was paused."}},"Unpaused(uint256)":{"params":{"timestamp":"The block timestamp at which the wallet was unpaused."}},"Upgraded(address)":{"details":"Emitted when the proxy's implementation is upgraded."},"Initialized(uint64)":{"details":"Triggered when the contract has been initialized."},"BatchExecuted(uint256)":{"params":{"nonce":"The nonce of the executed batch."}},"SessionSignerRevoked(address)":{"params":{"sessionSigner":"The address of the revoked session signer."}},"AllowanceRevoked(address,address)":{"params":{"token":"The address of the ERC-20 token.","spender":"The address whose allowance was revoked."}},"OwnershipHandoverCanceled(address)":{"params":{"pendingOwner":"The address of the canceled pending owner."}},"OwnershipHandoverRequested(address)":{"params":{"pendingOwner":"The address of the proposed new owner."}},"OwnershipTransferred(address,address)":{"params":{"newOwner":"The address of the new owner.","oldOwner":"The address of the previous owner."}},"ApprovalForAllRevoked(address,address)":{"params":{"token":"The address of the ERC-1155 token.","operator":"The address whose approval was revoked."}},"Execution(address,uint256,bytes,bytes)":{"params":{"data":"The calldata sent to the target.","value":"The ETH value sent with the call.","result":"The return data from the call.","target":"The address called."}},"SessionSignerRevokedEmergency(address)":{"params":{"sessionSigner":"The address of the revoked session signer."}},"ERC20Withdrawal(address,address,uint256)":{"params":{"to":"The recipient address.","token":"The address of the ERC-20 token.","amount":"The amount of tokens withdrawn."}},"SessionSignerAuthorized(address,uint256)":{"params":{"validUntil":"The timestamp until which the session signer is valid.","sessionSigner":"The address of the authorized session signer."}},"OwnershipHandoverCompleted(address,address)":{"params":{"newOwner":"The address of the incoming owner.","previousOwner":"The address of the outgoing owner."}},"ERC1155BatchWithdrawal(address,address,uint256[],uint256[])":{"params":{"to":"The recipient address.","ids":"The token IDs withdrawn.","token":"The address of the ERC-1155 token.","amounts":"The amounts withdrawn for each token ID."}}},"details":"Deployed as an ERC-1967 proxy via {DepositWalletFactory}. Supports batch execution      of arbitrary calls signed by the owner or an authorized session signer, ERC-1271      signature validation, two-step ownership transfers, and an owner-controlled pause      mechanism with a timelock for emergency asset recovery.","methods":{"id()":{"returns":{"_0":"The wallet ID decoded from the ERC-1967 immutable args."}},"nonce()":{"returns":{"nonce_":"The current nonce."}},"owner()":{"returns":{"result":"The owner address."}},"pause()":{"details":"After pausing, the owner must wait for the timelock delay before calling      paused-only functions (e.g., withdrawals, revocations)."},"paused()":{"returns":{"paused_":"The paused timestamp, or zero if not paused."}},"factory()":{"returns":{"_0":"The factory address decoded from the ERC-1967 immutable args."}},"unpause()":{"details":"Requires the wallet to be paused and the timelock delay to have elapsed."},"constructor":{"details":"Disables initializers on the implementation contract to prevent misuse."},"eip712Domain()":{"details":"See: https://eips.ethereum.org/EIPS/eip-5267"},"pendingOwner()":{"returns":{"result":"The pending owner address, or `address(0)` if none."}},"proxiableUUID()":{"details":"Returns the storage slot used by the implementation, as specified in [ERC1822](https://eips.ethereum.org/EIPS/eip-1822). Note: The `notDelegated` modifier prevents accidental upgrades to an implementation that is a proxy contract."},"initialize(address)":{"params":{"_owner":"The address to set as the wallet owner."},"details":"This replaces the constructor for upgradeable contracts."},"upgrade(address,bytes)":{"params":{"_data":"Optional calldata to execute on the new implementation after upgrade.","_implementation":"The address of the new implementation contract."},"details":"Can only be invoked via batch execution (self-call).      The new implementation must be authorized by the factory."},"cancelOwnershipHandover()":{"details":"Can only be invoked via batch execution (self-call)."},"transferOwnership(address)":{"params":{"_newOwner":"The proposed new owner address."},"details":"Can only be invoked via batch execution (self-call)."},"revokeSessionSigner(address)":{"params":{"_sessionSigner":"The session signer address to revoke."},"details":"Can only be invoked via batch execution (self-call)."},"isValidSignature(bytes32,bytes)":{"params":{"_hash":"The hash that was signed.","_signature":"The signature to validate (may contain a session signer wrapper)."},"details":"Overrides Solady's ERC-1271 implementation to support session signer signatures.      The resolved signer is stored in memory at `_ERC1271_SIGNER_MEM_SLOT` so that      `_erc1271Signer` can return it to the parent verification logic.","returns":{"result":"`ERC1271_MAGIC_VALUE` if the signature is valid, otherwise reverts or returns failure."}},"upgradeToAndCall(address,bytes)":{"details":"Upgrades the proxy's implementation to `newImplementation`. Emits a {Upgraded} event. Note: Passing in empty `data` skips the delegatecall to `newImplementation`."},"revokeAllowance(address,address)":{"params":{"_token":"The ERC-20 token address.","_spender":"The spender whose allowance is revoked."},"details":"Requires the wallet to be paused and the timelock delay to have elapsed."},"revokeApprovalForAll(address,address)":{"params":{"_token":"The ERC-1155 token address.","_operator":"The operator whose approval is revoked."},"details":"Requires the wallet to be paused and the timelock delay to have elapsed."},"revokeSessionSignerEmergency(address)":{"params":{"_sessionSigner":"The session signer to revoke."},"details":"Requires the wallet to be paused and the timelock delay to have elapsed."},"sessionSignerAuthorizedUntil(address)":{"params":{"_signer":"The session signer address to query."},"returns":{"validUntil_":"The authorization expiry timestamp, or zero if not authorized."}},"withdrawERC20(address,address,uint256)":{"params":{"_to":"The recipient address.","_token":"The ERC-20 token address.","_amount":"The amount of tokens to withdraw."},"details":"Requires the wallet to be paused and the timelock delay to have elapsed."},"authorizeSessionSigner(address,uint256)":{"params":{"_validUntil":"The timestamp until which the session signer is valid.","_sessionSigner":"The address to authorize as a session signer."},"details":"Can only be invoked via batch execution (self-call)."},"completeOwnershipHandover(uint256,bytes)":{"params":{"_deadline":"The deadline timestamp included in the signed message.","_signature":"The EIP-712 signature from the pending owner."},"details":"Permissionless — anyone may submit, but the pending owner must have signed      an EIP-712 `OwnershipHandover` message."},"withdrawERC1155(address,address,uint256[],uint256[])":{"params":{"_to":"The recipient address.","_ids":"The token IDs to withdraw.","_token":"The ERC-1155 token address.","_amounts":"The amounts for each token ID."},"details":"Requires the wallet to be paused and the timelock delay to have elapsed."},"execute((address,uint256,uint256,(address,uint256,bytes)[]),bytes)":{"params":{"_batch":"The batch containing the target wallet, nonce, deadline, and calls.","_signature":"The EIP-712 signature authorizing the batch (owner or session signer)."},"details":"Validates the batch (non-empty, correct wallet, nonce, deadline), verifies the EIP-712      signature against the owner or an authorized session signer, then executes each call      sequentially. Session signers are prevented from calling the wallet itself."}},"version":1,"stateVariables":{"_NONCE_SLOT":{"details":"Storage slot for the replay-protection nonce. keccak256(\"DepositWallet.nonce\") - 1"},"_PAUSED_SLOT":{"details":"Storage slot for the paused timestamp. keccak256(\"DepositWallet.paused\") - 1"},"_SESSION_SIGNER_SLOT":{"details":"Base storage slot for the session signer mapping. keccak256(\"DepositWallet.sessionSignerAuthorizedUntil\") - 1"},"_ERC1271_SIGNER_MEM_SLOT":{"details":"Memory slot used to pass the resolved signer from `isValidSignature` to `_erc1271Signer`. Chosen at 0x80 (first allocatable slot). Before the super call we advance the free memory pointer to 0xa0 so the parent and all callees allocate above this slot and do not overwrite."}}},"sourceIds":{"src/Errors.sol":{"id":15},"src/Events.sol":{"id":16},"src/DepositWallet.sol":{"id":13},"src/libraries/Ownable.sol":{"id":18},"src/libraries/WalletLib.sol":{"id":20},"src/DepositWalletFactory.sol":{"id":14},"lib/solady/src/utils/ECDSA.sol":{"id":6},"lib/solady/src/auth/Ownable.sol":{"id":2},"lib/solady/src/utils/EIP712.sol":{"id":7},"lib/solady/src/tokens/ERC1155.sol":{"id":4},"lib/solady/src/utils/LibClone.sol":{"id":9},"src/interfaces/IDepositWallet.sol":{"id":17},"src/libraries/SessionSignerLib.sol":{"id":19},"lib/solady/src/accounts/ERC1271.sol":{"id":0},"lib/solady/src/accounts/Receiver.sol":{"id":1},"lib/solady/src/auth/OwnableRoles.sol":{"id":3},"lib/solady/src/utils/Initializable.sol":{"id":8},"lib/solady/src/utils/SafeTransferLib.sol":{"id":10},"lib/solady/src/utils/UUPSUpgradeable.sol":{"id":12},"lib/solady/src/utils/CallContextChecker.sol":{"id":5},"lib/solady/src/utils/SignatureCheckerLib.sol":{"id":11}},"additionalInput":null,"stdJsonInput":{"sources":{"src/Errors.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.13;\n\n/// @title Errors\n/// @author Polymarket\n/// @notice Custom errors shared across DepositWallet contracts.\nabstract contract Errors {\n    /// @notice Thrown when the caller is not authorized to perform the action.\n    error Unauthorized();\n\n    /// @notice Thrown when the provided owner address is invalid (e.g., zero address).\n    error InvalidOwner();\n\n    /// @notice Thrown when an ownership handover is expected but none is pending.\n    error NoPendingOwner();\n\n    /// @notice Thrown when a deadline has passed.\n    error Expired();\n\n    /// @notice Thrown when a signature fails verification.\n    error InvalidSignature();\n\n    /// @notice Thrown when the caller is not the factory contract.\n    error OnlyFactory();\n\n    /// @notice Thrown when a low-level call within a batch execution fails.\n    error CallFailed();\n\n    /// @notice Thrown when a function restricted to self-calls is invoked externally.\n    error OnlySelf();\n\n    /// @notice Thrown when a batch contains zero calls.\n    error EmptyBatch();\n\n    /// @notice Thrown when the batch nonce does not match the wallet's current nonce.\n    error InvalidNonce();\n\n    /// @notice Thrown when the batch's wallet address does not match the executing wallet.\n    error InvalidWallet();\n\n    /// @notice Thrown when a UUPS upgrade targets an unauthorized implementation.\n    error InvalidImplementation();\n\n    /// @notice Thrown when a session signer's authorization has expired or does not exist.\n    error SessionSignerUnauthorized();\n\n    /// @notice Thrown when a session signer attempts to call the wallet itself.\n    error SessionSignerSelfCallNotAllowed();\n\n    /// @notice Thrown when a paused-only function is called while the wallet is not paused.\n    error NotPaused();\n\n    /// @notice Thrown when the timelock delay has not elapsed since the wallet was paused.\n    error TimelockInsufficientDelay();\n}\n"},"src/Events.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.13;\n\n/// @title Events\n/// @author Polymarket\n/// @notice Events emitted by DepositWallet contracts.\nabstract contract Events {\n    /// @notice Emitted when ownership is transferred.\n    /// @param oldOwner The address of the previous owner.\n    /// @param newOwner The address of the new owner.\n    event OwnershipTransferred(address indexed oldOwner, address indexed newOwner);\n\n    /// @notice Emitted when a two-step ownership handover is initiated.\n    /// @param pendingOwner The address of the proposed new owner.\n    event OwnershipHandoverRequested(address indexed pendingOwner);\n\n    /// @notice Emitted when a two-step ownership handover is completed.\n    /// @param previousOwner The address of the outgoing owner.\n    /// @param newOwner The address of the incoming owner.\n    event OwnershipHandoverCompleted(address indexed previousOwner, address indexed newOwner);\n\n    /// @notice Emitted when a pending ownership handover is canceled.\n    /// @param pendingOwner The address of the canceled pending owner.\n    event OwnershipHandoverCanceled(address indexed pendingOwner);\n\n    /// @notice Emitted when ERC-20 tokens are withdrawn from the wallet by the owner.\n    /// @param token The address of the ERC-20 token.\n    /// @param to The recipient address.\n    /// @param amount The amount of tokens withdrawn.\n    event ERC20Withdrawal(address indexed token, address indexed to, uint256 amount);\n\n    /// @notice Emitted when ERC-1155 tokens are batch-withdrawn from the wallet by the owner.\n    /// @param token The address of the ERC-1155 token.\n    /// @param to The recipient address.\n    /// @param ids The token IDs withdrawn.\n    /// @param amounts The amounts withdrawn for each token ID.\n    event ERC1155BatchWithdrawal(\n        address indexed token, address indexed to, uint256[] ids, uint256[] amounts\n    );\n\n    /// @notice Emitted for each individual call executed within a batch.\n    /// @param target The address called.\n    /// @param value The ETH value sent with the call.\n    /// @param data The calldata sent to the target.\n    /// @param result The return data from the call.\n    event Execution(address indexed target, uint256 value, bytes data, bytes result);\n\n    /// @notice Emitted after a batch of calls has been successfully executed.\n    /// @param nonce The nonce of the executed batch.\n    event BatchExecuted(uint256 indexed nonce);\n\n    /// @notice Emitted when a session signer is authorized.\n    /// @param sessionSigner The address of the authorized session signer.\n    /// @param validUntil The timestamp until which the session signer is valid.\n    event SessionSignerAuthorized(address indexed sessionSigner, uint256 validUntil);\n\n    /// @notice Emitted when a session signer is revoked via a self-call.\n    /// @param sessionSigner The address of the revoked session signer.\n    event SessionSignerRevoked(address indexed sessionSigner);\n\n    /// @notice Emitted when the wallet is paused.\n    /// @param timestamp The block timestamp at which the wallet was paused.\n    event Paused(uint256 timestamp);\n\n    /// @notice Emitted when the wallet is unpaused.\n    /// @param timestamp The block timestamp at which the wallet was unpaused.\n    event Unpaused(uint256 timestamp);\n\n    /// @notice Emitted when an ERC-20 allowance is revoked by the owner.\n    /// @param token The address of the ERC-20 token.\n    /// @param spender The address whose allowance was revoked.\n    event AllowanceRevoked(address indexed token, address indexed spender);\n\n    /// @notice Emitted when an ERC-1155 operator approval is revoked by the owner.\n    /// @param token The address of the ERC-1155 token.\n    /// @param operator The address whose approval was revoked.\n    event ApprovalForAllRevoked(address indexed token, address indexed operator);\n\n    /// @notice Emitted when a session signer is emergency-revoked by the owner while paused.\n    /// @param sessionSigner The address of the revoked session signer.\n    event SessionSignerRevokedEmergency(address indexed sessionSigner);\n}\n"},"src/DepositWallet.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity 0.8.34;\n\nimport {ERC1271} from \"@solady/src/accounts/ERC1271.sol\";\nimport {Receiver} from \"@solady/src/accounts/Receiver.sol\";\nimport {ERC1155} from \"@solady/src/tokens/ERC1155.sol\";\nimport {ECDSA} from \"@solady/src/utils/ECDSA.sol\";\nimport {Initializable} from \"@solady/src/utils/Initializable.sol\";\nimport {LibClone} from \"@solady/src/utils/LibClone.sol\";\nimport {SafeTransferLib} from \"@solady/src/utils/SafeTransferLib.sol\";\nimport {UUPSUpgradeable} from \"@solady/src/utils/UUPSUpgradeable.sol\";\n\nimport {DepositWalletFactory} from \"@deposit-wallet/src/DepositWalletFactory.sol\";\nimport {Ownable} from \"@deposit-wallet/src/libraries/Ownable.sol\";\nimport {SessionSignerLib} from \"@deposit-wallet/src/libraries/SessionSignerLib.sol\";\nimport {\n    Batch,\n    Call,\n    WalletLib,\n    ERC1271_MAGIC_VALUE\n} from \"@deposit-wallet/src/libraries/WalletLib.sol\";\n\n/// @title DepositWallet\n/// @author Polymarket\n/// @notice Minimal, upgradeable smart-contract wallet for deposit operations.\n/// @dev Deployed as an ERC-1967 proxy via {DepositWalletFactory}. Supports batch execution\n///      of arbitrary calls signed by the owner or an authorized session signer, ERC-1271\n///      signature validation, two-step ownership transfers, and an owner-controlled pause\n///      mechanism with a timelock for emergency asset recovery.\ncontract DepositWallet is UUPSUpgradeable, Initializable, Receiver, ERC1271, Ownable {\n    using LibClone for address;\n    using SafeTransferLib for address;\n    using SessionSignerLib for bytes;\n    using WalletLib for Batch;\n\n    /*--------------------------------------------------------------\n                                 STATE\n    --------------------------------------------------------------*/\n\n    /// @dev Memory slot used to pass the resolved signer from `isValidSignature` to\n    /// `_erc1271Signer`. Chosen at 0x80 (first allocatable slot). Before the super call we advance\n    /// the free memory\n    /// pointer to 0xa0 so the parent and all callees allocate above this slot and do not overwrite.\n    uint256 private constant _ERC1271_SIGNER_MEM_SLOT = 0x80;\n\n    /// @dev Storage slot for the replay-protection nonce. keccak256(\"DepositWallet.nonce\") - 1\n    bytes32 private constant _NONCE_SLOT = bytes32(uint256(keccak256(\"DepositWallet.nonce\")) - 1);\n\n    /// @dev Storage slot for the paused timestamp. keccak256(\"DepositWallet.paused\") - 1\n    bytes32 private constant _PAUSED_SLOT = bytes32(uint256(keccak256(\"DepositWallet.paused\")) - 1);\n\n    /// @dev Base storage slot for the session signer mapping.\n    /// keccak256(\"DepositWallet.sessionSignerAuthorizedUntil\") - 1\n    bytes32 private constant _SESSION_SIGNER_SLOT =\n        bytes32(uint256(keccak256(\"DepositWallet.sessionSignerAuthorizedUntil\")) - 1);\n\n    /*--------------------------------------------------------------\n                               MODIFIERS\n    --------------------------------------------------------------*/\n\n    /// @dev Restricts access to the factory contract.\n    modifier onlyFactory() {\n        require(msg.sender == factory(), OnlyFactory());\n        _;\n    }\n\n    /// @dev Restricts access to calls originating from the wallet itself (i.e., via batch\n    /// execution).\n    modifier onlySelf() {\n        require(msg.sender == address(this), OnlySelf());\n        _;\n    }\n\n    /// @dev Enforces that the contract is paused and the timelock delay has elapsed.\n    modifier onlyPaused() {\n        require(paused() != 0, NotPaused());\n        require(\n            block.timestamp > paused() + DepositWalletFactory(factory()).timelockDelay(),\n            TimelockInsufficientDelay()\n        );\n        _;\n    }\n\n    /// @dev Restricts access to the wallet owner.\n    modifier onlyOwner() {\n        _checkOwner();\n        _;\n    }\n\n    /*--------------------------------------------------------------\n                              CONSTRUCTOR\n    --------------------------------------------------------------*/\n\n    /// @dev Disables initializers on the implementation contract to prevent misuse.\n    constructor() {\n        _disableInitializers();\n    }\n\n    /*--------------------------------------------------------------\n                             INITIALIZER\n    --------------------------------------------------------------*/\n\n    /// @notice Initializes the wallet with a designated owner.\n    /// @dev This replaces the constructor for upgradeable contracts.\n    /// @param _owner The address to set as the wallet owner.\n    function initialize(address _owner) external initializer {\n        _initializeOwner(_owner);\n    }\n\n    /*--------------------------------------------------------------\n                                  VIEW\n    --------------------------------------------------------------*/\n\n    /// @notice Returns the wallet's current execution nonce.\n    /// @return nonce_ The current nonce.\n    function nonce() public view returns (uint256 nonce_) {\n        bytes32 slot = _NONCE_SLOT;\n        assembly (\"memory-safe\") {\n            nonce_ := sload(slot)\n        }\n    }\n\n    /// @notice Returns the timestamp at which the wallet was paused.\n    /// @return paused_ The paused timestamp, or zero if not paused.\n    function paused() public view returns (uint256 paused_) {\n        bytes32 slot = _PAUSED_SLOT;\n        assembly (\"memory-safe\") {\n            paused_ := sload(slot)\n        }\n    }\n\n    /// @notice Returns the timestamp until which a session signer is authorized.\n    /// @param _signer The session signer address to query.\n    /// @return validUntil_ The authorization expiry timestamp, or zero if not authorized.\n    function sessionSignerAuthorizedUntil(address _signer)\n        public\n        view\n        returns (uint256 validUntil_)\n    {\n        bytes32 slot = _SESSION_SIGNER_SLOT;\n        assembly (\"memory-safe\") {\n            mstore(0x00, _signer)\n            mstore(0x20, slot)\n            validUntil_ := sload(keccak256(0x00, 0x40))\n        }\n    }\n\n    /// @notice Returns the unique identifier assigned to this wallet at deployment.\n    /// @return The wallet ID decoded from the ERC-1967 immutable args.\n    function id() public view returns (bytes32) {\n        (, bytes32 id_) = abi.decode(address(this).argsOnERC1967(), (address, bytes32));\n        return id_;\n    }\n\n    /// @notice Returns the factory contract that deployed this wallet.\n    /// @return The factory address decoded from the ERC-1967 immutable args.\n    function factory() public view returns (address) {\n        (address factory_,) = abi.decode(address(this).argsOnERC1967(), (address, bytes32));\n        return factory_;\n    }\n\n    /*--------------------------------------------------------------\n                             ONLY FACTORY\n    --------------------------------------------------------------*/\n\n    /// @notice Executes a signed batch of calls through the factory.\n    /// @dev Validates the batch (non-empty, correct wallet, nonce, deadline), verifies the EIP-712\n    ///      signature against the owner or an authorized session signer, then executes each call\n    ///      sequentially. Session signers are prevented from calling the wallet itself.\n    /// @param _batch The batch containing the target wallet, nonce, deadline, and calls.\n    /// @param _signature The EIP-712 signature authorizing the batch (owner or session signer).\n    function execute(Batch calldata _batch, bytes calldata _signature) external onlyFactory {\n        require(_batch.calls.length > 0, EmptyBatch());\n        require(_batch.wallet == address(this), InvalidWallet());\n        uint256 executedNonce;\n        bytes32 nonceSlot = _NONCE_SLOT;\n        assembly (\"memory-safe\") {\n            executedNonce := sload(nonceSlot)\n            sstore(nonceSlot, add(executedNonce, 1))\n        }\n        require(_batch.nonce == executedNonce, InvalidNonce());\n        require(block.timestamp <= _batch.deadline, Expired());\n\n        bytes32 batchHash = _batch.hash();\n        bytes32 batchDigest = _hashTypedData(batchHash);\n\n        require(\n            isValidSignature(batchDigest, _signature) == ERC1271_MAGIC_VALUE, InvalidSignature()\n        );\n\n        bool isSessionSigner = _signature.extractSessionSigner() != address(0);\n\n        uint256 i;\n        for (; i < _batch.calls.length;) {\n            require(\n                !isSessionSigner || _batch.calls[i].target != address(this),\n                SessionSignerSelfCallNotAllowed()\n            );\n\n            (bool success, bytes memory result) =\n                _batch.calls[i].target.call{value: _batch.calls[i].value}(_batch.calls[i].data);\n\n            require(success, CallFailed());\n\n            emit Execution(\n                _batch.calls[i].target, _batch.calls[i].value, _batch.calls[i].data, result\n            );\n\n            unchecked {\n                ++i;\n            }\n        }\n\n        emit BatchExecuted(executedNonce);\n    }\n\n    /*--------------------------------------------------------------\n                               ONLY SELF\n    --------------------------------------------------------------*/\n\n    /// @notice Authorizes a session signer until the specified timestamp.\n    /// @dev Can only be invoked via batch execution (self-call).\n    /// @param _sessionSigner The address to authorize as a session signer.\n    /// @param _validUntil The timestamp until which the session signer is valid.\n    function authorizeSessionSigner(address _sessionSigner, uint256 _validUntil) external onlySelf {\n        _setSessionSigner(_sessionSigner, _validUntil);\n\n        emit SessionSignerAuthorized(_sessionSigner, _validUntil);\n    }\n\n    /// @notice Revokes a session signer's authorization.\n    /// @dev Can only be invoked via batch execution (self-call).\n    /// @param _sessionSigner The session signer address to revoke.\n    function revokeSessionSigner(address _sessionSigner) external onlySelf {\n        _setSessionSigner(_sessionSigner, 0);\n\n        emit SessionSignerRevoked(_sessionSigner);\n    }\n\n    /// @notice Initiates a two-step ownership transfer to a new owner.\n    /// @dev Can only be invoked via batch execution (self-call).\n    /// @param _newOwner The proposed new owner address.\n    function transferOwnership(address _newOwner) external onlySelf {\n        _transferOwnership(_newOwner);\n    }\n\n    /// @notice Cancels any pending ownership handover.\n    /// @dev Can only be invoked via batch execution (self-call).\n    function cancelOwnershipHandover() external onlySelf {\n        _cancelOwnershipHandover();\n    }\n\n    /// @notice Upgrades the wallet implementation via UUPS.\n    /// @dev Can only be invoked via batch execution (self-call).\n    ///      The new implementation must be authorized by the factory.\n    /// @param _implementation The address of the new implementation contract.\n    /// @param _data Optional calldata to execute on the new implementation after upgrade.\n    function upgrade(address _implementation, bytes calldata _data) external onlySelf {\n        upgradeToAndCall(_implementation, _data);\n    }\n\n    /*--------------------------------------------------------------\n                           OWNERSHIP HANDOVER\n    --------------------------------------------------------------*/\n\n    /// @notice Completes a pending ownership transfer.\n    /// @dev Permissionless — anyone may submit, but the pending owner must have signed\n    ///      an EIP-712 `OwnershipHandover` message.\n    /// @param _deadline The deadline timestamp included in the signed message.\n    /// @param _signature The EIP-712 signature from the pending owner.\n    function completeOwnershipHandover(uint256 _deadline, bytes calldata _signature) external {\n        _completeOwnershipHandover(_deadline, _signature);\n    }\n\n    /*--------------------------------------------------------------\n                               ONLY OWNER\n    --------------------------------------------------------------*/\n\n    /// @notice Pauses the wallet, recording the current timestamp.\n    /// @dev After pausing, the owner must wait for the timelock delay before calling\n    ///      paused-only functions (e.g., withdrawals, revocations).\n    function pause() external onlyOwner {\n        bytes32 slot = _PAUSED_SLOT;\n        assembly (\"memory-safe\") {\n            sstore(slot, timestamp())\n        }\n\n        emit Paused(block.timestamp);\n    }\n\n    /// @notice Unpauses the wallet.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    function unpause() external onlyPaused onlyOwner {\n        bytes32 slot = _PAUSED_SLOT;\n        assembly (\"memory-safe\") {\n            sstore(slot, 0)\n        }\n\n        emit Unpaused(block.timestamp);\n    }\n\n    /// @notice Withdraws ERC-20 tokens from the wallet.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _token The ERC-20 token address.\n    /// @param _to The recipient address.\n    /// @param _amount The amount of tokens to withdraw.\n    function withdrawERC20(address _token, address _to, uint256 _amount)\n        external\n        onlyPaused\n        onlyOwner\n    {\n        _token.safeTransfer(_to, _amount);\n\n        emit ERC20Withdrawal(_token, _to, _amount);\n    }\n\n    /// @notice Batch-withdraws ERC-1155 tokens from the wallet.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _token The ERC-1155 token address.\n    /// @param _to The recipient address.\n    /// @param _ids The token IDs to withdraw.\n    /// @param _amounts The amounts for each token ID.\n    function withdrawERC1155(\n        address _token,\n        address _to,\n        uint256[] calldata _ids,\n        uint256[] calldata _amounts\n    ) external onlyPaused onlyOwner {\n        ERC1155(_token).safeBatchTransferFrom(address(this), _to, _ids, _amounts, \"\");\n\n        emit ERC1155BatchWithdrawal(_token, _to, _ids, _amounts);\n    }\n\n    /// @notice Revokes an ERC-20 allowance by setting it to zero.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _token The ERC-20 token address.\n    /// @param _spender The spender whose allowance is revoked.\n    function revokeAllowance(address _token, address _spender) external onlyPaused onlyOwner {\n        _token.safeApprove(_spender, 0);\n\n        emit AllowanceRevoked(_token, _spender);\n    }\n\n    /// @notice Revokes an ERC-1155 operator approval.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _token The ERC-1155 token address.\n    /// @param _operator The operator whose approval is revoked.\n    function revokeApprovalForAll(address _token, address _operator) external onlyPaused onlyOwner {\n        ERC1155(_token).setApprovalForAll(_operator, false);\n\n        emit ApprovalForAllRevoked(_token, _operator);\n    }\n\n    /// @notice Emergency revocation of a session signer by the owner.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _sessionSigner The session signer to revoke.\n    function revokeSessionSignerEmergency(address _sessionSigner) external onlyPaused onlyOwner {\n        _setSessionSigner(_sessionSigner, 0);\n\n        emit SessionSignerRevokedEmergency(_sessionSigner);\n    }\n\n    /*--------------------------------------------------------------\n                       UUPS UPGRADE AUTHORIZATION\n    --------------------------------------------------------------*/\n\n    /// @dev Authorizes a UUPS upgrade to `_implementation`.\n    ///      Reverts unless the implementation is authorized by the factory.\n    /// @param _implementation The address of the new implementation contract.\n    function _authorizeUpgrade(address _implementation) internal view override onlySelf {\n        require(\n            DepositWalletFactory(factory()).authorizedImplementation(_implementation),\n            InvalidImplementation()\n        );\n    }\n\n    /// @notice Stores the authorization expiry for a session signer.\n    /// @param _signer The session signer address.\n    /// @param _validUntil The expiry timestamp (zero to revoke).\n    function _setSessionSigner(address _signer, uint256 _validUntil) internal {\n        bytes32 slot = _SESSION_SIGNER_SLOT;\n        assembly (\"memory-safe\") {\n            mstore(0x00, _signer)\n            mstore(0x20, slot)\n            sstore(keccak256(0x00, 0x40), _validUntil)\n        }\n    }\n\n    /*--------------------------------------------------------------\n                                ERC1271\n    --------------------------------------------------------------*/\n\n    /// @notice Validates a signature against the wallet owner or an authorized session signer.\n    /// @dev Overrides Solady's ERC-1271 implementation to support session signer signatures.\n    ///      The resolved signer is stored in memory at `_ERC1271_SIGNER_MEM_SLOT` so that\n    ///      `_erc1271Signer` can return it to the parent verification logic.\n    /// @param _hash The hash that was signed.\n    /// @param _signature The signature to validate (may contain a session signer wrapper).\n    /// @return result `ERC1271_MAGIC_VALUE` if the signature is valid, otherwise reverts or returns\n    /// failure.\n    function isValidSignature(bytes32 _hash, bytes calldata _signature)\n        public\n        view\n        override\n        returns (bytes4 result)\n    {\n        address signer = _signature.extractSessionSigner();\n\n        if (signer == address(0)) {\n            signer = owner();\n        } else {\n            require(\n                block.timestamp < sessionSignerAuthorizedUntil(signer), SessionSignerUnauthorized()\n            );\n        }\n\n        assembly {\n            mstore(_ERC1271_SIGNER_MEM_SLOT, signer)\n            mstore(0x40, add(mload(0x40), 0x20))\n        }\n\n        return super.isValidSignature(_hash, _signature);\n    }\n\n    /// @dev Returns the signer address previously stored by `isValidSignature`.\n    function _erc1271Signer() internal view virtual override returns (address signer) {\n        assembly {\n            signer := mload(_ERC1271_SIGNER_MEM_SLOT)\n        }\n    }\n\n    /// @dev Factory calls use the safe caller path (direct ECDSA verification);\n    ///      external callers go through the nested EIP-712 workflow.\n    function _erc1271CallerIsSafe() internal view virtual override returns (bool) {\n        return msg.sender == factory();\n    }\n\n    /// @dev Performs ECDSA signature verification against the resolved signer.\n    /// @param hash The digest to verify.\n    /// @param signature The ECDSA signature bytes.\n    /// @return True if the signature is valid for the current signer.\n    function _erc1271IsValidSignatureNowCalldata(bytes32 hash, bytes calldata signature)\n        internal\n        view\n        override\n        returns (bool)\n    {\n        address signer = _erc1271Signer();\n        // always ECDSA, regardless of signer.code.length\n        return (signer != address(0)) && (ECDSA.tryRecoverCalldata(hash, signature) == signer);\n    }\n\n    /*--------------------------------------------------------------\n                                 EIP712\n    --------------------------------------------------------------*/\n\n    /// @dev Returns the EIP-712 domain name and version for this wallet.\n    function _domainNameAndVersion()\n        internal\n        view\n        virtual\n        override\n        returns (string memory name, string memory version)\n    {\n        name = \"DepositWallet\";\n        version = \"1\";\n    }\n}\n"},"src/libraries/Ownable.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.13;\n\nimport {ECDSA} from \"@solady/src/utils/ECDSA.sol\";\nimport {EIP712} from \"@solady/src/utils/EIP712.sol\";\n\nimport {Errors} from \"@deposit-wallet/src/Errors.sol\";\nimport {Events} from \"@deposit-wallet/src/Events.sol\";\n\n/// @title Ownable\n/// @author Polymarket\n/// @notice Two-step ownership management with EIP-712 signature-based handover.\n/// @dev Ownership transfers require the new owner to sign an `OwnershipHandover` EIP-712 message.\n///      This prevents accidental transfers to addresses that cannot interact with the wallet.\n///      Storage uses custom slots to avoid collisions in proxy-based deployments.\nabstract contract Ownable is EIP712, Errors, Events {\n    /*--------------------------------------------------------------\n                                 STATE\n    --------------------------------------------------------------*/\n\n    /// @dev Storage slot for the owner address. keccak256(\"DepositWallet.owner\") - 1\n    bytes32 internal constant _OWNER_SLOT = bytes32(uint256(keccak256(\"DepositWallet.owner\")) - 1);\n\n    /// @dev Storage slot for the pending owner address. keccak256(\"DepositWallet.pendingOwner\") - 1\n    bytes32 internal constant _PENDING_OWNER_SLOT =\n        bytes32(uint256(keccak256(\"DepositWallet.pendingOwner\")) - 1);\n\n    /// @dev EIP-712 typehash for the `OwnershipHandover` struct.\n    bytes32 private constant _OWNERSHIP_HANDOVER_TYPEHASH =\n        keccak256(\"OwnershipHandover(address newOwner,uint256 deadline)\");\n\n    /*--------------------------------------------------------------\n                                  VIEW\n    --------------------------------------------------------------*/\n\n    /// @notice Returns the current owner of the wallet.\n    /// @return result The owner address.\n    function owner() public view virtual returns (address result) {\n        bytes32 slot = _OWNER_SLOT;\n        assembly {\n            result := sload(slot)\n        }\n    }\n\n    /// @notice Returns the pending owner awaiting handover completion.\n    /// @return result The pending owner address, or `address(0)` if none.\n    function pendingOwner() public view virtual returns (address result) {\n        bytes32 slot = _PENDING_OWNER_SLOT;\n        assembly {\n            result := sload(slot)\n        }\n    }\n\n    /*--------------------------------------------------------------\n                              INTERNAL\n    --------------------------------------------------------------*/\n\n    /// @notice Sets the initial owner of the wallet.\n    /// @dev Should only be called once during initialization.\n    /// @param _newOwner The address to set as the initial owner.\n    function _initializeOwner(address _newOwner) internal virtual {\n        require(_newOwner != address(0), InvalidOwner());\n\n        bytes32 slot = _OWNER_SLOT;\n\n        assembly {\n            sstore(slot, _newOwner)\n        }\n\n        emit OwnershipTransferred(address(0), _newOwner);\n    }\n\n    /// @notice Replaces the current owner with a new address.\n    /// @param _newOwner The address of the new owner.\n    function _setOwner(address _newOwner) internal virtual {\n        address oldOwner = owner();\n        bytes32 slot = _OWNER_SLOT;\n\n        assembly {\n            sstore(slot, _newOwner)\n        }\n\n        emit OwnershipTransferred(oldOwner, _newOwner);\n    }\n\n    /// @notice Stores a new pending owner address.\n    /// @param _pendingOwner The address to set as the pending owner.\n    function _setPendingOwner(address _pendingOwner) internal virtual {\n        bytes32 slot = _PENDING_OWNER_SLOT;\n\n        assembly {\n            sstore(slot, _pendingOwner)\n        }\n    }\n\n    /// @notice Reverts if `msg.sender` is not the current owner.\n    function _checkOwner() internal view virtual {\n        require(msg.sender == owner(), Unauthorized());\n    }\n\n    /*--------------------------------------------------------------\n                           OWNERSHIP HANDOVER\n    --------------------------------------------------------------*/\n\n    /// @notice Initiates a two-step ownership transfer to `_newOwner`.\n    /// @dev Sets the pending owner and emits {OwnershipHandoverRequested}.\n    ///      The transfer must be completed by calling `completeOwnershipHandover` with\n    ///      a valid EIP-712 signature from `_newOwner`.\n    /// @param _newOwner The proposed new owner (must not be `address(0)`).\n    function _transferOwnership(address _newOwner) internal virtual {\n        require(_newOwner != address(0), InvalidOwner());\n\n        _setPendingOwner(_newOwner);\n\n        emit OwnershipHandoverRequested(_newOwner);\n    }\n\n    /// @notice Cancels any pending ownership handover.\n    /// @dev Reverts if there is no pending owner.\n    function _cancelOwnershipHandover() internal virtual {\n        address pending = pendingOwner();\n\n        require(pending != address(0), NoPendingOwner());\n\n        _setPendingOwner(address(0));\n\n        emit OwnershipHandoverCanceled(pending);\n    }\n\n    /// @notice Completes a two-step ownership handover using an EIP-712 signature from the pending\n    /// owner. @dev Validates the signature against the `OwnershipHandover` typehash and transfers\n    /// ownership.\n    /// @param _deadline The deadline timestamp included in the signed message.\n    /// @param _signature The EIP-712 signature from the pending owner.\n    function _completeOwnershipHandover(uint256 _deadline, bytes calldata _signature)\n        internal\n        virtual\n    {\n        // ensure _signature is still valid\n        require(block.timestamp <= _deadline, Expired());\n\n        address pending = pendingOwner();\n\n        // ensure there is a pending owner\n        require(pending != address(0), NoPendingOwner());\n\n        bytes32 structHash = keccak256(abi.encode(_OWNERSHIP_HANDOVER_TYPEHASH, pending, _deadline));\n        bytes32 digest = _hashTypedData(structHash);\n\n        // validate signature\n        require(ECDSA.recoverCalldata(digest, _signature) == pending, InvalidSignature());\n\n        address previousOwner = owner();\n\n        // update state\n        _setPendingOwner(address(0));\n        _setOwner(pending);\n\n        emit OwnershipHandoverCompleted(previousOwner, pending);\n    }\n}\n"},"src/libraries/WalletLib.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.13;\n\n/// @dev ERC-1271 magic value returned on successful signature validation.\n/// bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))\nbytes4 constant ERC1271_MAGIC_VALUE = 0x1626ba7e;\n\n/// @dev EIP-712 typehash for the `Call` struct.\nbytes32 constant CALL_TYPEHASH = keccak256(\"Call(address target,uint256 value,bytes data)\");\n\n/// @dev EIP-712 type name for the `Batch` struct, used in ERC-1271 nested signatures.\nstring constant BATCH_CONTENTS_NAME = \"Batch\";\n\n/// @dev EIP-712 type string for the `Batch` struct, including the nested `Call` type.\nstring constant BATCH_CONTENTS_TYPE =\n    \"Batch(address wallet,uint256 nonce,uint256 deadline,Call[] calls)Call(address target,uint256 value,bytes data)\";\n\n/// @dev EIP-712 typehash for the `Batch` struct.\nbytes32 constant BATCH_TYPEHASH = keccak256(bytes(BATCH_CONTENTS_TYPE));\n\n/// @notice A batch of calls to be executed by a DepositWallet.\n/// @dev Signed by the wallet owner or an authorized session signer using EIP-712.\nstruct Batch {\n    /// @dev The address of the wallet that will execute this batch.\n    address wallet;\n    /// @dev Replay-protection nonce; must equal the wallet's current nonce.\n    uint256 nonce;\n    /// @dev Timestamp after which the batch signature is no longer valid.\n    uint256 deadline;\n    /// @dev The ordered list of calls to execute.\n    Call[] calls;\n}\n\n/// @notice A single call within a batch.\nstruct Call {\n    /// @dev The target address to call.\n    address target;\n    /// @dev The ETH value to send with the call.\n    uint256 value;\n    /// @dev The calldata to send to the target.\n    bytes data;\n}\n\n/// @title WalletLib\n/// @author Polymarket\n/// @notice EIP-712 hashing utilities for `Batch` and `Call` structs.\nlibrary WalletLib {\n    /// @notice Computes the EIP-712 struct hash of a batch.\n    /// @param _batch The batch to hash.\n    /// @return The EIP-712 struct hash.\n    function hash(Batch memory _batch) internal pure returns (bytes32) {\n        return keccak256(\n            abi.encode(\n                BATCH_TYPEHASH, _batch.wallet, _batch.nonce, _batch.deadline, hash(_batch.calls)\n            )\n        );\n    }\n\n    /// @notice Computes the EIP-712 array hash of an array of calls.\n    /// @param _calls The calls to hash.\n    /// @return The keccak256 hash of the concatenated individual call hashes.\n    function hash(Call[] memory _calls) internal pure returns (bytes32) {\n        bytes32[] memory hashes = new bytes32[](_calls.length);\n        for (uint256 i; i < _calls.length; i++) {\n            hashes[i] = hash(_calls[i]);\n        }\n        return keccak256(abi.encodePacked(hashes));\n    }\n\n    /// @notice Computes the EIP-712 struct hash of a single call.\n    /// @param _call The call to hash.\n    /// @return The EIP-712 struct hash.\n    function hash(Call memory _call) internal pure returns (bytes32) {\n        return keccak256(\n            abi.encode(\n                CALL_TYPEHASH,\n                _call.target,\n                _call.value,\n                keccak256(_call.data) // bytes fields must be hashed\n            )\n        );\n    }\n}\n"},"src/DepositWalletFactory.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity 0.8.34;\n\nimport {OwnableRoles} from \"@solady/src/auth/OwnableRoles.sol\";\nimport {Initializable} from \"@solady/src/utils/Initializable.sol\";\nimport {LibClone} from \"@solady/src/utils/LibClone.sol\";\nimport {UUPSUpgradeable} from \"@solady/src/utils/UUPSUpgradeable.sol\";\n\nimport {IDepositWallet, Batch} from \"@deposit-wallet/src/interfaces/IDepositWallet.sol\";\n\n/// @title DepositWalletFactoryErrors\n/// @author Polymarket\n/// @notice Custom errors for {DepositWalletFactory}.\nabstract contract DepositWalletFactoryErrors {\n    /// @notice Thrown when the caller does not have the admin role.\n    error OnlyAdmin();\n\n    /// @notice Thrown when the caller does not have the operator role.\n    error OnlyOperator();\n\n    /// @notice Thrown when paired input arrays have mismatched lengths.\n    error ArrayLengthMismatch();\n\n    /// @notice Thrown when the zero address is provided where a valid address is required.\n    error ZeroAddress();\n\n    /// @notice Thrown when an implementation has not been authorized.\n    error ImplementationNotAuthorized();\n\n    /// @notice Thrown when the provided timelock delay is zero or exceeds the maximum.\n    error InvalidTimelockDelay();\n}\n\n/// @title DepositWalletFactoryEvents\n/// @author Polymarket\n/// @notice Events emitted by {DepositWalletFactory}.\nabstract contract DepositWalletFactoryEvents {\n    /// @notice Emitted when a wallet implementation is added to the authorized set.\n    /// @param implementation The address of the authorized implementation.\n    event ImplementationAuthorized(address indexed implementation);\n\n    /// @notice Emitted when the default wallet implementation is updated.\n    /// @param Implementation The address of the new default implementation.\n    event ImplementationSet(address Implementation);\n\n    /// @notice Emitted when a wallet implementation is removed from the authorized set.\n    /// @param implementation The address of the unauthorized implementation.\n    event ImplementationUnauthorized(address indexed implementation);\n\n    /// @notice Emitted when the timelock delay is updated.\n    /// @param timelockDelay The new timelock delay in seconds.\n    event TimelockDelaySet(uint256 timelockDelay);\n\n    /// @notice Emitted when a new deposit wallet is deployed.\n    /// @param wallet The address of the newly deployed wallet proxy.\n    /// @param owner The initial owner of the wallet.\n    /// @param id The unique identifier assigned to the wallet.\n    /// @param implementation The implementation address used for the deployment.\n    event WalletDeployed(\n        address indexed wallet, address indexed owner, bytes32 indexed id, address implementation\n    );\n}\n\n/// @title DepositWalletFactory\n/// @author Polymarket\n/// @notice Factory contract for deploying and managing DepositWallet proxies.\n/// @dev Uses a three-tier role model:\n///      - **Owner**: can add/remove admins, manage implementations, and authorize UUPS upgrades\n///                   of the factory itself.\n///      - **Admin** (ROLE_0): can add/remove operators and configure the timelock delay.\n///      - **Operator** (ROLE_1): can deploy wallets and proxy batch executions.\n///\n///      Wallets are deployed as deterministic ERC-1967 proxies via {LibClone}.\ncontract DepositWalletFactory is\n    OwnableRoles,\n    Initializable,\n    UUPSUpgradeable,\n    DepositWalletFactoryErrors,\n    DepositWalletFactoryEvents\n{\n    /*--------------------------------------------------------------\n                                 STATE\n    --------------------------------------------------------------*/\n\n    /// @notice The default wallet implementation used for new deployments.\n    address public implementation;\n\n    /// @notice The delay in seconds that must elapse after pausing before the owner can\n    ///         execute paused-only operations on a wallet.\n    uint256 public timelockDelay;\n\n    /// @notice Tracks which implementation addresses are authorized for UUPS upgrades.\n    mapping(address => bool) public authorizedImplementation;\n\n    /*--------------------------------------------------------------\n                               CONSTANTS\n    --------------------------------------------------------------*/\n\n    /// @notice The maximum allowed timelock delay (7 days).\n    uint256 public constant MAX_TIMELOCK_DELAY = 7 days;\n\n    /*--------------------------------------------------------------\n                              CONSTRUCTOR\n    --------------------------------------------------------------*/\n\n    /// @dev Disables initializers on the implementation contract to prevent misuse.\n    constructor() {\n        _disableInitializers();\n    }\n\n    /*--------------------------------------------------------------\n                              INITIALIZER\n    --------------------------------------------------------------*/\n\n    /// @notice Initializes the factory with an owner, admin, implementation, and timelock delay.\n    /// @param _owner The address to set as the factory owner.\n    /// @param _admin The address to grant the initial admin role.\n    /// @param _implementation The default wallet implementation address.\n    /// @param _timelockDelay The initial timelock delay in seconds.\n    function initialize(\n        address _owner,\n        address _admin,\n        address _implementation,\n        uint256 _timelockDelay\n    ) external initializer {\n        _initializeOwner(_owner);\n        _setRoles(_admin, _ROLE_0);\n        _authorizeImplementation(_implementation);\n        _setImplementation(_implementation);\n        _setTimelockDelay(_timelockDelay);\n    }\n\n    /*--------------------------------------------------------------\n                               MODIFIERS\n    --------------------------------------------------------------*/\n\n    /// @dev Restricts access to addresses with the admin role (ROLE_0).\n    modifier onlyAdmin() {\n        require(hasAnyRole(msg.sender, _ROLE_0), OnlyAdmin());\n        _;\n    }\n\n    /// @dev Restricts access to addresses with the operator role (ROLE_1).\n    modifier onlyOperator() {\n        require(hasAnyRole(msg.sender, _ROLE_1), OnlyOperator());\n        _;\n    }\n\n    /*--------------------------------------------------------------\n                                  VIEW\n    --------------------------------------------------------------*/\n\n    /// @notice Returns whether the given address has the admin role.\n    /// @param _admin The address to check.\n    /// @return True if the address is an admin.\n    function isAdmin(address _admin) external view returns (bool) {\n        return hasAnyRole(_admin, _ROLE_0);\n    }\n\n    /// @notice Returns whether the given address has the operator role.\n    /// @param _operator The address to check.\n    /// @return True if the address is an operator.\n    function isOperator(address _operator) external view returns (bool) {\n        return hasAnyRole(_operator, _ROLE_1);\n    }\n\n    /// @notice Predicts the deterministic address of a wallet before deployment.\n    /// @param _implementation The implementation address to use for the prediction.\n    /// @param _id The unique identifier for the wallet.\n    /// @return The predicted wallet proxy address.\n    function predictWalletAddress(address _implementation, bytes32 _id)\n        external\n        view\n        returns (address)\n    {\n        bytes memory args = abi.encode(address(this), _id);\n\n        return LibClone.predictDeterministicAddressERC1967(\n            _implementation, args, keccak256(args), address(this)\n        );\n    }\n\n    /*--------------------------------------------------------------\n                             ONLY OPERATOR\n    --------------------------------------------------------------*/\n\n    /// @notice Deploys one or more deposit wallets with deterministic addresses.\n    /// @dev It is the operator's responsibility to ensure that each `_id` is unique.\n    ///      Duplicate IDs will cause the deployment to revert.\n    /// @param _owners The initial owner addresses for each wallet.\n    /// @param _ids The unique identifiers for each wallet.\n    function deploy(address[] calldata _owners, bytes32[] calldata _ids) external onlyOperator {\n        require(_owners.length == _ids.length, ArrayLengthMismatch());\n\n        address implementation_ = implementation;\n        require(authorizedImplementation[implementation_], ImplementationNotAuthorized());\n\n        for (uint256 i; i < _owners.length; ++i) {\n            bytes memory args = abi.encode(address(this), _ids[i]);\n\n            address wallet =\n                LibClone.deployDeterministicERC1967(implementation_, args, keccak256(args));\n\n            IDepositWallet(wallet).initialize(_owners[i]);\n\n            emit WalletDeployed(wallet, _owners[i], _ids[i], implementation_);\n        }\n    }\n\n    /// @notice Proxies batch execution to one or more wallets.\n    /// @dev Each batch is forwarded to its target wallet's `execute` function.\n    /// @param _batches The batches to execute.\n    /// @param _signatures The corresponding signatures for each batch.\n    function proxy(Batch[] calldata _batches, bytes[] calldata _signatures) external onlyOperator {\n        require(_batches.length == _signatures.length, ArrayLengthMismatch());\n        for (uint256 i; i < _batches.length; ++i) {\n            IDepositWallet(_batches[i].wallet).execute(_batches[i], _signatures[i]);\n        }\n    }\n\n    /*--------------------------------------------------------------\n                               ONLY ADMIN\n    --------------------------------------------------------------*/\n\n    /// @notice Grants the operator role to an address.\n    /// @param _operator The address to grant the operator role.\n    function addOperator(address _operator) external onlyAdmin {\n        _grantRoles(_operator, _ROLE_1);\n    }\n\n    /// @notice Removes the operator role from an address.\n    /// @param _operator The address to remove the operator role from.\n    function removeOperator(address _operator) external onlyAdmin {\n        _removeRoles(_operator, _ROLE_1);\n    }\n\n    /// @notice Sets the timelock delay for paused wallet operations.\n    /// @param _timelockDelay The new timelock delay in seconds.\n    function setTimelockDelay(uint256 _timelockDelay) external onlyAdmin {\n        _setTimelockDelay(_timelockDelay);\n    }\n\n    /*--------------------------------------------------------------\n                               ONLY OWNER\n    --------------------------------------------------------------*/\n\n    /// @notice Grants the admin role to an address.\n    /// @param _admin The address to grant the admin role.\n    function addAdmin(address _admin) external onlyOwner {\n        _grantRoles(_admin, _ROLE_0);\n    }\n\n    /// @notice Removes the admin role from an address.\n    /// @param _admin The address to remove the admin role from.\n    function removeAdmin(address _admin) external onlyOwner {\n        _removeRoles(_admin, _ROLE_0);\n    }\n\n    /// @notice Sets the default wallet implementation for new deployments.\n    /// @param _implementation The new default implementation address.\n    function setImplementation(address _implementation) external onlyOwner {\n        _setImplementation(_implementation);\n    }\n\n    /// @notice Authorizes an implementation address for wallet UUPS upgrades.\n    /// @param _implementation The implementation address to authorize.\n    function authorizeImplementation(address _implementation) external onlyOwner {\n        _authorizeImplementation(_implementation);\n    }\n\n    /// @notice Removes an implementation address from the authorized set.\n    /// @param _implementation The implementation address to unauthorize.\n    function unauthorizeImplementation(address _implementation) external onlyOwner {\n        authorizedImplementation[_implementation] = false;\n\n        emit ImplementationUnauthorized(_implementation);\n    }\n\n    /*--------------------------------------------------------------\n                               INTERNAL\n    --------------------------------------------------------------*/\n\n    /// @dev Authorizes UUPS upgrades of the factory. Restricted to the owner.\n    function _authorizeUpgrade(address) internal override onlyOwner {}\n\n    /// @notice Authorizes an implementation address and records it in the authorized set.\n    /// @param _implementation The implementation address to authorize (must not be `address(0)`).\n    function _authorizeImplementation(address _implementation) internal {\n        require(_implementation != address(0), ZeroAddress());\n        authorizedImplementation[_implementation] = true;\n\n        emit ImplementationAuthorized(_implementation);\n    }\n\n    /// @notice Sets the default wallet implementation for new deployments.\n    /// @param _implementation The new default implementation address (must be authorized).\n    function _setImplementation(address _implementation) internal {\n        require(authorizedImplementation[_implementation], ImplementationNotAuthorized());\n        implementation = _implementation;\n\n        emit ImplementationSet(_implementation);\n    }\n\n    /// @notice Sets the timelock delay for paused wallet operations.\n    /// @param _timelockDelay The new timelock delay in seconds.\n    function _setTimelockDelay(uint256 _timelockDelay) internal {\n        require(_timelockDelay > 0 && _timelockDelay <= MAX_TIMELOCK_DELAY, InvalidTimelockDelay());\n        timelockDelay = _timelockDelay;\n\n        emit TimelockDelaySet(_timelockDelay);\n    }\n}\n"},"lib/solady/src/utils/ECDSA.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Gas optimized ECDSA wrapper.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/ECDSA.sol)\n/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/ECDSA.sol)\n/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/cryptography/ECDSA.sol)\n///\n/// @dev Note:\n/// - The recovery functions use the ecrecover precompile (0x1).\n/// - As of Solady version 0.0.68, the `recover` variants will revert upon recovery failure.\n///   This is for more safety by default.\n///   Use the `tryRecover` variants if you need to get the zero address back\n///   upon recovery failure instead.\n/// - As of Solady version 0.0.134, all `bytes signature` variants accept both\n///   regular 65-byte `(r, s, v)` and EIP-2098 `(r, vs)` short form signatures.\n///   See: https://eips.ethereum.org/EIPS/eip-2098\n///   This is for calldata efficiency on smart accounts prevalent on L2s.\n///\n/// WARNING! Do NOT directly use signatures as unique identifiers:\n/// - The recovery operations do NOT check if a signature is non-malleable.\n/// - Use a nonce in the digest to prevent replay attacks on the same contract.\n/// - Use EIP-712 for the digest to prevent replay attacks across different chains and contracts.\n///   EIP-712 also enables readable signing of typed data for better user safety.\n/// - If you need a unique hash from a signature, please use the `canonicalHash` functions.\nlibrary ECDSA {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         CONSTANTS                          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The order of the secp256k1 elliptic curve.\n    uint256 internal constant N = 0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141;\n\n    /// @dev `N/2 + 1`. Used for checking the malleability of the signature.\n    uint256 private constant _HALF_N_PLUS_1 =\n        0x7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a1;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                        CUSTOM ERRORS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The signature is invalid.\n    error InvalidSignature();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                    RECOVERY OPERATIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Recovers the signer's address from a message digest `hash`, and the `signature`.\n    function recover(bytes32 hash, bytes memory signature) internal view returns (address result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            for { let m := mload(0x40) } 1 {\n                mstore(0x00, 0x8baa579f) // `InvalidSignature()`.\n                revert(0x1c, 0x04)\n            } {\n                switch mload(signature)\n                case 64 {\n                    let vs := mload(add(signature, 0x40))\n                    mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                    mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                }\n                case 65 {\n                    mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`.\n                    mstore(0x60, mload(add(signature, 0x40))) // `s`.\n                }\n                default { continue }\n                mstore(0x00, hash)\n                mstore(0x40, mload(add(signature, 0x20))) // `r`.\n                result := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n                mstore(0x60, 0) // Restore the zero slot.\n                mstore(0x40, m) // Restore the free memory pointer.\n                // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n                if returndatasize() { break }\n            }\n        }\n    }\n\n    /// @dev Recovers the signer's address from a message digest `hash`, and the `signature`.\n    function recoverCalldata(bytes32 hash, bytes calldata signature)\n        internal\n        view\n        returns (address result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            for { let m := mload(0x40) } 1 {\n                mstore(0x00, 0x8baa579f) // `InvalidSignature()`.\n                revert(0x1c, 0x04)\n            } {\n                switch signature.length\n                case 64 {\n                    let vs := calldataload(add(signature.offset, 0x20))\n                    mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                    mstore(0x40, calldataload(signature.offset)) // `r`.\n                    mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                }\n                case 65 {\n                    mstore(0x20, byte(0, calldataload(add(signature.offset, 0x40)))) // `v`.\n                    calldatacopy(0x40, signature.offset, 0x40) // Copy `r` and `s`.\n                }\n                default { continue }\n                mstore(0x00, hash)\n                result := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n                mstore(0x60, 0) // Restore the zero slot.\n                mstore(0x40, m) // Restore the free memory pointer.\n                // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n                if returndatasize() { break }\n            }\n        }\n    }\n\n    /// @dev Recovers the signer's address from a message digest `hash`,\n    /// and the EIP-2098 short form signature defined by `r` and `vs`.\n    function recover(bytes32 hash, bytes32 r, bytes32 vs) internal view returns (address result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x00, hash)\n            mstore(0x20, add(shr(255, vs), 27)) // `v`.\n            mstore(0x40, r)\n            mstore(0x60, shr(1, shl(1, vs))) // `s`.\n            result := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n            // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n            if iszero(returndatasize()) {\n                mstore(0x00, 0x8baa579f) // `InvalidSignature()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x60, 0) // Restore the zero slot.\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n    }\n\n    /// @dev Recovers the signer's address from a message digest `hash`,\n    /// and the signature defined by `v`, `r`, `s`.\n    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s)\n        internal\n        view\n        returns (address result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x00, hash)\n            mstore(0x20, and(v, 0xff))\n            mstore(0x40, r)\n            mstore(0x60, s)\n            result := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n            // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n            if iszero(returndatasize()) {\n                mstore(0x00, 0x8baa579f) // `InvalidSignature()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x60, 0) // Restore the zero slot.\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                   TRY-RECOVER OPERATIONS                   */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // WARNING!\n    // These functions will NOT revert upon recovery failure.\n    // Instead, they will return the zero address upon recovery failure.\n    // It is critical that the returned address is NEVER compared against\n    // a zero address (e.g. an uninitialized address variable).\n\n    /// @dev Recovers the signer's address from a message digest `hash`, and the `signature`.\n    function tryRecover(bytes32 hash, bytes memory signature)\n        internal\n        view\n        returns (address result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            for { let m := mload(0x40) } 1 {} {\n                switch mload(signature)\n                case 64 {\n                    let vs := mload(add(signature, 0x40))\n                    mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                    mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                }\n                case 65 {\n                    mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`.\n                    mstore(0x60, mload(add(signature, 0x40))) // `s`.\n                }\n                default { break }\n                mstore(0x00, hash)\n                mstore(0x40, mload(add(signature, 0x20))) // `r`.\n                pop(staticcall(gas(), 1, 0x00, 0x80, 0x40, 0x20))\n                mstore(0x60, 0) // Restore the zero slot.\n                // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n                result := mload(xor(0x60, returndatasize()))\n                mstore(0x40, m) // Restore the free memory pointer.\n                break\n            }\n        }\n    }\n\n    /// @dev Recovers the signer's address from a message digest `hash`, and the `signature`.\n    function tryRecoverCalldata(bytes32 hash, bytes calldata signature)\n        internal\n        view\n        returns (address result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            for { let m := mload(0x40) } 1 {} {\n                switch signature.length\n                case 64 {\n                    let vs := calldataload(add(signature.offset, 0x20))\n                    mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                    mstore(0x40, calldataload(signature.offset)) // `r`.\n                    mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                }\n                case 65 {\n                    mstore(0x20, byte(0, calldataload(add(signature.offset, 0x40)))) // `v`.\n                    calldatacopy(0x40, signature.offset, 0x40) // Copy `r` and `s`.\n                }\n                default { break }\n                mstore(0x00, hash)\n                pop(staticcall(gas(), 1, 0x00, 0x80, 0x40, 0x20))\n                mstore(0x60, 0) // Restore the zero slot.\n                // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n                result := mload(xor(0x60, returndatasize()))\n                mstore(0x40, m) // Restore the free memory pointer.\n                break\n            }\n        }\n    }\n\n    /// @dev Recovers the signer's address from a message digest `hash`,\n    /// and the EIP-2098 short form signature defined by `r` and `vs`.\n    function tryRecover(bytes32 hash, bytes32 r, bytes32 vs)\n        internal\n        view\n        returns (address result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x00, hash)\n            mstore(0x20, add(shr(255, vs), 27)) // `v`.\n            mstore(0x40, r)\n            mstore(0x60, shr(1, shl(1, vs))) // `s`.\n            pop(staticcall(gas(), 1, 0x00, 0x80, 0x40, 0x20))\n            mstore(0x60, 0) // Restore the zero slot.\n            // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n            result := mload(xor(0x60, returndatasize()))\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n    }\n\n    /// @dev Recovers the signer's address from a message digest `hash`,\n    /// and the signature defined by `v`, `r`, `s`.\n    function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s)\n        internal\n        view\n        returns (address result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x00, hash)\n            mstore(0x20, and(v, 0xff))\n            mstore(0x40, r)\n            mstore(0x60, s)\n            pop(staticcall(gas(), 1, 0x00, 0x80, 0x40, 0x20))\n            mstore(0x60, 0) // Restore the zero slot.\n            // `returndatasize()` will be `0x20` upon success, and `0x00` otherwise.\n            result := mload(xor(0x60, returndatasize()))\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     HASHING OPERATIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns an Ethereum Signed Message, created from a `hash`.\n    /// This produces a hash corresponding to the one signed with the\n    /// [`eth_sign`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign)\n    /// JSON-RPC method as part of EIP-191.\n    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x20, hash) // Store into scratch space for keccak256.\n            mstore(0x00, \"\\x00\\x00\\x00\\x00\\x19Ethereum Signed Message:\\n32\") // 28 bytes.\n            result := keccak256(0x04, 0x3c) // `32 * 2 - (32 - 28) = 60 = 0x3c`.\n        }\n    }\n\n    /// @dev Returns an Ethereum Signed Message, created from `s`.\n    /// This produces a hash corresponding to the one signed with the\n    /// [`eth_sign`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign)\n    /// JSON-RPC method as part of EIP-191.\n    /// Note: Supports lengths of `s` up to 999999 bytes.\n    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let sLength := mload(s)\n            let o := 0x20\n            mstore(o, \"\\x19Ethereum Signed Message:\\n\") // 26 bytes, zero-right-padded.\n            mstore(0x00, 0x00)\n            // Convert the `s.length` to ASCII decimal representation: `base10(s.length)`.\n            for { let temp := sLength } 1 {} {\n                o := sub(o, 1)\n                mstore8(o, add(48, mod(temp, 10)))\n                temp := div(temp, 10)\n                if iszero(temp) { break }\n            }\n            let n := sub(0x3a, o) // Header length: `26 + 32 - o`.\n            // Throw an out-of-offset error (consumes all gas) if the header exceeds 32 bytes.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0x20))\n            mstore(s, or(mload(0x00), mload(n))) // Temporarily store the header.\n            result := keccak256(add(s, sub(0x20, n)), add(n, sLength))\n            mstore(s, sLength) // Restore the length.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                  CANONICAL HASH FUNCTIONS                  */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // The following functions return the hash of the signature in its canonicalized format,\n    // which is the 65-byte `abi.encodePacked(r, s, uint8(v))`, where `v` is either 27 or 28.\n    // If `s` is greater than `N / 2` then it will be converted to `N - s`\n    // and the `v` value will be flipped.\n    // If the signature has an invalid length, or if `v` is invalid,\n    // a uniquely corrupt hash will be returned.\n    // These functions are useful for \"poor-mans-VRF\".\n\n    /// @dev Returns the canonical hash of `signature`.\n    function canonicalHash(bytes memory signature) internal pure returns (bytes32 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let l := mload(signature)\n            for {} 1 {} {\n                mstore(0x00, mload(add(signature, 0x20))) // `r`.\n                let s := mload(add(signature, 0x40))\n                let v := mload(add(signature, 0x41))\n                if eq(l, 64) {\n                    v := add(shr(255, s), 27)\n                    s := shr(1, shl(1, s))\n                }\n                if iszero(lt(s, _HALF_N_PLUS_1)) {\n                    v := xor(v, 7)\n                    s := sub(N, s)\n                }\n                mstore(0x21, v)\n                mstore(0x20, s)\n                result := keccak256(0x00, 0x41)\n                mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n                break\n            }\n\n            // If the length is neither 64 nor 65, return a uniquely corrupted hash.\n            if iszero(lt(sub(l, 64), 2)) {\n                // `bytes4(keccak256(\"InvalidSignatureLength\"))`.\n                result := xor(keccak256(add(signature, 0x20), l), 0xd62f1ab2)\n            }\n        }\n    }\n\n    /// @dev Returns the canonical hash of `signature`.\n    function canonicalHashCalldata(bytes calldata signature)\n        internal\n        pure\n        returns (bytes32 result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            for {} 1 {} {\n                mstore(0x00, calldataload(signature.offset)) // `r`.\n                let s := calldataload(add(signature.offset, 0x20))\n                let v := calldataload(add(signature.offset, 0x21))\n                if eq(signature.length, 64) {\n                    v := add(shr(255, s), 27)\n                    s := shr(1, shl(1, s))\n                }\n                if iszero(lt(s, _HALF_N_PLUS_1)) {\n                    v := xor(v, 7)\n                    s := sub(N, s)\n                }\n                mstore(0x21, v)\n                mstore(0x20, s)\n                result := keccak256(0x00, 0x41)\n                mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n                break\n            }\n            // If the length is neither 64 nor 65, return a uniquely corrupted hash.\n            if iszero(lt(sub(signature.length, 64), 2)) {\n                calldatacopy(mload(0x40), signature.offset, signature.length)\n                // `bytes4(keccak256(\"InvalidSignatureLength\"))`.\n                result := xor(keccak256(mload(0x40), signature.length), 0xd62f1ab2)\n            }\n        }\n    }\n\n    /// @dev Returns the canonical hash of `signature`.\n    function canonicalHash(bytes32 r, bytes32 vs) internal pure returns (bytes32 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, r) // `r`.\n            let v := add(shr(255, vs), 27)\n            let s := shr(1, shl(1, vs))\n            mstore(0x21, v)\n            mstore(0x20, s)\n            result := keccak256(0x00, 0x41)\n            mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the canonical hash of `signature`.\n    function canonicalHash(uint8 v, bytes32 r, bytes32 s) internal pure returns (bytes32 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, r) // `r`.\n            if iszero(lt(s, _HALF_N_PLUS_1)) {\n                v := xor(v, 7)\n                s := sub(N, s)\n            }\n            mstore(0x21, v)\n            mstore(0x20, s)\n            result := keccak256(0x00, 0x41)\n            mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                   EMPTY CALLDATA HELPERS                   */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns an empty calldata bytes.\n    function emptySignature() internal pure returns (bytes calldata signature) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            signature.length := 0\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/EIP712.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Contract for EIP-712 typed structured data hashing and signing.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/EIP712.sol)\n/// @author Modified from Solbase (https://github.com/Sol-DAO/solbase/blob/main/src/utils/EIP712.sol)\n/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/cryptography/EIP712.sol)\n///\n/// @dev Note, this implementation:\n/// - Uses `address(this)` for the `verifyingContract` field.\n/// - Does NOT use the optional EIP-712 salt.\n/// - Does NOT use any EIP-712 extensions.\n/// This is for simplicity and to save gas.\n/// If you need to customize, please fork / modify accordingly.\nabstract contract EIP712 {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                  CONSTANTS AND IMMUTABLES                  */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev `keccak256(\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\")`.\n    bytes32 internal constant _DOMAIN_TYPEHASH =\n        0x8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f;\n\n    /// @dev `keccak256(\"EIP712Domain(string name,string version,address verifyingContract)\")`.\n    /// This is only used in `_hashTypedDataSansChainId`.\n    bytes32 internal constant _DOMAIN_TYPEHASH_SANS_CHAIN_ID =\n        0x91ab3d17e3a50a9d89e63fd30b92be7f5336b03b287bb946787a83a9d62a2766;\n\n    /// @dev `keccak256(\"EIP712Domain(string name,string version)\")`.\n    /// This is only used in `_hashTypedDataSansChainIdAndVerifyingContract`.\n    bytes32 internal constant _DOMAIN_TYPEHASH_SANS_CHAIN_ID_AND_VERIFYING_CONTRACT =\n        0xb03948446334eb9b2196d5eb166f69b9d49403eb4a12f36de8d3f9f3cb8e15c3;\n\n    /// @dev `keccak256(\"EIP712Domain(string name,string version,uint256 chainId)\")`.\n    /// This is only used in `_hashTypedDataSansVerifyingContract`.\n    bytes32 internal constant _DOMAIN_TYPEHASH_SANS_VERIFYING_CONTRACT =\n        0xc2f8787176b8ac6bf7215b4adcc1e069bf4ab82d9ab1df05a57a91d425935b6e;\n\n    uint256 private immutable _cachedThis;\n    uint256 private immutable _cachedChainId;\n    bytes32 private immutable _cachedNameHash;\n    bytes32 private immutable _cachedVersionHash;\n    bytes32 private immutable _cachedDomainSeparator;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                        CONSTRUCTOR                         */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Cache the hashes for cheaper runtime gas costs.\n    /// In the case of upgradeable contracts (i.e. proxies),\n    /// or if the chain id changes due to a hard fork,\n    /// the domain separator will be seamlessly calculated on-the-fly.\n    constructor() {\n        _cachedThis = uint256(uint160(address(this)));\n        _cachedChainId = block.chainid;\n\n        string memory name;\n        string memory version;\n        if (!_domainNameAndVersionMayChange()) (name, version) = _domainNameAndVersion();\n        bytes32 nameHash = _domainNameAndVersionMayChange() ? bytes32(0) : keccak256(bytes(name));\n        bytes32 versionHash =\n            _domainNameAndVersionMayChange() ? bytes32(0) : keccak256(bytes(version));\n        _cachedNameHash = nameHash;\n        _cachedVersionHash = versionHash;\n\n        bytes32 separator;\n        if (!_domainNameAndVersionMayChange()) {\n            /// @solidity memory-safe-assembly\n            assembly {\n                let m := mload(0x40) // Load the free memory pointer.\n                mstore(m, _DOMAIN_TYPEHASH)\n                mstore(add(m, 0x20), nameHash)\n                mstore(add(m, 0x40), versionHash)\n                mstore(add(m, 0x60), chainid())\n                mstore(add(m, 0x80), address())\n                separator := keccak256(m, 0xa0)\n            }\n        }\n        _cachedDomainSeparator = separator;\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                   FUNCTIONS TO OVERRIDE                    */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Please override this function to return the domain name and version.\n    /// ```\n    ///     function _domainNameAndVersion()\n    ///         internal\n    ///         pure\n    ///         virtual\n    ///         returns (string memory name, string memory version)\n    ///     {\n    ///         name = \"Solady\";\n    ///         version = \"1\";\n    ///     }\n    /// ```\n    ///\n    /// Note: If the returned result may change after the contract has been deployed,\n    /// you must override `_domainNameAndVersionMayChange()` to return true.\n    function _domainNameAndVersion()\n        internal\n        view\n        virtual\n        returns (string memory name, string memory version);\n\n    /// @dev Returns if `_domainNameAndVersion()` may change\n    /// after the contract has been deployed (i.e. after the constructor).\n    /// Default: false.\n    function _domainNameAndVersionMayChange() internal pure virtual returns (bool result) {}\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     HASHING OPERATIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns the EIP-712 domain separator.\n    function _domainSeparator() internal view virtual returns (bytes32 separator) {\n        if (_domainNameAndVersionMayChange()) {\n            separator = _buildDomainSeparator();\n        } else {\n            separator = _cachedDomainSeparator;\n            if (_cachedDomainSeparatorInvalidated()) separator = _buildDomainSeparator();\n        }\n    }\n\n    /// @dev Returns the hash of the fully encoded EIP-712 message for this domain,\n    /// given `structHash`, as defined in\n    /// https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct.\n    ///\n    /// The hash can be used together with {ECDSA-recover} to obtain the signer of a message:\n    /// ```\n    ///     bytes32 digest = _hashTypedData(keccak256(abi.encode(\n    ///         keccak256(\"Mail(address to,string contents)\"),\n    ///         mailTo,\n    ///         keccak256(bytes(mailContents))\n    ///     )));\n    ///     address signer = ECDSA.recover(digest, signature);\n    /// ```\n    function _hashTypedData(bytes32 structHash) internal view virtual returns (bytes32 digest) {\n        // We will use `digest` to store the domain separator to save a bit of gas.\n        if (_domainNameAndVersionMayChange()) {\n            digest = _buildDomainSeparator();\n        } else {\n            digest = _cachedDomainSeparator;\n            if (_cachedDomainSeparatorInvalidated()) digest = _buildDomainSeparator();\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute the digest.\n            mstore(0x00, 0x1901000000000000) // Store \"\\x19\\x01\".\n            mstore(0x1a, digest) // Store the domain separator.\n            mstore(0x3a, structHash) // Store the struct hash.\n            digest := keccak256(0x18, 0x42)\n            // Restore the part of the free memory slot that was overwritten.\n            mstore(0x3a, 0)\n        }\n    }\n\n    /// @dev Variant of `_hashTypedData` that excludes the chain ID.\n    /// Included for the niche use case of cross-chain workflows.\n    function _hashTypedDataSansChainId(bytes32 structHash)\n        internal\n        view\n        virtual\n        returns (bytes32 digest)\n    {\n        (string memory name, string memory version) = _domainNameAndVersion();\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Load the free memory pointer.\n            mstore(0x00, _DOMAIN_TYPEHASH_SANS_CHAIN_ID)\n            mstore(0x20, keccak256(add(name, 0x20), mload(name)))\n            mstore(0x40, keccak256(add(version, 0x20), mload(version)))\n            mstore(0x60, address())\n            // Compute the digest.\n            mstore(0x20, keccak256(0x00, 0x80)) // Store the domain separator.\n            mstore(0x00, 0x1901) // Store \"\\x19\\x01\".\n            mstore(0x40, structHash) // Store the struct hash.\n            digest := keccak256(0x1e, 0x42)\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero pointer.\n        }\n    }\n\n    /// @dev Variant of `_hashTypedData` that excludes the chain ID and verifying contract.\n    /// Included for the niche use case of cross-chain and multi-verifier workflows.\n    function _hashTypedDataSansChainIdAndVerifyingContract(bytes32 structHash)\n        internal\n        view\n        virtual\n        returns (bytes32 digest)\n    {\n        (string memory name, string memory version) = _domainNameAndVersion();\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Load the free memory pointer.\n            mstore(0x00, _DOMAIN_TYPEHASH_SANS_CHAIN_ID_AND_VERIFYING_CONTRACT)\n            mstore(0x20, keccak256(add(name, 0x20), mload(name)))\n            mstore(0x40, keccak256(add(version, 0x20), mload(version)))\n            // Compute the digest.\n            mstore(0x20, keccak256(0x00, 0x60)) // Store the domain separator.\n            mstore(0x00, 0x1901) // Store \"\\x19\\x01\".\n            mstore(0x40, structHash) // Store the struct hash.\n            digest := keccak256(0x1e, 0x42)\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero pointer.\n        }\n    }\n\n    /// @dev Variant of `_hashTypedData` that excludes the chain ID and verifying contract.\n    /// Included for the niche use case of multi-verifier workflows.\n    function _hashTypedDataSansVerifyingContract(bytes32 structHash)\n        internal\n        view\n        virtual\n        returns (bytes32 digest)\n    {\n        (string memory name, string memory version) = _domainNameAndVersion();\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Load the free memory pointer.\n            mstore(0x00, _DOMAIN_TYPEHASH_SANS_VERIFYING_CONTRACT)\n            mstore(0x20, keccak256(add(name, 0x20), mload(name)))\n            mstore(0x40, keccak256(add(version, 0x20), mload(version)))\n            mstore(0x60, chainid())\n            // Compute the digest.\n            mstore(0x20, keccak256(0x00, 0x80)) // Store the domain separator.\n            mstore(0x00, 0x1901) // Store \"\\x19\\x01\".\n            mstore(0x40, structHash) // Store the struct hash.\n            digest := keccak256(0x1e, 0x42)\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero pointer.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                    EIP-5267 OPERATIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev See: https://eips.ethereum.org/EIPS/eip-5267\n    function eip712Domain()\n        public\n        view\n        virtual\n        returns (\n            bytes1 fields,\n            string memory name,\n            string memory version,\n            uint256 chainId,\n            address verifyingContract,\n            bytes32 salt,\n            uint256[] memory extensions\n        )\n    {\n        fields = hex\"0f\"; // `0b01111`.\n        (name, version) = _domainNameAndVersion();\n        chainId = block.chainid;\n        verifyingContract = address(this);\n        salt = salt; // `bytes32(0)`.\n        extensions = extensions; // `new uint256[](0)`.\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      PRIVATE HELPERS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns the EIP-712 domain separator.\n    function _buildDomainSeparator() private view returns (bytes32 separator) {\n        // We will use `separator` to store the name hash to save a bit of gas.\n        bytes32 versionHash;\n        if (_domainNameAndVersionMayChange()) {\n            (string memory name, string memory version) = _domainNameAndVersion();\n            separator = keccak256(bytes(name));\n            versionHash = keccak256(bytes(version));\n        } else {\n            separator = _cachedNameHash;\n            versionHash = _cachedVersionHash;\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Load the free memory pointer.\n            mstore(m, _DOMAIN_TYPEHASH)\n            mstore(add(m, 0x20), separator) // Name hash.\n            mstore(add(m, 0x40), versionHash)\n            mstore(add(m, 0x60), chainid())\n            mstore(add(m, 0x80), address())\n            separator := keccak256(m, 0xa0)\n        }\n    }\n\n    /// @dev Returns if the cached domain separator has been invalidated.\n    function _cachedDomainSeparatorInvalidated() private view returns (bool result) {\n        uint256 cachedChainId = _cachedChainId;\n        uint256 cachedThis = _cachedThis;\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := iszero(and(eq(chainid(), cachedChainId), eq(address(), cachedThis)))\n        }\n    }\n}\n"},"lib/solady/src/tokens/ERC1155.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Simple ERC1155 implementation.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/tokens/ERC1155.sol)\n/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC1155.sol)\n/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/tree/master/contracts/token/ERC1155/ERC1155.sol)\n///\n/// @dev Note:\n/// - The ERC1155 standard allows for self-approvals.\n///   For performance, this implementation WILL NOT revert for such actions.\n///   Please add any checks with overrides if desired.\n/// - The transfer functions use the identity precompile (0x4)\n///   to copy memory internally.\n///\n/// If you are overriding:\n/// - Make sure all variables written to storage are properly cleaned\n//    (e.g. the bool value for `isApprovedForAll` MUST be either 1 or 0 under the hood).\n/// - Check that the overridden function is actually used in the function you want to\n///   change the behavior of. Much of the code has been manually inlined for performance.\nabstract contract ERC1155 {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The lengths of the input arrays are not the same.\n    error ArrayLengthsMismatch();\n\n    /// @dev Cannot mint or transfer to the zero address.\n    error TransferToZeroAddress();\n\n    /// @dev The recipient's balance has overflowed.\n    error AccountBalanceOverflow();\n\n    /// @dev Insufficient balance.\n    error InsufficientBalance();\n\n    /// @dev Only the token owner or an approved account can manage the tokens.\n    error NotOwnerNorApproved();\n\n    /// @dev Cannot safely transfer to a contract that does not implement\n    /// the ERC1155Receiver interface.\n    error TransferToNonERC1155ReceiverImplementer();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                           EVENTS                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Emitted when `amount` of token `id` is transferred\n    /// from `from` to `to` by `operator`.\n    event TransferSingle(\n        address indexed operator,\n        address indexed from,\n        address indexed to,\n        uint256 id,\n        uint256 amount\n    );\n\n    /// @dev Emitted when `amounts` of token `ids` are transferred\n    /// from `from` to `to` by `operator`.\n    event TransferBatch(\n        address indexed operator,\n        address indexed from,\n        address indexed to,\n        uint256[] ids,\n        uint256[] amounts\n    );\n\n    /// @dev Emitted when `owner` enables or disables `operator` to manage all of their tokens.\n    event ApprovalForAll(address indexed owner, address indexed operator, bool isApproved);\n\n    /// @dev Emitted when the Uniform Resource Identifier (URI) for token `id`\n    /// is updated to `value`. This event is not used in the base contract.\n    /// You may need to emit this event depending on your URI logic.\n    ///\n    /// See: https://eips.ethereum.org/EIPS/eip-1155#metadata\n    event URI(string value, uint256 indexed id);\n\n    /// @dev `keccak256(bytes(\"TransferSingle(address,address,address,uint256,uint256)\"))`.\n    uint256 private constant _TRANSFER_SINGLE_EVENT_SIGNATURE =\n        0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62;\n\n    /// @dev `keccak256(bytes(\"TransferBatch(address,address,address,uint256[],uint256[])\"))`.\n    uint256 private constant _TRANSFER_BATCH_EVENT_SIGNATURE =\n        0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb;\n\n    /// @dev `keccak256(bytes(\"ApprovalForAll(address,address,bool)\"))`.\n    uint256 private constant _APPROVAL_FOR_ALL_EVENT_SIGNATURE =\n        0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                          STORAGE                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The `ownerSlotSeed` of a given owner is given by.\n    /// ```\n    ///     let ownerSlotSeed := or(_ERC1155_MASTER_SLOT_SEED, shl(96, owner))\n    /// ```\n    ///\n    /// The balance slot of `owner` is given by.\n    /// ```\n    ///     mstore(0x20, ownerSlotSeed)\n    ///     mstore(0x00, id)\n    ///     let balanceSlot := keccak256(0x00, 0x40)\n    /// ```\n    ///\n    /// The operator approval slot of `owner` is given by.\n    /// ```\n    ///     mstore(0x20, ownerSlotSeed)\n    ///     mstore(0x00, operator)\n    ///     let operatorApprovalSlot := keccak256(0x0c, 0x34)\n    /// ```\n    uint256 private constant _ERC1155_MASTER_SLOT_SEED = 0x9a31110384e0b0c9;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      ERC1155 METADATA                      */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns the URI for token `id`.\n    ///\n    /// You can either return the same templated URI for all token IDs,\n    /// (e.g. \"https://example.com/api/{id}.json\"),\n    /// or return a unique URI for each `id`.\n    ///\n    /// See: https://eips.ethereum.org/EIPS/eip-1155#metadata\n    function uri(uint256 id) public view virtual returns (string memory);\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                          ERC1155                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns the amount of `id` owned by `owner`.\n    function balanceOf(address owner, uint256 id) public view virtual returns (uint256 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x20, _ERC1155_MASTER_SLOT_SEED)\n            mstore(0x14, owner)\n            mstore(0x00, id)\n            result := sload(keccak256(0x00, 0x40))\n        }\n    }\n\n    /// @dev Returns whether `operator` is approved to manage the tokens of `owner`.\n    function isApprovedForAll(address owner, address operator)\n        public\n        view\n        virtual\n        returns (bool result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x20, _ERC1155_MASTER_SLOT_SEED)\n            mstore(0x14, owner)\n            mstore(0x00, operator)\n            result := sload(keccak256(0x0c, 0x34))\n        }\n    }\n\n    /// @dev Sets whether `operator` is approved to manage the tokens of the caller.\n    ///\n    /// Emits a {ApprovalForAll} event.\n    function setApprovalForAll(address operator, bool isApproved) public virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Convert to 0 or 1.\n            isApproved := iszero(iszero(isApproved))\n            // Update the `isApproved` for (`msg.sender`, `operator`).\n            mstore(0x20, _ERC1155_MASTER_SLOT_SEED)\n            mstore(0x14, caller())\n            mstore(0x00, operator)\n            sstore(keccak256(0x0c, 0x34), isApproved)\n            // Emit the {ApprovalForAll} event.\n            mstore(0x00, isApproved)\n            // forgefmt: disable-next-line\n            log3(0x00, 0x20, _APPROVAL_FOR_ALL_EVENT_SIGNATURE, caller(), shr(96, shl(96, operator)))\n        }\n    }\n\n    /// @dev Transfers `amount` of `id` from `from` to `to`.\n    ///\n    /// Requirements:\n    /// - `to` cannot be the zero address.\n    /// - `from` must have at least `amount` of `id`.\n    /// - If the caller is not `from`,\n    ///   it must be approved to manage the tokens of `from`.\n    /// - If `to` refers to a smart contract, it must implement\n    ///   {ERC1155-onERC1155Received}, which is called upon a batch transfer.\n    ///\n    /// Emits a {TransferSingle} event.\n    function safeTransferFrom(\n        address from,\n        address to,\n        uint256 id,\n        uint256 amount,\n        bytes calldata data\n    ) public virtual {\n        if (_useBeforeTokenTransfer()) {\n            _beforeTokenTransfer(from, to, _single(id), _single(amount), data);\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            let fromSlotSeed := or(_ERC1155_MASTER_SLOT_SEED, shl(96, from))\n            let toSlotSeed := or(_ERC1155_MASTER_SLOT_SEED, shl(96, to))\n            mstore(0x20, fromSlotSeed)\n            // Clear the upper 96 bits.\n            from := shr(96, fromSlotSeed)\n            to := shr(96, toSlotSeed)\n            // Revert if `to` is the zero address.\n            if iszero(to) {\n                mstore(0x00, 0xea553b34) // `TransferToZeroAddress()`.\n                revert(0x1c, 0x04)\n            }\n            // If the caller is not `from`, do the authorization check.\n            if iszero(eq(caller(), from)) {\n                mstore(0x00, caller())\n                if iszero(sload(keccak256(0x0c, 0x34))) {\n                    mstore(0x00, 0x4b6e7f18) // `NotOwnerNorApproved()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            // Subtract and store the updated balance of `from`.\n            {\n                mstore(0x00, id)\n                let fromBalanceSlot := keccak256(0x00, 0x40)\n                let fromBalance := sload(fromBalanceSlot)\n                if gt(amount, fromBalance) {\n                    mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.\n                    revert(0x1c, 0x04)\n                }\n                sstore(fromBalanceSlot, sub(fromBalance, amount))\n            }\n            // Increase and store the updated balance of `to`.\n            {\n                mstore(0x20, toSlotSeed)\n                let toBalanceSlot := keccak256(0x00, 0x40)\n                let toBalanceBefore := sload(toBalanceSlot)\n                let toBalanceAfter := add(toBalanceBefore, amount)\n                if lt(toBalanceAfter, toBalanceBefore) {\n                    mstore(0x00, 0x01336cea) // `AccountBalanceOverflow()`.\n                    revert(0x1c, 0x04)\n                }\n                sstore(toBalanceSlot, toBalanceAfter)\n            }\n            // Emit a {TransferSingle} event.\n            mstore(0x20, amount)\n            log4(0x00, 0x40, _TRANSFER_SINGLE_EVENT_SIGNATURE, caller(), from, to)\n        }\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransfer(from, to, _single(id), _single(amount), data);\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Do the {onERC1155Received} check if `to` is a smart contract.\n            if extcodesize(to) {\n                // Prepare the calldata.\n                let m := mload(0x40)\n                // `onERC1155Received(address,address,uint256,uint256,bytes)`.\n                mstore(m, 0xf23a6e61)\n                mstore(add(m, 0x20), caller())\n                mstore(add(m, 0x40), from)\n                mstore(add(m, 0x60), id)\n                mstore(add(m, 0x80), amount)\n                mstore(add(m, 0xa0), 0xa0)\n                mstore(add(m, 0xc0), data.length)\n                calldatacopy(add(m, 0xe0), data.offset, data.length)\n                // Revert if the call reverts.\n                if iszero(call(gas(), to, 0, add(m, 0x1c), add(0xc4, data.length), m, 0x20)) {\n                    if returndatasize() {\n                        // Bubble up the revert if the call reverts.\n                        returndatacopy(m, 0x00, returndatasize())\n                        revert(m, returndatasize())\n                    }\n                }\n                // Load the returndata and compare it with the function selector.\n                if iszero(eq(mload(m), shl(224, 0xf23a6e61))) {\n                    mstore(0x00, 0x9c05499b) // `TransferToNonERC1155ReceiverImplementer()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n        }\n    }\n\n    /// @dev Transfers `amounts` of `ids` from `from` to `to`.\n    ///\n    /// Requirements:\n    /// - `to` cannot be the zero address.\n    /// - `from` must have at least `amount` of `id`.\n    /// - `ids` and `amounts` must have the same length.\n    /// - If the caller is not `from`,\n    ///   it must be approved to manage the tokens of `from`.\n    /// - If `to` refers to a smart contract, it must implement\n    ///   {ERC1155-onERC1155BatchReceived}, which is called upon a batch transfer.\n    ///\n    /// Emits a {TransferBatch} event.\n    function safeBatchTransferFrom(\n        address from,\n        address to,\n        uint256[] calldata ids,\n        uint256[] calldata amounts,\n        bytes calldata data\n    ) public virtual {\n        if (_useBeforeTokenTransfer()) {\n            _beforeTokenTransfer(from, to, ids, amounts, data);\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(eq(ids.length, amounts.length)) {\n                mstore(0x00, 0x3b800a46) // `ArrayLengthsMismatch()`.\n                revert(0x1c, 0x04)\n            }\n            let fromSlotSeed := or(_ERC1155_MASTER_SLOT_SEED, shl(96, from))\n            let toSlotSeed := or(_ERC1155_MASTER_SLOT_SEED, shl(96, to))\n            mstore(0x20, fromSlotSeed)\n            // Clear the upper 96 bits.\n            from := shr(96, fromSlotSeed)\n            to := shr(96, toSlotSeed)\n            // Revert if `to` is the zero address.\n            if iszero(to) {\n                mstore(0x00, 0xea553b34) // `TransferToZeroAddress()`.\n                revert(0x1c, 0x04)\n            }\n            // If the caller is not `from`, do the authorization check.\n            if iszero(eq(caller(), from)) {\n                mstore(0x00, caller())\n                if iszero(sload(keccak256(0x0c, 0x34))) {\n                    mstore(0x00, 0x4b6e7f18) // `NotOwnerNorApproved()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            // Loop through all the `ids` and update the balances.\n            {\n                for { let i := shl(5, ids.length) } i {} {\n                    i := sub(i, 0x20)\n                    let amount := calldataload(add(amounts.offset, i))\n                    // Subtract and store the updated balance of `from`.\n                    {\n                        mstore(0x20, fromSlotSeed)\n                        mstore(0x00, calldataload(add(ids.offset, i)))\n                        let fromBalanceSlot := keccak256(0x00, 0x40)\n                        let fromBalance := sload(fromBalanceSlot)\n                        if gt(amount, fromBalance) {\n                            mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.\n                            revert(0x1c, 0x04)\n                        }\n                        sstore(fromBalanceSlot, sub(fromBalance, amount))\n                    }\n                    // Increase and store the updated balance of `to`.\n                    {\n                        mstore(0x20, toSlotSeed)\n                        let toBalanceSlot := keccak256(0x00, 0x40)\n                        let toBalanceBefore := sload(toBalanceSlot)\n                        let toBalanceAfter := add(toBalanceBefore, amount)\n                        if lt(toBalanceAfter, toBalanceBefore) {\n                            mstore(0x00, 0x01336cea) // `AccountBalanceOverflow()`.\n                            revert(0x1c, 0x04)\n                        }\n                        sstore(toBalanceSlot, toBalanceAfter)\n                    }\n                }\n            }\n            // Emit a {TransferBatch} event.\n            {\n                let m := mload(0x40)\n                // Copy the `ids`.\n                mstore(m, 0x40)\n                let n := shl(5, ids.length)\n                mstore(add(m, 0x40), ids.length)\n                calldatacopy(add(m, 0x60), ids.offset, n)\n                // Copy the `amounts`.\n                mstore(add(m, 0x20), add(0x60, n))\n                let o := add(add(m, n), 0x60)\n                mstore(o, ids.length)\n                calldatacopy(add(o, 0x20), amounts.offset, n)\n                // Do the emit.\n                log4(m, add(add(n, n), 0x80), _TRANSFER_BATCH_EVENT_SIGNATURE, caller(), from, to)\n            }\n        }\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransferCalldata(from, to, ids, amounts, data);\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Do the {onERC1155BatchReceived} check if `to` is a smart contract.\n            if extcodesize(to) {\n                mstore(0x00, to) // Cache `to` to prevent stack too deep.\n                let m := mload(0x40)\n                // Prepare the calldata.\n                // `onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)`.\n                mstore(m, 0xbc197c81)\n                mstore(add(m, 0x20), caller())\n                mstore(add(m, 0x40), from)\n                // Copy the `ids`.\n                mstore(add(m, 0x60), 0xa0)\n                let n := shl(5, ids.length)\n                mstore(add(m, 0xc0), ids.length)\n                calldatacopy(add(m, 0xe0), ids.offset, n)\n                // Copy the `amounts`.\n                mstore(add(m, 0x80), add(0xc0, n))\n                let o := add(add(m, n), 0xe0)\n                mstore(o, ids.length)\n                calldatacopy(add(o, 0x20), amounts.offset, n)\n                // Copy the `data`.\n                mstore(add(m, 0xa0), add(add(0xe0, n), n))\n                o := add(add(o, n), 0x20)\n                mstore(o, data.length)\n                calldatacopy(add(o, 0x20), data.offset, data.length)\n                let nAll := add(0x104, add(data.length, add(n, n)))\n                // Revert if the call reverts.\n                if iszero(call(gas(), mload(0x00), 0, add(mload(0x40), 0x1c), nAll, m, 0x20)) {\n                    if returndatasize() {\n                        // Bubble up the revert if the call reverts.\n                        returndatacopy(m, 0x00, returndatasize())\n                        revert(m, returndatasize())\n                    }\n                }\n                // Load the returndata and compare it with the function selector.\n                if iszero(eq(mload(m), shl(224, 0xbc197c81))) {\n                    mstore(0x00, 0x9c05499b) // `TransferToNonERC1155ReceiverImplementer()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n        }\n    }\n\n    /// @dev Returns the amounts of `ids` for `owners.\n    ///\n    /// Requirements:\n    /// - `owners` and `ids` must have the same length.\n    function balanceOfBatch(address[] calldata owners, uint256[] calldata ids)\n        public\n        view\n        virtual\n        returns (uint256[] memory balances)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(eq(ids.length, owners.length)) {\n                mstore(0x00, 0x3b800a46) // `ArrayLengthsMismatch()`.\n                revert(0x1c, 0x04)\n            }\n            balances := mload(0x40)\n            mstore(balances, ids.length)\n            let o := add(balances, 0x20)\n            let i := shl(5, ids.length)\n            mstore(0x40, add(i, o))\n            // Loop through all the `ids` and load the balances.\n            for {} i {} {\n                i := sub(i, 0x20)\n                let owner := calldataload(add(owners.offset, i))\n                mstore(0x20, or(_ERC1155_MASTER_SLOT_SEED, shl(96, owner)))\n                mstore(0x00, calldataload(add(ids.offset, i)))\n                mstore(add(o, i), sload(keccak256(0x00, 0x40)))\n            }\n        }\n    }\n\n    /// @dev Returns true if this contract implements the interface defined by `interfaceId`.\n    /// See: https://eips.ethereum.org/EIPS/eip-165\n    /// This function call must use less than 30000 gas.\n    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let s := shr(224, interfaceId)\n            // ERC165: 0x01ffc9a7, ERC1155: 0xd9b67a26, ERC1155MetadataURI: 0x0e89341c.\n            result := or(or(eq(s, 0x01ffc9a7), eq(s, 0xd9b67a26)), eq(s, 0x0e89341c))\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                  INTERNAL MINT FUNCTIONS                   */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Mints `amount` of `id` to `to`.\n    ///\n    /// Requirements:\n    /// - `to` cannot be the zero address.\n    /// - If `to` refers to a smart contract, it must implement\n    ///   {ERC1155-onERC1155Received}, which is called upon a batch transfer.\n    ///\n    /// Emits a {TransferSingle} event.\n    function _mint(address to, uint256 id, uint256 amount, bytes memory data) internal virtual {\n        if (_useBeforeTokenTransfer()) {\n            _beforeTokenTransfer(address(0), to, _single(id), _single(amount), data);\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            let to_ := shl(96, to)\n            // Revert if `to` is the zero address.\n            if iszero(to_) {\n                mstore(0x00, 0xea553b34) // `TransferToZeroAddress()`.\n                revert(0x1c, 0x04)\n            }\n            // Increase and store the updated balance of `to`.\n            {\n                mstore(0x20, _ERC1155_MASTER_SLOT_SEED)\n                mstore(0x14, to)\n                mstore(0x00, id)\n                let toBalanceSlot := keccak256(0x00, 0x40)\n                let toBalanceBefore := sload(toBalanceSlot)\n                let toBalanceAfter := add(toBalanceBefore, amount)\n                if lt(toBalanceAfter, toBalanceBefore) {\n                    mstore(0x00, 0x01336cea) // `AccountBalanceOverflow()`.\n                    revert(0x1c, 0x04)\n                }\n                sstore(toBalanceSlot, toBalanceAfter)\n            }\n            // Emit a {TransferSingle} event.\n            mstore(0x20, amount)\n            log4(0x00, 0x40, _TRANSFER_SINGLE_EVENT_SIGNATURE, caller(), 0, shr(96, to_))\n        }\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransfer(address(0), to, _single(id), _single(amount), data);\n        }\n        if (_hasCode(to)) _checkOnERC1155Received(address(0), to, id, amount, data);\n    }\n\n    /// @dev Mints `amounts` of `ids` to `to`.\n    ///\n    /// Requirements:\n    /// - `to` cannot be the zero address.\n    /// - `ids` and `amounts` must have the same length.\n    /// - If `to` refers to a smart contract, it must implement\n    ///   {ERC1155-onERC1155BatchReceived}, which is called upon a batch transfer.\n    ///\n    /// Emits a {TransferBatch} event.\n    function _batchMint(\n        address to,\n        uint256[] memory ids,\n        uint256[] memory amounts,\n        bytes memory data\n    ) internal virtual {\n        if (_useBeforeTokenTransfer()) {\n            _beforeTokenTransfer(address(0), to, ids, amounts, data);\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(eq(mload(ids), mload(amounts))) {\n                mstore(0x00, 0x3b800a46) // `ArrayLengthsMismatch()`.\n                revert(0x1c, 0x04)\n            }\n            let to_ := shl(96, to)\n            // Revert if `to` is the zero address.\n            if iszero(to_) {\n                mstore(0x00, 0xea553b34) // `TransferToZeroAddress()`.\n                revert(0x1c, 0x04)\n            }\n            // Loop through all the `ids` and update the balances.\n            {\n                mstore(0x20, or(_ERC1155_MASTER_SLOT_SEED, to_))\n                for { let i := shl(5, mload(ids)) } i { i := sub(i, 0x20) } {\n                    let amount := mload(add(amounts, i))\n                    // Increase and store the updated balance of `to`.\n                    {\n                        mstore(0x00, mload(add(ids, i)))\n                        let toBalanceSlot := keccak256(0x00, 0x40)\n                        let toBalanceBefore := sload(toBalanceSlot)\n                        let toBalanceAfter := add(toBalanceBefore, amount)\n                        if lt(toBalanceAfter, toBalanceBefore) {\n                            mstore(0x00, 0x01336cea) // `AccountBalanceOverflow()`.\n                            revert(0x1c, 0x04)\n                        }\n                        sstore(toBalanceSlot, toBalanceAfter)\n                    }\n                }\n            }\n            // Emit a {TransferBatch} event.\n            {\n                let m := mload(0x40)\n                // Copy the `ids`.\n                mstore(m, 0x40)\n                let n := add(0x20, shl(5, mload(ids)))\n                let o := add(m, 0x40)\n                pop(staticcall(gas(), 4, ids, n, o, n))\n                // Copy the `amounts`.\n                mstore(add(m, 0x20), add(0x40, returndatasize()))\n                o := add(o, returndatasize())\n                n := add(0x20, shl(5, mload(amounts)))\n                pop(staticcall(gas(), 4, amounts, n, o, n))\n                n := sub(add(o, returndatasize()), m)\n                // Do the emit.\n                log4(m, n, _TRANSFER_BATCH_EVENT_SIGNATURE, caller(), 0, shr(96, to_))\n            }\n        }\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransfer(address(0), to, ids, amounts, data);\n        }\n        if (_hasCode(to)) _checkOnERC1155BatchReceived(address(0), to, ids, amounts, data);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                  INTERNAL BURN FUNCTIONS                   */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Equivalent to `_burn(address(0), from, id, amount)`.\n    function _burn(address from, uint256 id, uint256 amount) internal virtual {\n        _burn(address(0), from, id, amount);\n    }\n\n    /// @dev Destroys `amount` of `id` from `from`.\n    ///\n    /// Requirements:\n    /// - `from` must have at least `amount` of `id`.\n    /// - If `by` is not the zero address, it must be either `from`,\n    ///   or approved to manage the tokens of `from`.\n    ///\n    /// Emits a {TransferSingle} event.\n    function _burn(address by, address from, uint256 id, uint256 amount) internal virtual {\n        if (_useBeforeTokenTransfer()) {\n            _beforeTokenTransfer(from, address(0), _single(id), _single(amount), \"\");\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            let from_ := shl(96, from)\n            mstore(0x20, or(_ERC1155_MASTER_SLOT_SEED, from_))\n            // If `by` is not the zero address, and not equal to `from`,\n            // check if it is approved to manage all the tokens of `from`.\n            if iszero(or(iszero(shl(96, by)), eq(shl(96, by), from_))) {\n                mstore(0x00, by)\n                if iszero(sload(keccak256(0x0c, 0x34))) {\n                    mstore(0x00, 0x4b6e7f18) // `NotOwnerNorApproved()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            // Decrease and store the updated balance of `from`.\n            {\n                mstore(0x00, id)\n                let fromBalanceSlot := keccak256(0x00, 0x40)\n                let fromBalance := sload(fromBalanceSlot)\n                if gt(amount, fromBalance) {\n                    mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.\n                    revert(0x1c, 0x04)\n                }\n                sstore(fromBalanceSlot, sub(fromBalance, amount))\n            }\n            // Emit a {TransferSingle} event.\n            mstore(0x20, amount)\n            log4(0x00, 0x40, _TRANSFER_SINGLE_EVENT_SIGNATURE, caller(), shr(96, from_), 0)\n        }\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransfer(from, address(0), _single(id), _single(amount), \"\");\n        }\n    }\n\n    /// @dev Equivalent to `_batchBurn(address(0), from, ids, amounts)`.\n    function _batchBurn(address from, uint256[] memory ids, uint256[] memory amounts)\n        internal\n        virtual\n    {\n        _batchBurn(address(0), from, ids, amounts);\n    }\n\n    /// @dev Destroys `amounts` of `ids` from `from`.\n    ///\n    /// Requirements:\n    /// - `ids` and `amounts` must have the same length.\n    /// - `from` must have at least `amounts` of `ids`.\n    /// - If `by` is not the zero address, it must be either `from`,\n    ///   or approved to manage the tokens of `from`.\n    ///\n    /// Emits a {TransferBatch} event.\n    function _batchBurn(address by, address from, uint256[] memory ids, uint256[] memory amounts)\n        internal\n        virtual\n    {\n        if (_useBeforeTokenTransfer()) {\n            _beforeTokenTransfer(from, address(0), ids, amounts, \"\");\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(eq(mload(ids), mload(amounts))) {\n                mstore(0x00, 0x3b800a46) // `ArrayLengthsMismatch()`.\n                revert(0x1c, 0x04)\n            }\n            let from_ := shl(96, from)\n            mstore(0x20, or(_ERC1155_MASTER_SLOT_SEED, from_))\n            // If `by` is not the zero address, and not equal to `from`,\n            // check if it is approved to manage all the tokens of `from`.\n            let by_ := shl(96, by)\n            if iszero(or(iszero(by_), eq(by_, from_))) {\n                mstore(0x00, by)\n                if iszero(sload(keccak256(0x0c, 0x34))) {\n                    mstore(0x00, 0x4b6e7f18) // `NotOwnerNorApproved()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            // Loop through all the `ids` and update the balances.\n            {\n                for { let i := shl(5, mload(ids)) } i { i := sub(i, 0x20) } {\n                    let amount := mload(add(amounts, i))\n                    // Decrease and store the updated balance of `from`.\n                    {\n                        mstore(0x00, mload(add(ids, i)))\n                        let fromBalanceSlot := keccak256(0x00, 0x40)\n                        let fromBalance := sload(fromBalanceSlot)\n                        if gt(amount, fromBalance) {\n                            mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.\n                            revert(0x1c, 0x04)\n                        }\n                        sstore(fromBalanceSlot, sub(fromBalance, amount))\n                    }\n                }\n            }\n            // Emit a {TransferBatch} event.\n            {\n                let m := mload(0x40)\n                // Copy the `ids`.\n                mstore(m, 0x40)\n                let n := add(0x20, shl(5, mload(ids)))\n                let o := add(m, 0x40)\n                pop(staticcall(gas(), 4, ids, n, o, n))\n                // Copy the `amounts`.\n                mstore(add(m, 0x20), add(0x40, returndatasize()))\n                o := add(o, returndatasize())\n                n := add(0x20, shl(5, mload(amounts)))\n                pop(staticcall(gas(), 4, amounts, n, o, n))\n                n := sub(add(o, returndatasize()), m)\n                // Do the emit.\n                log4(m, n, _TRANSFER_BATCH_EVENT_SIGNATURE, caller(), shr(96, from_), 0)\n            }\n        }\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransfer(from, address(0), ids, amounts, \"\");\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                INTERNAL APPROVAL FUNCTIONS                 */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Approve or remove the `operator` as an operator for `by`,\n    /// without authorization checks.\n    ///\n    /// Emits a {ApprovalForAll} event.\n    function _setApprovalForAll(address by, address operator, bool isApproved) internal virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Convert to 0 or 1.\n            isApproved := iszero(iszero(isApproved))\n            // Update the `isApproved` for (`by`, `operator`).\n            mstore(0x20, _ERC1155_MASTER_SLOT_SEED)\n            mstore(0x14, by)\n            mstore(0x00, operator)\n            sstore(keccak256(0x0c, 0x34), isApproved)\n            // Emit the {ApprovalForAll} event.\n            mstore(0x00, isApproved)\n            let m := shr(96, not(0))\n            log3(0x00, 0x20, _APPROVAL_FOR_ALL_EVENT_SIGNATURE, and(m, by), and(m, operator))\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                INTERNAL TRANSFER FUNCTIONS                 */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Equivalent to `_safeTransfer(address(0), from, to, id, amount, data)`.\n    function _safeTransfer(address from, address to, uint256 id, uint256 amount, bytes memory data)\n        internal\n        virtual\n    {\n        _safeTransfer(address(0), from, to, id, amount, data);\n    }\n\n    /// @dev Transfers `amount` of `id` from `from` to `to`.\n    ///\n    /// Requirements:\n    /// - `to` cannot be the zero address.\n    /// - `from` must have at least `amount` of `id`.\n    /// - If `by` is not the zero address, it must be either `from`,\n    ///   or approved to manage the tokens of `from`.\n    /// - If `to` refers to a smart contract, it must implement\n    ///   {ERC1155-onERC1155Received}, which is called upon a batch transfer.\n    ///\n    /// Emits a {TransferSingle} event.\n    function _safeTransfer(\n        address by,\n        address from,\n        address to,\n        uint256 id,\n        uint256 amount,\n        bytes memory data\n    ) internal virtual {\n        if (_useBeforeTokenTransfer()) {\n            _beforeTokenTransfer(from, to, _single(id), _single(amount), data);\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            let from_ := shl(96, from)\n            let to_ := shl(96, to)\n            // Revert if `to` is the zero address.\n            if iszero(to_) {\n                mstore(0x00, 0xea553b34) // `TransferToZeroAddress()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x20, or(_ERC1155_MASTER_SLOT_SEED, from_))\n            // If `by` is not the zero address, and not equal to `from`,\n            // check if it is approved to manage all the tokens of `from`.\n            let by_ := shl(96, by)\n            if iszero(or(iszero(by_), eq(by_, from_))) {\n                mstore(0x00, by)\n                if iszero(sload(keccak256(0x0c, 0x34))) {\n                    mstore(0x00, 0x4b6e7f18) // `NotOwnerNorApproved()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            // Subtract and store the updated balance of `from`.\n            {\n                mstore(0x00, id)\n                let fromBalanceSlot := keccak256(0x00, 0x40)\n                let fromBalance := sload(fromBalanceSlot)\n                if gt(amount, fromBalance) {\n                    mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.\n                    revert(0x1c, 0x04)\n                }\n                sstore(fromBalanceSlot, sub(fromBalance, amount))\n            }\n            // Increase and store the updated balance of `to`.\n            {\n                mstore(0x20, or(_ERC1155_MASTER_SLOT_SEED, to_))\n                let toBalanceSlot := keccak256(0x00, 0x40)\n                let toBalanceBefore := sload(toBalanceSlot)\n                let toBalanceAfter := add(toBalanceBefore, amount)\n                if lt(toBalanceAfter, toBalanceBefore) {\n                    mstore(0x00, 0x01336cea) // `AccountBalanceOverflow()`.\n                    revert(0x1c, 0x04)\n                }\n                sstore(toBalanceSlot, toBalanceAfter)\n            }\n            // Emit a {TransferSingle} event.\n            mstore(0x20, amount)\n            // forgefmt: disable-next-line\n            log4(0x00, 0x40, _TRANSFER_SINGLE_EVENT_SIGNATURE, caller(), shr(96, from_), shr(96, to_))\n        }\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransfer(from, to, _single(id), _single(amount), data);\n        }\n        if (_hasCode(to)) _checkOnERC1155Received(from, to, id, amount, data);\n    }\n\n    /// @dev Equivalent to `_safeBatchTransfer(address(0), from, to, ids, amounts, data)`.\n    function _safeBatchTransfer(\n        address from,\n        address to,\n        uint256[] memory ids,\n        uint256[] memory amounts,\n        bytes memory data\n    ) internal virtual {\n        _safeBatchTransfer(address(0), from, to, ids, amounts, data);\n    }\n\n    /// @dev Transfers `amounts` of `ids` from `from` to `to`.\n    ///\n    /// Requirements:\n    /// - `to` cannot be the zero address.\n    /// - `ids` and `amounts` must have the same length.\n    /// - `from` must have at least `amounts` of `ids`.\n    /// - If `by` is not the zero address, it must be either `from`,\n    ///   or approved to manage the tokens of `from`.\n    /// - If `to` refers to a smart contract, it must implement\n    ///   {ERC1155-onERC1155BatchReceived}, which is called upon a batch transfer.\n    ///\n    /// Emits a {TransferBatch} event.\n    function _safeBatchTransfer(\n        address by,\n        address from,\n        address to,\n        uint256[] memory ids,\n        uint256[] memory amounts,\n        bytes memory data\n    ) internal virtual {\n        if (_useBeforeTokenTransfer()) {\n            _beforeTokenTransfer(from, to, ids, amounts, data);\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(eq(mload(ids), mload(amounts))) {\n                mstore(0x00, 0x3b800a46) // `ArrayLengthsMismatch()`.\n                revert(0x1c, 0x04)\n            }\n            let from_ := shl(96, from)\n            let to_ := shl(96, to)\n            // Revert if `to` is the zero address.\n            if iszero(to_) {\n                mstore(0x00, 0xea553b34) // `TransferToZeroAddress()`.\n                revert(0x1c, 0x04)\n            }\n            let fromSlotSeed := or(_ERC1155_MASTER_SLOT_SEED, from_)\n            let toSlotSeed := or(_ERC1155_MASTER_SLOT_SEED, to_)\n            mstore(0x20, fromSlotSeed)\n            // If `by` is not the zero address, and not equal to `from`,\n            // check if it is approved to manage all the tokens of `from`.\n            let by_ := shl(96, by)\n            if iszero(or(iszero(by_), eq(by_, from_))) {\n                mstore(0x00, by)\n                if iszero(sload(keccak256(0x0c, 0x34))) {\n                    mstore(0x00, 0x4b6e7f18) // `NotOwnerNorApproved()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            // Loop through all the `ids` and update the balances.\n            {\n                for { let i := shl(5, mload(ids)) } i { i := sub(i, 0x20) } {\n                    let amount := mload(add(amounts, i))\n                    // Subtract and store the updated balance of `from`.\n                    {\n                        mstore(0x20, fromSlotSeed)\n                        mstore(0x00, mload(add(ids, i)))\n                        let fromBalanceSlot := keccak256(0x00, 0x40)\n                        let fromBalance := sload(fromBalanceSlot)\n                        if gt(amount, fromBalance) {\n                            mstore(0x00, 0xf4d678b8) // `InsufficientBalance()`.\n                            revert(0x1c, 0x04)\n                        }\n                        sstore(fromBalanceSlot, sub(fromBalance, amount))\n                    }\n                    // Increase and store the updated balance of `to`.\n                    {\n                        mstore(0x20, toSlotSeed)\n                        let toBalanceSlot := keccak256(0x00, 0x40)\n                        let toBalanceBefore := sload(toBalanceSlot)\n                        let toBalanceAfter := add(toBalanceBefore, amount)\n                        if lt(toBalanceAfter, toBalanceBefore) {\n                            mstore(0x00, 0x01336cea) // `AccountBalanceOverflow()`.\n                            revert(0x1c, 0x04)\n                        }\n                        sstore(toBalanceSlot, toBalanceAfter)\n                    }\n                }\n            }\n            // Emit a {TransferBatch} event.\n            {\n                let m := mload(0x40)\n                // Copy the `ids`.\n                mstore(m, 0x40)\n                let n := add(0x20, shl(5, mload(ids)))\n                let o := add(m, 0x40)\n                pop(staticcall(gas(), 4, ids, n, o, n))\n                // Copy the `amounts`.\n                mstore(add(m, 0x20), add(0x40, returndatasize()))\n                o := add(o, returndatasize())\n                n := add(0x20, shl(5, mload(amounts)))\n                pop(staticcall(gas(), 4, amounts, n, o, n))\n                n := sub(add(o, returndatasize()), m)\n                // Do the emit.\n                log4(m, n, _TRANSFER_BATCH_EVENT_SIGNATURE, caller(), shr(96, from_), shr(96, to_))\n            }\n        }\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransfer(from, to, ids, amounts, data);\n        }\n        if (_hasCode(to)) _checkOnERC1155BatchReceived(from, to, ids, amounts, data);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                    HOOKS FOR OVERRIDING                    */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Override this function to return true if `_beforeTokenTransfer` is used.\n    /// This is to help the compiler avoid producing dead bytecode.\n    function _useBeforeTokenTransfer() internal view virtual returns (bool) {\n        return false;\n    }\n\n    /// @dev Hook that is called before any token transfer.\n    /// This includes minting and burning, as well as batched variants.\n    ///\n    /// The same hook is called on both single and batched variants.\n    /// For single transfers, the length of the `id` and `amount` arrays are 1.\n    function _beforeTokenTransfer(\n        address from,\n        address to,\n        uint256[] memory ids,\n        uint256[] memory amounts,\n        bytes memory data\n    ) internal virtual {}\n\n    /// @dev Override this function to return true if `_afterTokenTransfer` is used.\n    /// This is to help the compiler avoid producing dead bytecode.\n    function _useAfterTokenTransfer() internal view virtual returns (bool) {\n        return false;\n    }\n\n    /// @dev Hook that is called after any token transfer.\n    /// This includes minting and burning, as well as batched variants.\n    ///\n    /// The same hook is called on both single and batched variants.\n    /// For single transfers, the length of the `id` and `amount` arrays are 1.\n    function _afterTokenTransfer(\n        address from,\n        address to,\n        uint256[] memory ids,\n        uint256[] memory amounts,\n        bytes memory data\n    ) internal virtual {}\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      PRIVATE HELPERS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Helper for calling the `_afterTokenTransfer` hook.\n    /// This is to help the compiler avoid producing dead bytecode.\n    function _afterTokenTransferCalldata(\n        address from,\n        address to,\n        uint256[] calldata ids,\n        uint256[] calldata amounts,\n        bytes calldata data\n    ) private {\n        if (_useAfterTokenTransfer()) {\n            _afterTokenTransfer(from, to, ids, amounts, data);\n        }\n    }\n\n    /// @dev Returns if `a` has bytecode of non-zero length.\n    function _hasCode(address a) private view returns (bool result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := extcodesize(a) // Can handle dirty upper bits.\n        }\n    }\n\n    /// @dev Perform a call to invoke {IERC1155Receiver-onERC1155Received} on `to`.\n    /// Reverts if the target does not support the function correctly.\n    function _checkOnERC1155Received(\n        address from,\n        address to,\n        uint256 id,\n        uint256 amount,\n        bytes memory data\n    ) private {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Prepare the calldata.\n            let m := mload(0x40)\n            // `onERC1155Received(address,address,uint256,uint256,bytes)`.\n            mstore(m, 0xf23a6e61)\n            mstore(add(m, 0x20), caller())\n            mstore(add(m, 0x40), shr(96, shl(96, from)))\n            mstore(add(m, 0x60), id)\n            mstore(add(m, 0x80), amount)\n            mstore(add(m, 0xa0), 0xa0)\n            let n := mload(data)\n            mstore(add(m, 0xc0), n)\n            if n { pop(staticcall(gas(), 4, add(data, 0x20), n, add(m, 0xe0), n)) }\n            // Revert if the call reverts.\n            if iszero(call(gas(), to, 0, add(m, 0x1c), add(0xc4, n), m, 0x20)) {\n                if returndatasize() {\n                    // Bubble up the revert if the call reverts.\n                    returndatacopy(m, 0x00, returndatasize())\n                    revert(m, returndatasize())\n                }\n            }\n            // Load the returndata and compare it with the function selector.\n            if iszero(eq(mload(m), shl(224, 0xf23a6e61))) {\n                mstore(0x00, 0x9c05499b) // `TransferToNonERC1155ReceiverImplementer()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Perform a call to invoke {IERC1155Receiver-onERC1155BatchReceived} on `to`.\n    /// Reverts if the target does not support the function correctly.\n    function _checkOnERC1155BatchReceived(\n        address from,\n        address to,\n        uint256[] memory ids,\n        uint256[] memory amounts,\n        bytes memory data\n    ) private {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Prepare the calldata.\n            let m := mload(0x40)\n            // `onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)`.\n            mstore(m, 0xbc197c81)\n            mstore(add(m, 0x20), caller())\n            mstore(add(m, 0x40), shr(96, shl(96, from)))\n            // Copy the `ids`.\n            mstore(add(m, 0x60), 0xa0)\n            let n := add(0x20, shl(5, mload(ids)))\n            let o := add(m, 0xc0)\n            pop(staticcall(gas(), 4, ids, n, o, n))\n            // Copy the `amounts`.\n            let s := add(0xa0, returndatasize())\n            mstore(add(m, 0x80), s)\n            o := add(o, returndatasize())\n            n := add(0x20, shl(5, mload(amounts)))\n            pop(staticcall(gas(), 4, amounts, n, o, n))\n            // Copy the `data`.\n            mstore(add(m, 0xa0), add(s, returndatasize()))\n            o := add(o, returndatasize())\n            n := add(0x20, mload(data))\n            pop(staticcall(gas(), 4, data, n, o, n))\n            n := sub(add(o, returndatasize()), add(m, 0x1c))\n            // Revert if the call reverts.\n            if iszero(call(gas(), to, 0, add(m, 0x1c), n, m, 0x20)) {\n                if returndatasize() {\n                    // Bubble up the revert if the call reverts.\n                    returndatacopy(m, 0x00, returndatasize())\n                    revert(m, returndatasize())\n                }\n            }\n            // Load the returndata and compare it with the function selector.\n            if iszero(eq(mload(m), shl(224, 0xbc197c81))) {\n                mstore(0x00, 0x9c05499b) // `TransferToNonERC1155ReceiverImplementer()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Returns `x` in an array with a single element.\n    function _single(uint256 x) private pure returns (uint256[] memory result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := mload(0x40)\n            mstore(0x40, add(result, 0x40))\n            mstore(result, 1)\n            mstore(add(result, 0x20), x)\n        }\n    }\n}\n"},"lib/solady/src/utils/LibClone.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Minimal proxy library.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/LibClone.sol)\n/// @author Minimal proxy by 0age (https://github.com/0age)\n/// @author Clones with immutable args by wighawag, zefram.eth, Saw-mon & Natalie\n/// (https://github.com/Saw-mon-and-Natalie/clones-with-immutable-args)\n/// @author Minimal ERC1967 proxy by jtriley-eth (https://github.com/jtriley-eth/minimum-viable-proxy)\n///\n/// @dev Minimal proxy:\n/// Although the sw0nt pattern saves 5 gas over the ERC1167 pattern during runtime,\n/// it is not supported out-of-the-box on Etherscan. Hence, we choose to use the 0age pattern,\n/// which saves 4 gas over the ERC1167 pattern during runtime, and has the smallest bytecode.\n/// - Automatically verified on Etherscan.\n///\n/// @dev Minimal proxy (PUSH0 variant):\n/// This is a new minimal proxy that uses the PUSH0 opcode introduced during Shanghai.\n/// It is optimized first for minimal runtime gas, then for minimal bytecode.\n/// The PUSH0 clone functions are intentionally postfixed with a jarring \"_PUSH0\" as\n/// many EVM chains may not support the PUSH0 opcode in the early months after Shanghai.\n/// Please use with caution.\n/// - Automatically verified on Etherscan.\n///\n/// @dev Clones with immutable args (CWIA):\n/// The implementation of CWIA here does NOT append the immutable args into the calldata\n/// passed into delegatecall. It is simply an ERC1167 minimal proxy with the immutable arguments\n/// appended to the back of the runtime bytecode.\n/// - Uses the identity precompile (0x4) to copy args during deployment.\n///\n/// @dev Minimal ERC1967 proxy:\n/// A minimal ERC1967 proxy, intended to be upgraded with UUPS.\n/// This is NOT the same as ERC1967Factory's transparent proxy, which includes admin logic.\n/// - Automatically verified on Etherscan.\n///\n/// @dev Minimal ERC1967 proxy with immutable args:\n/// - Uses the identity precompile (0x4) to copy args during deployment.\n/// - Automatically verified on Etherscan.\n///\n/// @dev ERC1967I proxy:\n/// A variant of the minimal ERC1967 proxy, with a special code path that activates\n/// if `calldatasize() == 1`. This code path skips the delegatecall and directly returns the\n/// `implementation` address. The returned implementation is guaranteed to be valid if the\n/// keccak256 of the proxy's code is equal to `ERC1967I_CODE_HASH`.\n///\n/// @dev ERC1967I proxy with immutable args:\n/// A variant of the minimal ERC1967 proxy, with a special code path that activates\n/// if `calldatasize() == 1`. This code path skips the delegatecall and directly returns the\n/// - Uses the identity precompile (0x4) to copy args during deployment.\n///\n/// @dev Minimal ERC1967 beacon proxy:\n/// A minimal beacon proxy, intended to be upgraded with an upgradable beacon.\n/// - Automatically verified on Etherscan.\n///\n/// @dev Minimal ERC1967 beacon proxy with immutable args:\n/// - Uses the identity precompile (0x4) to copy args during deployment.\n/// - Automatically verified on Etherscan.\n///\n/// @dev ERC1967I beacon proxy:\n/// A variant of the minimal ERC1967 beacon proxy, with a special code path that activates\n/// if `calldatasize() == 1`. This code path skips the delegatecall and directly returns the\n/// `implementation` address. The returned implementation is guaranteed to be valid if the\n/// keccak256 of the proxy's code is equal to `ERC1967I_CODE_HASH`.\n///\n/// @dev ERC1967I proxy with immutable args:\n/// A variant of the minimal ERC1967 beacon proxy, with a special code path that activates\n/// if `calldatasize() == 1`. This code path skips the delegatecall and directly returns the\n/// - Uses the identity precompile (0x4) to copy args during deployment.\nlibrary LibClone {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         CONSTANTS                          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The keccak256 of deployed code for the clone proxy,\n    /// with the implementation set to `address(0)`.\n    bytes32 internal constant CLONE_CODE_HASH =\n        0x48db2cfdb2853fce0b464f1f93a1996469459df3ab6c812106074c4106a1eb1f;\n\n    /// @dev The keccak256 of deployed code for the PUSH0 proxy,\n    /// with the implementation set to `address(0)`.\n    bytes32 internal constant PUSH0_CLONE_CODE_HASH =\n        0x67bc6bde1b84d66e267c718ba44cf3928a615d29885537955cb43d44b3e789dc;\n\n    /// @dev The keccak256 of deployed code for the ERC-1167 CWIA proxy,\n    /// with the implementation set to `address(0)`.\n    bytes32 internal constant CWIA_CODE_HASH =\n        0x3cf92464268225a4513da40a34d967354684c32cd0edd67b5f668dfe3550e940;\n\n    /// @dev The keccak256 of the deployed code for the ERC1967 proxy.\n    bytes32 internal constant ERC1967_CODE_HASH =\n        0xaaa52c8cc8a0e3fd27ce756cc6b4e70c51423e9b597b11f32d3e49f8b1fc890d;\n\n    /// @dev The keccak256 of the deployed code for the ERC1967I proxy.\n    bytes32 internal constant ERC1967I_CODE_HASH =\n        0xce700223c0d4cea4583409accfc45adac4a093b3519998a9cbbe1504dadba6f7;\n\n    /// @dev The keccak256 of the deployed code for the ERC1967 beacon proxy.\n    bytes32 internal constant ERC1967_BEACON_PROXY_CODE_HASH =\n        0x14044459af17bc4f0f5aa2f658cb692add77d1302c29fe2aebab005eea9d1162;\n\n    /// @dev The keccak256 of the deployed code for the ERC1967 beacon proxy.\n    bytes32 internal constant ERC1967I_BEACON_PROXY_CODE_HASH =\n        0xf8c46d2793d5aa984eb827aeaba4b63aedcab80119212fce827309788735519a;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Unable to deploy the clone.\n    error DeploymentFailed();\n\n    /// @dev The salt must start with either the zero address or `by`.\n    error SaltDoesNotStartWith();\n\n    /// @dev The ETH transfer has failed.\n    error ETHTransferFailed();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                  MINIMAL PROXY OPERATIONS                  */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Deploys a clone of `implementation`.\n    function clone(address implementation) internal returns (address instance) {\n        instance = clone(0, implementation);\n    }\n\n    /// @dev Deploys a clone of `implementation`.\n    /// Deposits `value` ETH during deployment.\n    function clone(uint256 value, address implementation) internal returns (address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            /**\n             * --------------------------------------------------------------------------+\n             * CREATION (9 bytes)                                                        |\n             * --------------------------------------------------------------------------|\n             * Opcode     | Mnemonic          | Stack     | Memory                       |\n             * --------------------------------------------------------------------------|\n             * 60 runSize | PUSH1 runSize     | r         |                              |\n             * 3d         | RETURNDATASIZE    | 0 r       |                              |\n             * 81         | DUP2              | r 0 r     |                              |\n             * 60 offset  | PUSH1 offset      | o r 0 r   |                              |\n             * 3d         | RETURNDATASIZE    | 0 o r 0 r |                              |\n             * 39         | CODECOPY          | 0 r       | [0..runSize): runtime code   |\n             * f3         | RETURN            |           | [0..runSize): runtime code   |\n             * --------------------------------------------------------------------------|\n             * RUNTIME (44 bytes)                                                        |\n             * --------------------------------------------------------------------------|\n             * Opcode  | Mnemonic       | Stack                  | Memory                |\n             * --------------------------------------------------------------------------|\n             *                                                                           |\n             * ::: keep some values in stack ::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d      | RETURNDATASIZE | 0                      |                       |\n             * 3d      | RETURNDATASIZE | 0 0                    |                       |\n             * 3d      | RETURNDATASIZE | 0 0 0                  |                       |\n             * 3d      | RETURNDATASIZE | 0 0 0 0                |                       |\n             *                                                                           |\n             * ::: copy calldata to memory ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 36      | CALLDATASIZE   | cds 0 0 0 0            |                       |\n             * 3d      | RETURNDATASIZE | 0 cds 0 0 0 0          |                       |\n             * 3d      | RETURNDATASIZE | 0 0 cds 0 0 0 0        |                       |\n             * 37      | CALLDATACOPY   | 0 0 0 0                | [0..cds): calldata    |\n             *                                                                           |\n             * ::: delegate call to the implementation contract :::::::::::::::::::::::: |\n             * 36      | CALLDATASIZE   | cds 0 0 0 0            | [0..cds): calldata    |\n             * 3d      | RETURNDATASIZE | 0 cds 0 0 0 0          | [0..cds): calldata    |\n             * 73 addr | PUSH20 addr    | addr 0 cds 0 0 0 0     | [0..cds): calldata    |\n             * 5a      | GAS            | gas addr 0 cds 0 0 0 0 | [0..cds): calldata    |\n             * f4      | DELEGATECALL   | success 0 0            | [0..cds): calldata    |\n             *                                                                           |\n             * ::: copy return data to memory :::::::::::::::::::::::::::::::::::::::::: |\n             * 3d      | RETURNDATASIZE | rds success 0 0        | [0..cds): calldata    |\n             * 3d      | RETURNDATASIZE | rds rds success 0 0    | [0..cds): calldata    |\n             * 93      | SWAP4          | 0 rds success 0 rds    | [0..cds): calldata    |\n             * 80      | DUP1           | 0 0 rds success 0 rds  | [0..cds): calldata    |\n             * 3e      | RETURNDATACOPY | success 0 rds          | [0..rds): returndata  |\n             *                                                                           |\n             * 60 0x2a | PUSH1 0x2a     | 0x2a success 0 rds     | [0..rds): returndata  |\n             * 57      | JUMPI          | 0 rds                  | [0..rds): returndata  |\n             *                                                                           |\n             * ::: revert :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * fd      | REVERT         |                        | [0..rds): returndata  |\n             *                                                                           |\n             * ::: return :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 5b      | JUMPDEST       | 0 rds                  | [0..rds): returndata  |\n             * f3      | RETURN         |                        | [0..rds): returndata  |\n             * --------------------------------------------------------------------------+\n             */\n            mstore(0x21, 0x5af43d3d93803e602a57fd5bf3)\n            mstore(0x14, implementation)\n            mstore(0x00, 0x602c3d8160093d39f33d3d3d3d363d3d37363d73)\n            instance := create(value, 0x0c, 0x35)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Deploys a deterministic clone of `implementation` with `salt`.\n    function cloneDeterministic(address implementation, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = cloneDeterministic(0, implementation, salt);\n    }\n\n    /// @dev Deploys a deterministic clone of `implementation` with `salt`.\n    /// Deposits `value` ETH during deployment.\n    function cloneDeterministic(uint256 value, address implementation, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x21, 0x5af43d3d93803e602a57fd5bf3)\n            mstore(0x14, implementation)\n            mstore(0x00, 0x602c3d8160093d39f33d3d3d3d363d3d37363d73)\n            instance := create2(value, 0x0c, 0x35, salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the initialization code of the clone of `implementation`.\n    function initCode(address implementation) internal pure returns (bytes memory c) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            mstore(add(c, 0x40), 0x5af43d3d93803e602a57fd5bf30000000000000000000000)\n            mstore(add(c, 0x28), implementation)\n            mstore(add(c, 0x14), 0x602c3d8160093d39f33d3d3d3d363d3d37363d73)\n            mstore(c, 0x35) // Store the length.\n            mstore(0x40, add(c, 0x60)) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the clone of `implementation`.\n    function initCodeHash(address implementation) internal pure returns (bytes32 hash) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x21, 0x5af43d3d93803e602a57fd5bf3)\n            mstore(0x14, implementation)\n            mstore(0x00, 0x602c3d8160093d39f33d3d3d3d363d3d37363d73)\n            hash := keccak256(0x0c, 0x35)\n            mstore(0x21, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the address of the clone of `implementation`, with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddress(address implementation, bytes32 salt, address deployer)\n        internal\n        pure\n        returns (address predicted)\n    {\n        bytes32 hash = initCodeHash(implementation);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*          MINIMAL PROXY OPERATIONS (PUSH0 VARIANT)          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Deploys a PUSH0 clone of `implementation`.\n    function clone_PUSH0(address implementation) internal returns (address instance) {\n        instance = clone_PUSH0(0, implementation);\n    }\n\n    /// @dev Deploys a PUSH0 clone of `implementation`.\n    /// Deposits `value` ETH during deployment.\n    function clone_PUSH0(uint256 value, address implementation)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            /**\n             * --------------------------------------------------------------------------+\n             * CREATION (9 bytes)                                                        |\n             * --------------------------------------------------------------------------|\n             * Opcode     | Mnemonic          | Stack     | Memory                       |\n             * --------------------------------------------------------------------------|\n             * 60 runSize | PUSH1 runSize     | r         |                              |\n             * 5f         | PUSH0             | 0 r       |                              |\n             * 81         | DUP2              | r 0 r     |                              |\n             * 60 offset  | PUSH1 offset      | o r 0 r   |                              |\n             * 5f         | PUSH0             | 0 o r 0 r |                              |\n             * 39         | CODECOPY          | 0 r       | [0..runSize): runtime code   |\n             * f3         | RETURN            |           | [0..runSize): runtime code   |\n             * --------------------------------------------------------------------------|\n             * RUNTIME (45 bytes)                                                        |\n             * --------------------------------------------------------------------------|\n             * Opcode  | Mnemonic       | Stack                  | Memory                |\n             * --------------------------------------------------------------------------|\n             *                                                                           |\n             * ::: keep some values in stack ::::::::::::::::::::::::::::::::::::::::::: |\n             * 5f      | PUSH0          | 0                      |                       |\n             * 5f      | PUSH0          | 0 0                    |                       |\n             *                                                                           |\n             * ::: copy calldata to memory ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 36      | CALLDATASIZE   | cds 0 0                |                       |\n             * 5f      | PUSH0          | 0 cds 0 0              |                       |\n             * 5f      | PUSH0          | 0 0 cds 0 0            |                       |\n             * 37      | CALLDATACOPY   | 0 0                    | [0..cds): calldata    |\n             *                                                                           |\n             * ::: delegate call to the implementation contract :::::::::::::::::::::::: |\n             * 36      | CALLDATASIZE   | cds 0 0                | [0..cds): calldata    |\n             * 5f      | PUSH0          | 0 cds 0 0              | [0..cds): calldata    |\n             * 73 addr | PUSH20 addr    | addr 0 cds 0 0         | [0..cds): calldata    |\n             * 5a      | GAS            | gas addr 0 cds 0 0     | [0..cds): calldata    |\n             * f4      | DELEGATECALL   | success                | [0..cds): calldata    |\n             *                                                                           |\n             * ::: copy return data to memory :::::::::::::::::::::::::::::::::::::::::: |\n             * 3d      | RETURNDATASIZE | rds success            | [0..cds): calldata    |\n             * 5f      | PUSH0          | 0 rds success          | [0..cds): calldata    |\n             * 5f      | PUSH0          | 0 0 rds success        | [0..cds): calldata    |\n             * 3e      | RETURNDATACOPY | success                | [0..rds): returndata  |\n             *                                                                           |\n             * 60 0x29 | PUSH1 0x29     | 0x29 success           | [0..rds): returndata  |\n             * 57      | JUMPI          |                        | [0..rds): returndata  |\n             *                                                                           |\n             * ::: revert :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d      | RETURNDATASIZE | rds                    | [0..rds): returndata  |\n             * 5f      | PUSH0          | 0 rds                  | [0..rds): returndata  |\n             * fd      | REVERT         |                        | [0..rds): returndata  |\n             *                                                                           |\n             * ::: return :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 5b      | JUMPDEST       |                        | [0..rds): returndata  |\n             * 3d      | RETURNDATASIZE | rds                    | [0..rds): returndata  |\n             * 5f      | PUSH0          | 0 rds                  | [0..rds): returndata  |\n             * f3      | RETURN         |                        | [0..rds): returndata  |\n             * --------------------------------------------------------------------------+\n             */\n            mstore(0x24, 0x5af43d5f5f3e6029573d5ffd5b3d5ff3) // 16\n            mstore(0x14, implementation) // 20\n            mstore(0x00, 0x602d5f8160095f39f35f5f365f5f37365f73) // 9 + 9\n            instance := create(value, 0x0e, 0x36)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x24, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Deploys a deterministic PUSH0 clone of `implementation` with `salt`.\n    function cloneDeterministic_PUSH0(address implementation, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = cloneDeterministic_PUSH0(0, implementation, salt);\n    }\n\n    /// @dev Deploys a deterministic PUSH0 clone of `implementation` with `salt`.\n    /// Deposits `value` ETH during deployment.\n    function cloneDeterministic_PUSH0(uint256 value, address implementation, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x24, 0x5af43d5f5f3e6029573d5ffd5b3d5ff3) // 16\n            mstore(0x14, implementation) // 20\n            mstore(0x00, 0x602d5f8160095f39f35f5f365f5f37365f73) // 9 + 9\n            instance := create2(value, 0x0e, 0x36, salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x24, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the initialization code of the PUSH0 clone of `implementation`.\n    function initCode_PUSH0(address implementation) internal pure returns (bytes memory c) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            mstore(add(c, 0x40), 0x5af43d5f5f3e6029573d5ffd5b3d5ff300000000000000000000) // 16\n            mstore(add(c, 0x26), implementation) // 20\n            mstore(add(c, 0x12), 0x602d5f8160095f39f35f5f365f5f37365f73) // 9 + 9\n            mstore(c, 0x36) // Store the length.\n            mstore(0x40, add(c, 0x60)) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the PUSH0 clone of `implementation`.\n    function initCodeHash_PUSH0(address implementation) internal pure returns (bytes32 hash) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x24, 0x5af43d5f5f3e6029573d5ffd5b3d5ff3) // 16\n            mstore(0x14, implementation) // 20\n            mstore(0x00, 0x602d5f8160095f39f35f5f365f5f37365f73) // 9 + 9\n            hash := keccak256(0x0e, 0x36)\n            mstore(0x24, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the address of the PUSH0 clone of `implementation`, with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddress_PUSH0(\n        address implementation,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHash_PUSH0(implementation);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*           CLONES WITH IMMUTABLE ARGS OPERATIONS            */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Deploys a clone of `implementation` with immutable arguments encoded in `args`.\n    function clone(address implementation, bytes memory args) internal returns (address instance) {\n        instance = clone(0, implementation, args);\n    }\n\n    /// @dev Deploys a clone of `implementation` with immutable arguments encoded in `args`.\n    /// Deposits `value` ETH during deployment.\n    function clone(uint256 value, address implementation, bytes memory args)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            /**\n             * ---------------------------------------------------------------------------+\n             * CREATION (10 bytes)                                                        |\n             * ---------------------------------------------------------------------------|\n             * Opcode     | Mnemonic          | Stack     | Memory                        |\n             * ---------------------------------------------------------------------------|\n             * 61 runSize | PUSH2 runSize     | r         |                               |\n             * 3d         | RETURNDATASIZE    | 0 r       |                               |\n             * 81         | DUP2              | r 0 r     |                               |\n             * 60 offset  | PUSH1 offset      | o r 0 r   |                               |\n             * 3d         | RETURNDATASIZE    | 0 o r 0 r |                               |\n             * 39         | CODECOPY          | 0 r       | [0..runSize): runtime code    |\n             * f3         | RETURN            |           | [0..runSize): runtime code    |\n             * ---------------------------------------------------------------------------|\n             * RUNTIME (45 bytes + extraLength)                                           |\n             * ---------------------------------------------------------------------------|\n             * Opcode   | Mnemonic       | Stack                  | Memory                |\n             * ---------------------------------------------------------------------------|\n             *                                                                            |\n             * ::: copy calldata to memory :::::::::::::::::::::::::::::::::::::::::::::: |\n             * 36       | CALLDATASIZE   | cds                    |                       |\n             * 3d       | RETURNDATASIZE | 0 cds                  |                       |\n             * 3d       | RETURNDATASIZE | 0 0 cds                |                       |\n             * 37       | CALLDATACOPY   |                        | [0..cds): calldata    |\n             *                                                                            |\n             * ::: delegate call to the implementation contract ::::::::::::::::::::::::: |\n             * 3d       | RETURNDATASIZE | 0                      | [0..cds): calldata    |\n             * 3d       | RETURNDATASIZE | 0 0                    | [0..cds): calldata    |\n             * 3d       | RETURNDATASIZE | 0 0 0                  | [0..cds): calldata    |\n             * 36       | CALLDATASIZE   | cds 0 0 0              | [0..cds): calldata    |\n             * 3d       | RETURNDATASIZE | 0 cds 0 0 0 0          | [0..cds): calldata    |\n             * 73 addr  | PUSH20 addr    | addr 0 cds 0 0 0 0     | [0..cds): calldata    |\n             * 5a       | GAS            | gas addr 0 cds 0 0 0 0 | [0..cds): calldata    |\n             * f4       | DELEGATECALL   | success 0 0            | [0..cds): calldata    |\n             *                                                                            |\n             * ::: copy return data to memory ::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d       | RETURNDATASIZE | rds success 0          | [0..cds): calldata    |\n             * 82       | DUP3           | 0 rds success 0         | [0..cds): calldata   |\n             * 80       | DUP1           | 0 0 rds success 0      | [0..cds): calldata    |\n             * 3e       | RETURNDATACOPY | success 0              | [0..rds): returndata  |\n             * 90       | SWAP1          | 0 success              | [0..rds): returndata  |\n             * 3d       | RETURNDATASIZE | rds 0 success          | [0..rds): returndata  |\n             * 91       | SWAP2          | success 0 rds          | [0..rds): returndata  |\n             *                                                                            |\n             * 60 0x2b  | PUSH1 0x2b     | 0x2b success 0 rds     | [0..rds): returndata  |\n             * 57       | JUMPI          | 0 rds                  | [0..rds): returndata  |\n             *                                                                            |\n             * ::: revert ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * fd       | REVERT         |                        | [0..rds): returndata  |\n             *                                                                            |\n             * ::: return ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 5b       | JUMPDEST       | 0 rds                  | [0..rds): returndata  |\n             * f3       | RETURN         |                        | [0..rds): returndata  |\n             * ---------------------------------------------------------------------------+\n             */\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x43), n))\n            mstore(add(m, 0x23), 0x5af43d82803e903d91602b57fd5bf3)\n            mstore(add(m, 0x14), implementation)\n            mstore(m, add(0xfe61002d3d81600a3d39f3363d3d373d3d3d363d73, shl(136, n)))\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x2d = 0xffd2`.\n            instance := create(value, add(m, add(0x0b, lt(n, 0xffd3))), add(n, 0x37))\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Deploys a deterministic clone of `implementation`\n    /// with immutable arguments encoded in `args` and `salt`.\n    function cloneDeterministic(address implementation, bytes memory args, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = cloneDeterministic(0, implementation, args, salt);\n    }\n\n    /// @dev Deploys a deterministic clone of `implementation`\n    /// with immutable arguments encoded in `args` and `salt`.\n    function cloneDeterministic(\n        uint256 value,\n        address implementation,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x43), n))\n            mstore(add(m, 0x23), 0x5af43d82803e903d91602b57fd5bf3)\n            mstore(add(m, 0x14), implementation)\n            mstore(m, add(0xfe61002d3d81600a3d39f3363d3d373d3d3d363d73, shl(136, n)))\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x2d = 0xffd2`.\n            instance := create2(value, add(m, add(0x0b, lt(n, 0xffd3))), add(n, 0x37), salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Deploys a deterministic clone of `implementation`\n    /// with immutable arguments encoded in `args` and `salt`.\n    /// This method does not revert if the clone has already been deployed.\n    function createDeterministicClone(address implementation, bytes memory args, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicClone(0, implementation, args, salt);\n    }\n\n    /// @dev Deploys a deterministic clone of `implementation`\n    /// with immutable arguments encoded in `args` and `salt`.\n    /// This method does not revert if the clone has already been deployed.\n    function createDeterministicClone(\n        uint256 value,\n        address implementation,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (bool alreadyDeployed, address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x43), n))\n            mstore(add(m, 0x23), 0x5af43d82803e903d91602b57fd5bf3)\n            mstore(add(m, 0x14), implementation)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x2d = 0xffd2`.\n            // forgefmt: disable-next-item\n            mstore(add(m, gt(n, 0xffd2)), add(0xfe61002d3d81600a3d39f3363d3d373d3d3d363d73, shl(136, n)))\n            // Compute and store the bytecode hash.\n            mstore8(0x00, 0xff) // Write the prefix.\n            mstore(0x35, keccak256(add(m, 0x0c), add(n, 0x37)))\n            mstore(0x01, shl(96, address()))\n            mstore(0x15, salt)\n            instance := keccak256(0x00, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, add(m, 0x0c), add(n, 0x37), salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x35, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the initialization code of the clone of `implementation`\n    /// using immutable arguments encoded in `args`.\n    function initCode(address implementation, bytes memory args)\n        internal\n        pure\n        returns (bytes memory c)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x2d = 0xffd2`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffd2))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(c, 0x57), i), mload(add(add(args, 0x20), i)))\n            }\n            mstore(add(c, 0x37), 0x5af43d82803e903d91602b57fd5bf3)\n            mstore(add(c, 0x28), implementation)\n            mstore(add(c, 0x14), add(0x61002d3d81600a3d39f3363d3d373d3d3d363d73, shl(136, n)))\n            mstore(c, add(0x37, n)) // Store the length.\n            mstore(add(c, add(n, 0x57)), 0) // Zeroize the slot after the bytes.\n            mstore(0x40, add(c, add(n, 0x77))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the clone of `implementation`\n    /// using immutable arguments encoded in `args`.\n    function initCodeHash(address implementation, bytes memory args)\n        internal\n        pure\n        returns (bytes32 hash)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x2d = 0xffd2`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffd2))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(m, 0x43), i), mload(add(add(args, 0x20), i)))\n            }\n            mstore(add(m, 0x23), 0x5af43d82803e903d91602b57fd5bf3)\n            mstore(add(m, 0x14), implementation)\n            mstore(m, add(0x61002d3d81600a3d39f3363d3d373d3d3d363d73, shl(136, n)))\n            hash := keccak256(add(m, 0x0c), add(n, 0x37))\n        }\n    }\n\n    /// @dev Returns the address of the clone of\n    /// `implementation` using immutable arguments encoded in `args`, with `salt`, by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddress(\n        address implementation,\n        bytes memory data,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHash(implementation, data);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /// @dev Equivalent to `argsOnClone(instance, 0, 2 ** 256 - 1)`.\n    function argsOnClone(address instance) internal view returns (bytes memory args) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            mstore(args, and(0xffffffffff, sub(extcodesize(instance), 0x2d))) // Store the length.\n            extcodecopy(instance, add(args, 0x20), 0x2d, add(mload(args), 0x20))\n            mstore(0x40, add(mload(args), add(args, 0x40))) // Allocate memory.\n        }\n    }\n\n    /// @dev Equivalent to `argsOnClone(instance, start, 2 ** 256 - 1)`.\n    function argsOnClone(address instance, uint256 start)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            let n := and(0xffffffffff, sub(extcodesize(instance), 0x2d))\n            let l := sub(n, and(0xffffff, mul(lt(start, n), start)))\n            extcodecopy(instance, args, add(start, 0x0d), add(l, 0x40))\n            mstore(args, mul(sub(n, start), lt(start, n))) // Store the length.\n            mstore(0x40, add(args, add(0x40, mload(args)))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns a slice of the immutable arguments on `instance` from `start` to `end`.\n    /// `start` and `end` will be clamped to the range `[0, args.length]`.\n    /// The `instance` MUST be deployed via the clone with immutable args functions.\n    /// Otherwise, the behavior is undefined.\n    /// Out-of-gas reverts if `instance` does not have any code.\n    function argsOnClone(address instance, uint256 start, uint256 end)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            if iszero(lt(end, 0xffff)) { end := 0xffff }\n            let d := mul(sub(end, start), lt(start, end))\n            extcodecopy(instance, args, add(start, 0x0d), add(d, 0x20))\n            if iszero(and(0xff, mload(add(args, d)))) {\n                let n := sub(extcodesize(instance), 0x2d)\n                returndatacopy(returndatasize(), returndatasize(), shr(40, n))\n                d := mul(gt(n, start), sub(d, mul(gt(end, n), sub(end, n))))\n            }\n            mstore(args, d) // Store the length.\n            mstore(add(add(args, 0x20), d), 0) // Zeroize the slot after the bytes.\n            mstore(0x40, add(add(args, 0x40), d)) // Allocate memory.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*              MINIMAL ERC1967 PROXY OPERATIONS              */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // Note: The ERC1967 proxy here is intended to be upgraded with UUPS.\n    // This is NOT the same as ERC1967Factory's transparent proxy, which includes admin logic.\n\n    /// @dev Deploys a minimal ERC1967 proxy with `implementation`.\n    function deployERC1967(address implementation) internal returns (address instance) {\n        instance = deployERC1967(0, implementation);\n    }\n\n    /// @dev Deploys a minimal ERC1967 proxy with `implementation`.\n    /// Deposits `value` ETH during deployment.\n    function deployERC1967(uint256 value, address implementation)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            /**\n             * ---------------------------------------------------------------------------------+\n             * CREATION (34 bytes)                                                              |\n             * ---------------------------------------------------------------------------------|\n             * Opcode     | Mnemonic       | Stack            | Memory                          |\n             * ---------------------------------------------------------------------------------|\n             * 60 runSize | PUSH1 runSize  | r                |                                 |\n             * 3d         | RETURNDATASIZE | 0 r              |                                 |\n             * 81         | DUP2           | r 0 r            |                                 |\n             * 60 offset  | PUSH1 offset   | o r 0 r          |                                 |\n             * 3d         | RETURNDATASIZE | 0 o r 0 r        |                                 |\n             * 39         | CODECOPY       | 0 r              | [0..runSize): runtime code      |\n             * 73 impl    | PUSH20 impl    | impl 0 r         | [0..runSize): runtime code      |\n             * 60 slotPos | PUSH1 slotPos  | slotPos impl 0 r | [0..runSize): runtime code      |\n             * 51         | MLOAD          | slot impl 0 r    | [0..runSize): runtime code      |\n             * 55         | SSTORE         | 0 r              | [0..runSize): runtime code      |\n             * f3         | RETURN         |                  | [0..runSize): runtime code      |\n             * ---------------------------------------------------------------------------------|\n             * RUNTIME (61 bytes)                                                               |\n             * ---------------------------------------------------------------------------------|\n             * Opcode     | Mnemonic       | Stack            | Memory                          |\n             * ---------------------------------------------------------------------------------|\n             *                                                                                  |\n             * ::: copy calldata to memory :::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 36         | CALLDATASIZE   | cds              |                                 |\n             * 3d         | RETURNDATASIZE | 0 cds            |                                 |\n             * 3d         | RETURNDATASIZE | 0 0 cds          |                                 |\n             * 37         | CALLDATACOPY   |                  | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ::: delegatecall to implementation ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | 0                |                                 |\n             * 3d         | RETURNDATASIZE | 0 0              |                                 |\n             * 36         | CALLDATASIZE   | cds 0 0          | [0..calldatasize): calldata     |\n             * 3d         | RETURNDATASIZE | 0 cds 0 0        | [0..calldatasize): calldata     |\n             * 7f slot    | PUSH32 slot    | s 0 cds 0 0      | [0..calldatasize): calldata     |\n             * 54         | SLOAD          | i 0 cds 0 0      | [0..calldatasize): calldata     |\n             * 5a         | GAS            | g i 0 cds 0 0    | [0..calldatasize): calldata     |\n             * f4         | DELEGATECALL   | succ             | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ::: copy returndata to memory :::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | rds succ         | [0..calldatasize): calldata     |\n             * 60 0x00    | PUSH1 0x00     | 0 rds succ       | [0..calldatasize): calldata     |\n             * 80         | DUP1           | 0 0 rds succ     | [0..calldatasize): calldata     |\n             * 3e         | RETURNDATACOPY | succ             | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: branch on delegatecall status :::::::::::::::::::::::::::::::::::::::::::::: |\n             * 60 0x38    | PUSH1 0x38     | dest succ        | [0..returndatasize): returndata |\n             * 57         | JUMPI          |                  | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: delegatecall failed, revert :::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | rds              | [0..returndatasize): returndata |\n             * 60 0x00    | PUSH1 0x00     | 0 rds            | [0..returndatasize): returndata |\n             * fd         | REVERT         |                  | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: delegatecall succeeded, return ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 5b         | JUMPDEST       |                  | [0..returndatasize): returndata |\n             * 3d         | RETURNDATASIZE | rds              | [0..returndatasize): returndata |\n             * 60 0x00    | PUSH1 0x00     | 0 rds            | [0..returndatasize): returndata |\n             * f3         | RETURN         |                  | [0..returndatasize): returndata |\n             * ---------------------------------------------------------------------------------+\n             */\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(0x40, 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(0x20, 0x6009)\n            mstore(0x1e, implementation)\n            mstore(0x0a, 0x603d3d8160223d3973)\n            instance := create(value, 0x21, 0x5f)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Deploys a deterministic minimal ERC1967 proxy with `implementation` and `salt`.\n    function deployDeterministicERC1967(address implementation, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = deployDeterministicERC1967(0, implementation, salt);\n    }\n\n    /// @dev Deploys a deterministic minimal ERC1967 proxy with `implementation` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    function deployDeterministicERC1967(uint256 value, address implementation, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(0x40, 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(0x20, 0x6009)\n            mstore(0x1e, implementation)\n            mstore(0x0a, 0x603d3d8160223d3973)\n            instance := create2(value, 0x21, 0x5f, salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Creates a deterministic minimal ERC1967 proxy with `implementation` and `salt`.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967(address implementation, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicERC1967(0, implementation, salt);\n    }\n\n    /// @dev Creates a deterministic minimal ERC1967 proxy with `implementation` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967(uint256 value, address implementation, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(0x40, 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(0x20, 0x6009)\n            mstore(0x1e, implementation)\n            mstore(0x0a, 0x603d3d8160223d3973)\n            // Compute and store the bytecode hash.\n            mstore(add(m, 0x35), keccak256(0x21, 0x5f))\n            mstore(m, shl(88, address()))\n            mstore8(m, 0xff) // Write the prefix.\n            mstore(add(m, 0x15), salt)\n            instance := keccak256(m, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, 0x21, 0x5f, salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Returns the initialization code of the minimal ERC1967 proxy of `implementation`.\n    function initCodeERC1967(address implementation) internal pure returns (bytes memory c) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            mstore(add(c, 0x60), 0x3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f300)\n            mstore(add(c, 0x40), 0x55f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076cc)\n            mstore(add(c, 0x20), or(shl(24, implementation), 0x600951))\n            mstore(add(c, 0x09), 0x603d3d8160223d3973)\n            mstore(c, 0x5f) // Store the length.\n            mstore(0x40, add(c, 0x80)) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the minimal ERC1967 proxy of `implementation`.\n    function initCodeHashERC1967(address implementation) internal pure returns (bytes32 hash) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(0x40, 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(0x20, 0x6009)\n            mstore(0x1e, implementation)\n            mstore(0x0a, 0x603d3d8160223d3973)\n            hash := keccak256(0x21, 0x5f)\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Returns the address of the ERC1967 proxy of `implementation`, with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddressERC1967(\n        address implementation,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHashERC1967(implementation);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*    MINIMAL ERC1967 PROXY WITH IMMUTABLE ARGS OPERATIONS    */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Deploys a minimal ERC1967 proxy with `implementation` and `args`.\n    function deployERC1967(address implementation, bytes memory args)\n        internal\n        returns (address instance)\n    {\n        instance = deployERC1967(0, implementation, args);\n    }\n\n    /// @dev Deploys a minimal ERC1967 proxy with `implementation` and `args`.\n    /// Deposits `value` ETH during deployment.\n    function deployERC1967(uint256 value, address implementation, bytes memory args)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x60), n))\n            mstore(add(m, 0x40), 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(add(m, 0x20), 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(0x16, 0x6009)\n            mstore(0x14, implementation)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x3d = 0xffc2`.\n            mstore(gt(n, 0xffc2), add(0xfe61003d3d8160233d3973, shl(56, n)))\n            mstore(m, mload(0x16))\n            instance := create(value, m, add(n, 0x60))\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Deploys a deterministic minimal ERC1967 proxy with `implementation`, `args` and `salt`.\n    function deployDeterministicERC1967(address implementation, bytes memory args, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = deployDeterministicERC1967(0, implementation, args, salt);\n    }\n\n    /// @dev Deploys a deterministic minimal ERC1967 proxy with `implementation`, `args` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    function deployDeterministicERC1967(\n        uint256 value,\n        address implementation,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x60), n))\n            mstore(add(m, 0x40), 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(add(m, 0x20), 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(0x16, 0x6009)\n            mstore(0x14, implementation)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x3d = 0xffc2`.\n            mstore(gt(n, 0xffc2), add(0xfe61003d3d8160233d3973, shl(56, n)))\n            mstore(m, mload(0x16))\n            instance := create2(value, m, add(n, 0x60), salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Creates a deterministic minimal ERC1967 proxy with `implementation`, `args` and `salt`.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967(address implementation, bytes memory args, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicERC1967(0, implementation, args, salt);\n    }\n\n    /// @dev Creates a deterministic minimal ERC1967 proxy with `implementation`, `args` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967(\n        uint256 value,\n        address implementation,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (bool alreadyDeployed, address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x60), n))\n            mstore(add(m, 0x40), 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(add(m, 0x20), 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(0x16, 0x6009)\n            mstore(0x14, implementation)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x3d = 0xffc2`.\n            mstore(gt(n, 0xffc2), add(0xfe61003d3d8160233d3973, shl(56, n)))\n            mstore(m, mload(0x16))\n            // Compute and store the bytecode hash.\n            mstore8(0x00, 0xff) // Write the prefix.\n            mstore(0x35, keccak256(m, add(n, 0x60)))\n            mstore(0x01, shl(96, address()))\n            mstore(0x15, salt)\n            instance := keccak256(0x00, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, m, add(n, 0x60), salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x35, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the initialization code of the minimal ERC1967 proxy of `implementation` and `args`.\n    function initCodeERC1967(address implementation, bytes memory args)\n        internal\n        pure\n        returns (bytes memory c)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x3d = 0xffc2`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffc2))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(c, 0x80), i), mload(add(add(args, 0x20), i)))\n            }\n            mstore(add(c, 0x60), 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(add(c, 0x40), 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(add(c, 0x20), 0x6009)\n            mstore(add(c, 0x1e), implementation)\n            mstore(add(c, 0x0a), add(0x61003d3d8160233d3973, shl(56, n)))\n            mstore(c, add(n, 0x60)) // Store the length.\n            mstore(add(c, add(n, 0x80)), 0) // Zeroize the slot after the bytes.\n            mstore(0x40, add(c, add(n, 0xa0))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the minimal ERC1967 proxy of `implementation` and `args`.\n    function initCodeHashERC1967(address implementation, bytes memory args)\n        internal\n        pure\n        returns (bytes32 hash)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x3d = 0xffc2`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffc2))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(m, 0x60), i), mload(add(add(args, 0x20), i)))\n            }\n            mstore(add(m, 0x40), 0xcc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3)\n            mstore(add(m, 0x20), 0x5155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076)\n            mstore(0x16, 0x6009)\n            mstore(0x14, implementation)\n            mstore(0x00, add(0x61003d3d8160233d3973, shl(56, n)))\n            mstore(m, mload(0x16))\n            hash := keccak256(m, add(n, 0x60))\n        }\n    }\n\n    /// @dev Returns the address of the ERC1967 proxy of `implementation`, `args`, with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddressERC1967(\n        address implementation,\n        bytes memory args,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHashERC1967(implementation, args);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /// @dev Equivalent to `argsOnERC1967(instance, start, 2 ** 256 - 1)`.\n    function argsOnERC1967(address instance) internal view returns (bytes memory args) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            mstore(args, and(0xffffffffff, sub(extcodesize(instance), 0x3d))) // Store the length.\n            extcodecopy(instance, add(args, 0x20), 0x3d, add(mload(args), 0x20))\n            mstore(0x40, add(mload(args), add(args, 0x40))) // Allocate memory.\n        }\n    }\n\n    /// @dev Equivalent to `argsOnERC1967(instance, start, 2 ** 256 - 1)`.\n    function argsOnERC1967(address instance, uint256 start)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            let n := and(0xffffffffff, sub(extcodesize(instance), 0x3d))\n            let l := sub(n, and(0xffffff, mul(lt(start, n), start)))\n            extcodecopy(instance, args, add(start, 0x1d), add(l, 0x40))\n            mstore(args, mul(sub(n, start), lt(start, n))) // Store the length.\n            mstore(0x40, add(args, add(0x40, mload(args)))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns a slice of the immutable arguments on `instance` from `start` to `end`.\n    /// `start` and `end` will be clamped to the range `[0, args.length]`.\n    /// The `instance` MUST be deployed via the ERC1967 with immutable args functions.\n    /// Otherwise, the behavior is undefined.\n    /// Out-of-gas reverts if `instance` does not have any code.\n    function argsOnERC1967(address instance, uint256 start, uint256 end)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            if iszero(lt(end, 0xffff)) { end := 0xffff }\n            let d := mul(sub(end, start), lt(start, end))\n            extcodecopy(instance, args, add(start, 0x1d), add(d, 0x20))\n            if iszero(and(0xff, mload(add(args, d)))) {\n                let n := sub(extcodesize(instance), 0x3d)\n                returndatacopy(returndatasize(), returndatasize(), shr(40, n))\n                d := mul(gt(n, start), sub(d, mul(gt(end, n), sub(end, n))))\n            }\n            mstore(args, d) // Store the length.\n            mstore(add(add(args, 0x20), d), 0) // Zeroize the slot after the bytes.\n            mstore(0x40, add(add(args, 0x40), d)) // Allocate memory.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                 ERC1967I PROXY OPERATIONS                  */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // Note: This proxy has a special code path that activates if `calldatasize() == 1`.\n    // This code path skips the delegatecall and directly returns the `implementation` address.\n    // The returned implementation is guaranteed to be valid if the keccak256 of the\n    // proxy's code is equal to `ERC1967I_CODE_HASH`.\n\n    /// @dev Deploys a ERC1967I proxy with `implementation`.\n    function deployERC1967I(address implementation) internal returns (address instance) {\n        instance = deployERC1967I(0, implementation);\n    }\n\n    /// @dev Deploys a ERC1967I proxy with `implementation`.\n    /// Deposits `value` ETH during deployment.\n    function deployERC1967I(uint256 value, address implementation)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            /**\n             * ---------------------------------------------------------------------------------+\n             * CREATION (34 bytes)                                                              |\n             * ---------------------------------------------------------------------------------|\n             * Opcode     | Mnemonic       | Stack            | Memory                          |\n             * ---------------------------------------------------------------------------------|\n             * 60 runSize | PUSH1 runSize  | r                |                                 |\n             * 3d         | RETURNDATASIZE | 0 r              |                                 |\n             * 81         | DUP2           | r 0 r            |                                 |\n             * 60 offset  | PUSH1 offset   | o r 0 r          |                                 |\n             * 3d         | RETURNDATASIZE | 0 o r 0 r        |                                 |\n             * 39         | CODECOPY       | 0 r              | [0..runSize): runtime code      |\n             * 73 impl    | PUSH20 impl    | impl 0 r         | [0..runSize): runtime code      |\n             * 60 slotPos | PUSH1 slotPos  | slotPos impl 0 r | [0..runSize): runtime code      |\n             * 51         | MLOAD          | slot impl 0 r    | [0..runSize): runtime code      |\n             * 55         | SSTORE         | 0 r              | [0..runSize): runtime code      |\n             * f3         | RETURN         |                  | [0..runSize): runtime code      |\n             * ---------------------------------------------------------------------------------|\n             * RUNTIME (82 bytes)                                                               |\n             * ---------------------------------------------------------------------------------|\n             * Opcode     | Mnemonic       | Stack            | Memory                          |\n             * ---------------------------------------------------------------------------------|\n             *                                                                                  |\n             * ::: check calldatasize ::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 36         | CALLDATASIZE   | cds              |                                 |\n             * 58         | PC             | 1 cds            |                                 |\n             * 14         | EQ             | eqs              |                                 |\n             * 60 0x43    | PUSH1 0x43     | dest eqs         |                                 |\n             * 57         | JUMPI          |                  |                                 |\n             *                                                                                  |\n             * ::: copy calldata to memory :::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 36         | CALLDATASIZE   | cds              |                                 |\n             * 3d         | RETURNDATASIZE | 0 cds            |                                 |\n             * 3d         | RETURNDATASIZE | 0 0 cds          |                                 |\n             * 37         | CALLDATACOPY   |                  | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ::: delegatecall to implementation ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | 0                |                                 |\n             * 3d         | RETURNDATASIZE | 0 0              |                                 |\n             * 36         | CALLDATASIZE   | cds 0 0          | [0..calldatasize): calldata     |\n             * 3d         | RETURNDATASIZE | 0 cds 0 0        | [0..calldatasize): calldata     |\n             * 7f slot    | PUSH32 slot    | s 0 cds 0 0      | [0..calldatasize): calldata     |\n             * 54         | SLOAD          | i 0 cds 0 0      | [0..calldatasize): calldata     |\n             * 5a         | GAS            | g i 0 cds 0 0    | [0..calldatasize): calldata     |\n             * f4         | DELEGATECALL   | succ             | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ::: copy returndata to memory :::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | rds succ         | [0..calldatasize): calldata     |\n             * 60 0x00    | PUSH1 0x00     | 0 rds succ       | [0..calldatasize): calldata     |\n             * 80         | DUP1           | 0 0 rds succ     | [0..calldatasize): calldata     |\n             * 3e         | RETURNDATACOPY | succ             | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: branch on delegatecall status :::::::::::::::::::::::::::::::::::::::::::::: |\n             * 60 0x3E    | PUSH1 0x3E     | dest succ        | [0..returndatasize): returndata |\n             * 57         | JUMPI          |                  | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: delegatecall failed, revert :::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | rds              | [0..returndatasize): returndata |\n             * 60 0x00    | PUSH1 0x00     | 0 rds            | [0..returndatasize): returndata |\n             * fd         | REVERT         |                  | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: delegatecall succeeded, return ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 5b         | JUMPDEST       |                  | [0..returndatasize): returndata |\n             * 3d         | RETURNDATASIZE | rds              | [0..returndatasize): returndata |\n             * 60 0x00    | PUSH1 0x00     | 0 rds            | [0..returndatasize): returndata |\n             * f3         | RETURN         |                  | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: implementation , return :::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 5b         | JUMPDEST       |                  |                                 |\n             * 60 0x20    | PUSH1 0x20     | 32               |                                 |\n             * 60 0x0F    | PUSH1 0x0F     | o 32             |                                 |\n             * 3d         | RETURNDATASIZE | 0 o 32           |                                 |\n             * 39         | CODECOPY       |                  | [0..32): implementation slot    |\n             * 3d         | RETURNDATASIZE | 0                | [0..32): implementation slot    |\n             * 51         | MLOAD          | slot             | [0..32): implementation slot    |\n             * 54         | SLOAD          | impl             | [0..32): implementation slot    |\n             * 3d         | RETURNDATASIZE | 0 impl           | [0..32): implementation slot    |\n             * 52         | MSTORE         |                  | [0..32): implementation address |\n             * 59         | MSIZE          | 32               | [0..32): implementation address |\n             * 3d         | RETURNDATASIZE | 0 32             | [0..32): implementation address |\n             * f3         | RETURN         |                  | [0..32): implementation address |\n             * ---------------------------------------------------------------------------------+\n             */\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(0x40, 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(0x20, 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, implementation))))\n            instance := create(value, 0x0c, 0x74)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Deploys a deterministic ERC1967I proxy with `implementation` and `salt`.\n    function deployDeterministicERC1967I(address implementation, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = deployDeterministicERC1967I(0, implementation, salt);\n    }\n\n    /// @dev Deploys a deterministic ERC1967I proxy with `implementation` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    function deployDeterministicERC1967I(uint256 value, address implementation, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(0x40, 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(0x20, 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, implementation))))\n            instance := create2(value, 0x0c, 0x74, salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Creates a deterministic ERC1967I proxy with `implementation` and `salt`.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967I(address implementation, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicERC1967I(0, implementation, salt);\n    }\n\n    /// @dev Creates a deterministic ERC1967I proxy with `implementation` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967I(uint256 value, address implementation, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(0x40, 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(0x20, 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, implementation))))\n            // Compute and store the bytecode hash.\n            mstore(add(m, 0x35), keccak256(0x0c, 0x74))\n            mstore(m, shl(88, address()))\n            mstore8(m, 0xff) // Write the prefix.\n            mstore(add(m, 0x15), salt)\n            instance := keccak256(m, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, 0x0c, 0x74, salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Returns the initialization code of the ERC1967I proxy of `implementation`.\n    function initCodeERC1967I(address implementation) internal pure returns (bytes memory c) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            mstore(add(c, 0x74), 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(add(c, 0x54), 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(add(c, 0x34), 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(add(c, 0x1d), implementation)\n            mstore(add(c, 0x09), 0x60523d8160223d3973)\n            mstore(add(c, 0x94), 0)\n            mstore(c, 0x74) // Store the length.\n            mstore(0x40, add(c, 0xa0)) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the ERC1967I proxy of `implementation`.\n    function initCodeHashERC1967I(address implementation) internal pure returns (bytes32 hash) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(0x40, 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(0x20, 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, implementation))))\n            hash := keccak256(0x0c, 0x74)\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Returns the address of the ERC1967I proxy of `implementation`, with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddressERC1967I(\n        address implementation,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHashERC1967I(implementation);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*       ERC1967I PROXY WITH IMMUTABLE ARGS OPERATIONS        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Deploys a minimal ERC1967I proxy with `implementation` and `args`.\n    function deployERC1967I(address implementation, bytes memory args) internal returns (address) {\n        return deployERC1967I(0, implementation, args);\n    }\n\n    /// @dev Deploys a minimal ERC1967I proxy with `implementation` and `args`.\n    /// Deposits `value` ETH during deployment.\n    function deployERC1967I(uint256 value, address implementation, bytes memory args)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x8b), n))\n\n            mstore(add(m, 0x6b), 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(add(m, 0x4b), 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(add(m, 0x2b), 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(add(m, 0x14), implementation)\n            mstore(m, add(0xfe6100523d8160233d3973, shl(56, n)))\n\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            instance := create(value, add(m, add(0x15, lt(n, 0xffae))), add(0x75, n))\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Deploys a deterministic ERC1967I proxy with `implementation`, `args`, and `salt`.\n    function deployDeterministicERC1967I(address implementation, bytes memory args, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = deployDeterministicERC1967I(0, implementation, args, salt);\n    }\n\n    /// @dev Deploys a deterministic ERC1967I proxy with `implementation`, `args`, and `salt`.\n    /// Deposits `value` ETH during deployment.\n    function deployDeterministicERC1967I(\n        uint256 value,\n        address implementation,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x8b), n))\n\n            mstore(add(m, 0x6b), 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(add(m, 0x4b), 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(add(m, 0x2b), 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(add(m, 0x14), implementation)\n            mstore(m, add(0xfe6100523d8160233d3973, shl(56, n)))\n\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            instance := create2(value, add(m, add(0x15, lt(n, 0xffae))), add(0x75, n), salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Creates a deterministic ERC1967I proxy with `implementation`, `args` and `salt`.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967I(address implementation, bytes memory args, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicERC1967I(0, implementation, args, salt);\n    }\n\n    /// @dev Creates a deterministic ERC1967I proxy with `implementation`, `args` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967I(\n        uint256 value,\n        address implementation,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (bool alreadyDeployed, address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x75), n))\n            mstore(add(m, 0x55), 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(add(m, 0x35), 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(add(m, 0x15), 0x5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(0x16, 0x600f)\n            mstore(0x14, implementation)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            mstore(gt(n, 0xffad), add(0xfe6100523d8160233d3973, shl(56, n)))\n            mstore(m, mload(0x16))\n            // Compute and store the bytecode hash.\n            mstore8(0x00, 0xff) // Write the prefix.\n            mstore(0x35, keccak256(m, add(n, 0x75)))\n            mstore(0x01, shl(96, address()))\n            mstore(0x15, salt)\n            instance := keccak256(0x00, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, m, add(0x75, n), salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x35, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the initialization code of the ERC1967I proxy of `implementation` and `args`.\n    function initCodeERC1967I(address implementation, bytes memory args)\n        internal\n        pure\n        returns (bytes memory c)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffad))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(c, 0x95), i), mload(add(add(args, 0x20), i)))\n            }\n\n            mstore(add(c, 0x75), 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(add(c, 0x55), 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(add(c, 0x35), 0x600f5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(add(c, 0x1e), implementation)\n            mstore(add(c, 0x0a), add(0x6100523d8160233d3973, shl(56, n)))\n            mstore(add(c, add(n, 0x95)), 0)\n            mstore(c, add(0x75, n)) // Store the length.\n            mstore(0x40, add(c, add(n, 0xb5))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the ERC1967I proxy of `implementation` and `args.\n    function initCodeHashERC1967I(address implementation, bytes memory args)\n        internal\n        pure\n        returns (bytes32 hash)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffad))\n\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(m, 0x75), i), mload(add(add(args, 0x20), i)))\n            }\n\n            mstore(add(m, 0x55), 0x3d6000803e603e573d6000fd5b3d6000f35b6020600f3d393d51543d52593df3)\n            mstore(add(m, 0x35), 0xa13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af4)\n            mstore(add(m, 0x15), 0x5155f3365814604357363d3d373d3d363d7f360894)\n            mstore(0x16, 0x600f)\n            mstore(0x14, implementation)\n            mstore(0x00, add(0x6100523d8160233d3973, shl(56, n)))\n            mstore(m, mload(0x16))\n            hash := keccak256(m, add(0x75, n))\n        }\n    }\n\n    /// @dev Returns the address of the ERC1967I proxy of `implementation`, `args` with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddressERC1967I(\n        address implementation,\n        bytes memory args,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHashERC1967I(implementation, args);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /// @dev Equivalent to `argsOnERC1967I(instance, start, 2 ** 256 - 1)`.\n    function argsOnERC1967I(address instance) internal view returns (bytes memory args) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            mstore(args, and(0xffffffffff, sub(extcodesize(instance), 0x52))) // Store the length.\n            extcodecopy(instance, add(args, 0x20), 0x52, add(mload(args), 0x20))\n            mstore(0x40, add(mload(args), add(args, 0x40))) // Allocate memory.\n        }\n    }\n\n    /// @dev Equivalent to `argsOnERC1967I(instance, start, 2 ** 256 - 1)`.\n    function argsOnERC1967I(address instance, uint256 start)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            let n := and(0xffffffffff, sub(extcodesize(instance), 0x52))\n            let l := sub(n, and(0xffffff, mul(lt(start, n), start)))\n            extcodecopy(instance, args, add(start, 0x32), add(l, 0x40))\n            mstore(args, mul(sub(n, start), lt(start, n))) // Store the length.\n            mstore(0x40, add(mload(args), add(args, 0x40))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns a slice of the immutable arguments on `instance` from `start` to `end`.\n    /// `start` and `end` will be clamped to the range `[0, args.length]`.\n    /// The `instance` MUST be deployed via the ERC1967 with immutable args functions.\n    /// Otherwise, the behavior is undefined.\n    /// Out-of-gas reverts if `instance` does not have any code.\n    function argsOnERC1967I(address instance, uint256 start, uint256 end)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            if iszero(lt(end, 0xffff)) { end := 0xffff }\n            let d := mul(sub(end, start), lt(start, end))\n            extcodecopy(instance, args, add(start, 0x32), add(d, 0x20))\n            if iszero(and(0xff, mload(add(args, d)))) {\n                let n := sub(extcodesize(instance), 0x52)\n                returndatacopy(returndatasize(), returndatasize(), shr(40, n))\n                d := mul(gt(n, start), sub(d, mul(gt(end, n), sub(end, n))))\n            }\n            mstore(args, d) // Store the length.\n            mstore(add(add(args, 0x20), d), 0) // Zeroize the slot after the bytes.\n            mstore(0x40, add(add(args, 0x40), d)) // Allocate memory.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                ERC1967 BOOTSTRAP OPERATIONS                */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // A bootstrap is a minimal UUPS implementation that allows an ERC1967 proxy\n    // pointing to it to be upgraded. The ERC1967 proxy can then be deployed to a\n    // deterministic address independent of the implementation:\n    // ```\n    //     address bootstrap = LibClone.erc1967Bootstrap();\n    //     address instance = LibClone.deployDeterministicERC1967(0, bootstrap, salt);\n    //     LibClone.bootstrapERC1967(bootstrap, implementation);\n    // ```\n\n    /// @dev Deploys the ERC1967 bootstrap if it has not been deployed.\n    function erc1967Bootstrap() internal returns (address) {\n        return erc1967Bootstrap(address(this));\n    }\n\n    /// @dev Deploys the ERC1967 bootstrap if it has not been deployed.\n    function erc1967Bootstrap(address authorizedUpgrader) internal returns (address bootstrap) {\n        bytes memory c = initCodeERC1967Bootstrap(authorizedUpgrader);\n        bootstrap = predictDeterministicAddress(keccak256(c), bytes32(0), address(this));\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(extcodesize(bootstrap)) {\n                if iszero(create2(0, add(c, 0x20), mload(c), 0)) {\n                    mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n        }\n    }\n\n    /// @dev Replaces the implementation at `instance`.\n    function bootstrapERC1967(address instance, address implementation) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, implementation)\n            if iszero(call(gas(), instance, 0, 0x0c, 0x14, codesize(), 0x00)) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Replaces the implementation at `instance`, and then call it with `data`.\n    function bootstrapERC1967AndCall(address instance, address implementation, bytes memory data)\n        internal\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let n := mload(data)\n            mstore(data, implementation)\n            if iszero(call(gas(), instance, 0, add(data, 0x0c), add(n, 0x14), codesize(), 0x00)) {\n                if iszero(returndatasize()) {\n                    mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                returndatacopy(mload(0x40), 0x00, returndatasize())\n                revert(mload(0x40), returndatasize())\n            }\n            mstore(data, n) // Restore the length of `data`.\n        }\n    }\n\n    /// @dev Returns the implementation address of the ERC1967 bootstrap for this contract.\n    function predictDeterministicAddressERC1967Bootstrap() internal view returns (address) {\n        return predictDeterministicAddressERC1967Bootstrap(address(this), address(this));\n    }\n\n    /// @dev Returns the implementation address of the ERC1967 bootstrap for this contract.\n    function predictDeterministicAddressERC1967Bootstrap(\n        address authorizedUpgrader,\n        address deployer\n    ) internal pure returns (address) {\n        bytes32 hash = initCodeHashERC1967Bootstrap(authorizedUpgrader);\n        return predictDeterministicAddress(hash, bytes32(0), deployer);\n    }\n\n    /// @dev Returns the initialization code of the ERC1967 bootstrap.\n    function initCodeERC1967Bootstrap(address authorizedUpgrader)\n        internal\n        pure\n        returns (bytes memory c)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            mstore(add(c, 0x80), 0x3d3560601c5af46047573d6000383e3d38fd0000000000000000000000000000)\n            mstore(add(c, 0x60), 0xa920a3ca505d382bbc55601436116049575b005b363d3d373d3d601436036014)\n            mstore(add(c, 0x40), 0x0338573d3560601c7f360894a13ba1a3210667c828492db98dca3e2076cc3735)\n            mstore(add(c, 0x20), authorizedUpgrader)\n            mstore(add(c, 0x0c), 0x606880600a3d393df3fe3373)\n            mstore(c, 0x72)\n            mstore(0x40, add(c, 0xa0))\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the ERC1967 bootstrap.\n    function initCodeHashERC1967Bootstrap(address authorizedUpgrader)\n        internal\n        pure\n        returns (bytes32)\n    {\n        return keccak256(initCodeERC1967Bootstrap(authorizedUpgrader));\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*          MINIMAL ERC1967 BEACON PROXY OPERATIONS           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // Note: If you use this proxy, you MUST make sure that the beacon is a\n    // valid ERC1967 beacon. This means that the beacon must always return a valid\n    // address upon a staticcall to `implementation()`, given sufficient gas.\n    // For performance, the deployment operations and the proxy assumes that the\n    // beacon is always valid and will NOT validate it.\n\n    /// @dev Deploys a minimal ERC1967 beacon proxy.\n    function deployERC1967BeaconProxy(address beacon) internal returns (address instance) {\n        instance = deployERC1967BeaconProxy(0, beacon);\n    }\n\n    /// @dev Deploys a minimal ERC1967 beacon proxy.\n    /// Deposits `value` ETH during deployment.\n    function deployERC1967BeaconProxy(uint256 value, address beacon)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            /**\n             * ---------------------------------------------------------------------------------+\n             * CREATION (34 bytes)                                                              |\n             * ---------------------------------------------------------------------------------|\n             * Opcode     | Mnemonic       | Stack            | Memory                          |\n             * ---------------------------------------------------------------------------------|\n             * 60 runSize | PUSH1 runSize  | r                |                                 |\n             * 3d         | RETURNDATASIZE | 0 r              |                                 |\n             * 81         | DUP2           | r 0 r            |                                 |\n             * 60 offset  | PUSH1 offset   | o r 0 r          |                                 |\n             * 3d         | RETURNDATASIZE | 0 o r 0 r        |                                 |\n             * 39         | CODECOPY       | 0 r              | [0..runSize): runtime code      |\n             * 73 beac    | PUSH20 beac    | beac 0 r         | [0..runSize): runtime code      |\n             * 60 slotPos | PUSH1 slotPos  | slotPos beac 0 r | [0..runSize): runtime code      |\n             * 51         | MLOAD          | slot beac 0 r    | [0..runSize): runtime code      |\n             * 55         | SSTORE         | 0 r              | [0..runSize): runtime code      |\n             * f3         | RETURN         |                  | [0..runSize): runtime code      |\n             * ---------------------------------------------------------------------------------|\n             * RUNTIME (82 bytes)                                                               |\n             * ---------------------------------------------------------------------------------|\n             * Opcode     | Mnemonic       | Stack            | Memory                          |\n             * ---------------------------------------------------------------------------------|\n             *                                                                                  |\n             * ::: copy calldata to memory :::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 36         | CALLDATASIZE   | cds              |                                 |\n             * 3d         | RETURNDATASIZE | 0 cds            |                                 |\n             * 3d         | RETURNDATASIZE | 0 0 cds          |                                 |\n             * 37         | CALLDATACOPY   |                  | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ::: delegatecall to implementation ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | 0                |                                 |\n             * 3d         | RETURNDATASIZE | 0 0              |                                 |\n             * 36         | CALLDATASIZE   | cds 0 0          | [0..calldatasize): calldata     |\n             * 3d         | RETURNDATASIZE | 0 cds 0 0        | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ~~~~~~~ beacon staticcall sub procedure ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |\n             * 60 0x20       | PUSH1 0x20       | 32                          |                 |\n             * 36            | CALLDATASIZE     | cds 32                      |                 |\n             * 60 0x04       | PUSH1 0x04       | 4 cds 32                    |                 |\n             * 36            | CALLDATASIZE     | cds 4 cds 32                |                 |\n             * 63 0x5c60da1b | PUSH4 0x5c60da1b | 0x5c60da1b cds 4 cds 32     |                 |\n             * 60 0xe0       | PUSH1 0xe0       | 224 0x5c60da1b cds 4 cds 32 |                 |\n             * 1b            | SHL              | sel cds 4 cds 32            |                 |\n             * 36            | CALLDATASIZE     | cds sel cds 4 cds 32        |                 |\n             * 52            | MSTORE           | cds 4 cds 32                | sel             |\n             * 7f slot       | PUSH32 slot      | s cds 4 cds 32              | sel             |\n             * 54            | SLOAD            | beac cds 4 cds 32           | sel             |\n             * 5a            | GAS              | g beac cds 4 cds 32         | sel             |\n             * fa            | STATICCALL       | succ                        | impl            |\n             * 50            | POP              |                             | impl            |\n             * 36            | CALLDATASIZE     | cds                         | impl            |\n             * 51            | MLOAD            | impl                        | impl            |\n             * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |\n             * 5a         | GAS            | g impl 0 cds 0 0 | [0..calldatasize): calldata     |\n             * f4         | DELEGATECALL   | succ             | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ::: copy returndata to memory :::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | rds succ         | [0..calldatasize): calldata     |\n             * 60 0x00    | PUSH1 0x00     | 0 rds succ       | [0..calldatasize): calldata     |\n             * 80         | DUP1           | 0 0 rds succ     | [0..calldatasize): calldata     |\n             * 3e         | RETURNDATACOPY | succ             | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: branch on delegatecall status :::::::::::::::::::::::::::::::::::::::::::::: |\n             * 60 0x4d    | PUSH1 0x4d     | dest succ        | [0..returndatasize): returndata |\n             * 57         | JUMPI          |                  | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: delegatecall failed, revert :::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | rds              | [0..returndatasize): returndata |\n             * 60 0x00    | PUSH1 0x00     | 0 rds            | [0..returndatasize): returndata |\n             * fd         | REVERT         |                  | [0..returndatasize): returndata |\n             *                                                                                  |\n             * ::: delegatecall succeeded, return ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 5b         | JUMPDEST       |                  | [0..returndatasize): returndata |\n             * 3d         | RETURNDATASIZE | rds              | [0..returndatasize): returndata |\n             * 60 0x00    | PUSH1 0x00     | 0 rds            | [0..returndatasize): returndata |\n             * f3         | RETURN         |                  | [0..returndatasize): returndata |\n             * ---------------------------------------------------------------------------------+\n             */\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(0x40, 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(0x20, 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, beacon))))\n            instance := create(value, 0x0c, 0x74)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Deploys a deterministic minimal ERC1967 beacon proxy with `salt`.\n    function deployDeterministicERC1967BeaconProxy(address beacon, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = deployDeterministicERC1967BeaconProxy(0, beacon, salt);\n    }\n\n    /// @dev Deploys a deterministic minimal ERC1967 beacon proxy with `salt`.\n    /// Deposits `value` ETH during deployment.\n    function deployDeterministicERC1967BeaconProxy(uint256 value, address beacon, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(0x40, 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(0x20, 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, beacon))))\n            instance := create2(value, 0x0c, 0x74, salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Creates a deterministic minimal ERC1967 beacon proxy with `salt`.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967BeaconProxy(address beacon, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicERC1967BeaconProxy(0, beacon, salt);\n    }\n\n    /// @dev Creates a deterministic minimal ERC1967 beacon proxy with `salt`.\n    /// Deposits `value` ETH during deployment.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967BeaconProxy(uint256 value, address beacon, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(0x40, 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(0x20, 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, beacon))))\n            // Compute and store the bytecode hash.\n            mstore(add(m, 0x35), keccak256(0x0c, 0x74))\n            mstore(m, shl(88, address()))\n            mstore8(m, 0xff) // Write the prefix.\n            mstore(add(m, 0x15), salt)\n            instance := keccak256(m, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, 0x0c, 0x74, salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Returns the initialization code of the minimal ERC1967 beacon proxy.\n    function initCodeERC1967BeaconProxy(address beacon) internal pure returns (bytes memory c) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            mstore(add(c, 0x74), 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(add(c, 0x54), 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(add(c, 0x34), 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(add(c, 0x1d), beacon)\n            mstore(add(c, 0x09), 0x60523d8160223d3973)\n            mstore(add(c, 0x94), 0)\n            mstore(c, 0x74) // Store the length.\n            mstore(0x40, add(c, 0xa0)) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the minimal ERC1967 beacon proxy.\n    function initCodeHashERC1967BeaconProxy(address beacon) internal pure returns (bytes32 hash) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(0x40, 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(0x20, 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(0x09, or(shl(160, 0x60523d8160223d3973), shr(96, shl(96, beacon))))\n            hash := keccak256(0x0c, 0x74)\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Returns the address of the ERC1967 beacon proxy, with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddressERC1967BeaconProxy(\n        address beacon,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHashERC1967BeaconProxy(beacon);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*    ERC1967 BEACON PROXY WITH IMMUTABLE ARGS OPERATIONS     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Deploys a minimal ERC1967 beacon proxy with `args`.\n    function deployERC1967BeaconProxy(address beacon, bytes memory args)\n        internal\n        returns (address instance)\n    {\n        instance = deployERC1967BeaconProxy(0, beacon, args);\n    }\n\n    /// @dev Deploys a minimal ERC1967 beacon proxy with `args`.\n    /// Deposits `value` ETH during deployment.\n    function deployERC1967BeaconProxy(uint256 value, address beacon, bytes memory args)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x8b), n))\n            mstore(add(m, 0x6b), 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(add(m, 0x4b), 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(add(m, 0x2b), 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(add(m, 0x14), beacon)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            mstore(add(m, gt(n, 0xffad)), add(0xfe6100523d8160233d3973, shl(56, n)))\n            instance := create(value, add(m, 0x16), add(n, 0x75))\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Deploys a deterministic minimal ERC1967 beacon proxy with `args` and `salt`.\n    function deployDeterministicERC1967BeaconProxy(address beacon, bytes memory args, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = deployDeterministicERC1967BeaconProxy(0, beacon, args, salt);\n    }\n\n    /// @dev Deploys a deterministic minimal ERC1967 beacon proxy with `args` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    function deployDeterministicERC1967BeaconProxy(\n        uint256 value,\n        address beacon,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x8b), n))\n            mstore(add(m, 0x6b), 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(add(m, 0x4b), 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(add(m, 0x2b), 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(add(m, 0x14), beacon)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            mstore(add(m, gt(n, 0xffad)), add(0xfe6100523d8160233d3973, shl(56, n)))\n            instance := create2(value, add(m, 0x16), add(n, 0x75), salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Creates a deterministic minimal ERC1967 beacon proxy with `args` and `salt`.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967BeaconProxy(address beacon, bytes memory args, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicERC1967BeaconProxy(0, beacon, args, salt);\n    }\n\n    /// @dev Creates a deterministic minimal ERC1967 beacon proxy with `args` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967BeaconProxy(\n        uint256 value,\n        address beacon,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (bool alreadyDeployed, address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x8b), n))\n            mstore(add(m, 0x6b), 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(add(m, 0x4b), 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(add(m, 0x2b), 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(add(m, 0x14), beacon)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            mstore(add(m, gt(n, 0xffad)), add(0xfe6100523d8160233d3973, shl(56, n)))\n            // Compute and store the bytecode hash.\n            mstore8(0x00, 0xff) // Write the prefix.\n            mstore(0x35, keccak256(add(m, 0x16), add(n, 0x75)))\n            mstore(0x01, shl(96, address()))\n            mstore(0x15, salt)\n            instance := keccak256(0x00, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, add(m, 0x16), add(n, 0x75), salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x35, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the initialization code of the minimal ERC1967 beacon proxy.\n    function initCodeERC1967BeaconProxy(address beacon, bytes memory args)\n        internal\n        pure\n        returns (bytes memory c)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffad))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(c, 0x95), i), mload(add(add(args, 0x20), i)))\n            }\n            mstore(add(c, 0x75), 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(add(c, 0x55), 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(add(c, 0x35), 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(add(c, 0x1e), beacon)\n            mstore(add(c, 0x0a), add(0x6100523d8160233d3973, shl(56, n)))\n            mstore(c, add(n, 0x75)) // Store the length.\n            mstore(add(c, add(n, 0x95)), 0) // Zeroize the slot after the bytes.\n            mstore(0x40, add(c, add(n, 0xb5))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the minimal ERC1967 beacon proxy with `args`.\n    function initCodeHashERC1967BeaconProxy(address beacon, bytes memory args)\n        internal\n        pure\n        returns (bytes32 hash)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x52 = 0xffad`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffad))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(m, 0x8b), i), mload(add(add(args, 0x20), i)))\n            }\n            mstore(add(m, 0x6b), 0xb3582b35133d50545afa5036515af43d6000803e604d573d6000fd5b3d6000f3)\n            mstore(add(m, 0x4b), 0x1b60e01b36527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6c)\n            mstore(add(m, 0x2b), 0x60195155f3363d3d373d3d363d602036600436635c60da)\n            mstore(add(m, 0x14), beacon)\n            mstore(m, add(0x6100523d8160233d3973, shl(56, n)))\n            hash := keccak256(add(m, 0x16), add(n, 0x75))\n        }\n    }\n\n    /// @dev Returns the address of the ERC1967 beacon proxy with `args`, with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddressERC1967BeaconProxy(\n        address beacon,\n        bytes memory args,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHashERC1967BeaconProxy(beacon, args);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /// @dev Equivalent to `argsOnERC1967BeaconProxy(instance, start, 2 ** 256 - 1)`.\n    function argsOnERC1967BeaconProxy(address instance) internal view returns (bytes memory args) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            mstore(args, and(0xffffffffff, sub(extcodesize(instance), 0x52))) // Store the length.\n            extcodecopy(instance, add(args, 0x20), 0x52, add(mload(args), 0x20))\n            mstore(0x40, add(mload(args), add(args, 0x40))) // Allocate memory.\n        }\n    }\n\n    /// @dev Equivalent to `argsOnERC1967BeaconProxy(instance, start, 2 ** 256 - 1)`.\n    function argsOnERC1967BeaconProxy(address instance, uint256 start)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            let n := and(0xffffffffff, sub(extcodesize(instance), 0x52))\n            let l := sub(n, and(0xffffff, mul(lt(start, n), start)))\n            extcodecopy(instance, args, add(start, 0x32), add(l, 0x40))\n            mstore(args, mul(sub(n, start), lt(start, n))) // Store the length.\n            mstore(0x40, add(args, add(0x40, mload(args)))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns a slice of the immutable arguments on `instance` from `start` to `end`.\n    /// `start` and `end` will be clamped to the range `[0, args.length]`.\n    /// The `instance` MUST be deployed via the ERC1967 beacon proxy with immutable args functions.\n    /// Otherwise, the behavior is undefined.\n    /// Out-of-gas reverts if `instance` does not have any code.\n    function argsOnERC1967BeaconProxy(address instance, uint256 start, uint256 end)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            if iszero(lt(end, 0xffff)) { end := 0xffff }\n            let d := mul(sub(end, start), lt(start, end))\n            extcodecopy(instance, args, add(start, 0x32), add(d, 0x20))\n            if iszero(and(0xff, mload(add(args, d)))) {\n                let n := sub(extcodesize(instance), 0x52)\n                returndatacopy(returndatasize(), returndatasize(), shr(40, n))\n                d := mul(gt(n, start), sub(d, mul(gt(end, n), sub(end, n))))\n            }\n            mstore(args, d) // Store the length.\n            mstore(add(add(args, 0x20), d), 0) // Zeroize the slot after the bytes.\n            mstore(0x40, add(add(args, 0x40), d)) // Allocate memory.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*              ERC1967I BEACON PROXY OPERATIONS              */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // Note: This proxy has a special code path that activates if `calldatasize() == 1`.\n    // This code path skips the delegatecall and directly returns the `implementation` address.\n    // The returned implementation is guaranteed to be valid if the keccak256 of the\n    // proxy's code is equal to `ERC1967_BEACON_PROXY_CODE_HASH`.\n    //\n    // If you use this proxy, you MUST make sure that the beacon is a\n    // valid ERC1967 beacon. This means that the beacon must always return a valid\n    // address upon a staticcall to `implementation()`, given sufficient gas.\n    // For performance, the deployment operations and the proxy assumes that the\n    // beacon is always valid and will NOT validate it.\n\n    /// @dev Deploys a ERC1967I beacon proxy.\n    function deployERC1967IBeaconProxy(address beacon) internal returns (address instance) {\n        instance = deployERC1967IBeaconProxy(0, beacon);\n    }\n\n    /// @dev Deploys a ERC1967I beacon proxy.\n    /// Deposits `value` ETH during deployment.\n    function deployERC1967IBeaconProxy(uint256 value, address beacon)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            /**\n             * ---------------------------------------------------------------------------------+\n             * CREATION (34 bytes)                                                              |\n             * ---------------------------------------------------------------------------------|\n             * Opcode     | Mnemonic       | Stack            | Memory                          |\n             * ---------------------------------------------------------------------------------|\n             * 60 runSize | PUSH1 runSize  | r                |                                 |\n             * 3d         | RETURNDATASIZE | 0 r              |                                 |\n             * 81         | DUP2           | r 0 r            |                                 |\n             * 60 offset  | PUSH1 offset   | o r 0 r          |                                 |\n             * 3d         | RETURNDATASIZE | 0 o r 0 r        |                                 |\n             * 39         | CODECOPY       | 0 r              | [0..runSize): runtime code      |\n             * 73 beac    | PUSH20 beac    | beac 0 r         | [0..runSize): runtime code      |\n             * 60 slotPos | PUSH1 slotPos  | slotPos beac 0 r | [0..runSize): runtime code      |\n             * 51         | MLOAD          | slot beac 0 r    | [0..runSize): runtime code      |\n             * 55         | SSTORE         | 0 r              | [0..runSize): runtime code      |\n             * f3         | RETURN         |                  | [0..runSize): runtime code      |\n             * ---------------------------------------------------------------------------------|\n             * RUNTIME (87 bytes)                                                               |\n             * ---------------------------------------------------------------------------------|\n             * Opcode     | Mnemonic       | Stack            | Memory                          |\n             * ---------------------------------------------------------------------------------|\n             *                                                                                  |\n             * ::: copy calldata to memory :::::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 36         | CALLDATASIZE   | cds              |                                 |\n             * 3d         | RETURNDATASIZE | 0 cds            |                                 |\n             * 3d         | RETURNDATASIZE | 0 0 cds          |                                 |\n             * 37         | CALLDATACOPY   |                  | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ::: delegatecall to implementation ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | 0                |                                 |\n             * 3d         | RETURNDATASIZE | 0 0              |                                 |\n             * 36         | CALLDATASIZE   | cds 0 0          | [0..calldatasize): calldata     |\n             * 3d         | RETURNDATASIZE | 0 cds 0 0        | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ~~~~~~~ beacon staticcall sub procedure ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |\n             * 60 0x20       | PUSH1 0x20       | 32                          |                 |\n             * 36            | CALLDATASIZE     | cds 32                      |                 |\n             * 60 0x04       | PUSH1 0x04       | 4 cds 32                    |                 |\n             * 36            | CALLDATASIZE     | cds 4 cds 32                |                 |\n             * 63 0x5c60da1b | PUSH4 0x5c60da1b | 0x5c60da1b cds 4 cds 32     |                 |\n             * 60 0xe0       | PUSH1 0xe0       | 224 0x5c60da1b cds 4 cds 32 |                 |\n             * 1b            | SHL              | sel cds 4 cds 32            |                 |\n             * 36            | CALLDATASIZE     | cds sel cds 4 cds 32        |                 |\n             * 52            | MSTORE           | cds 4 cds 32                | sel             |\n             * 7f slot       | PUSH32 slot      | s cds 4 cds 32              | sel             |\n             * 54            | SLOAD            | beac cds 4 cds 32           | sel             |\n             * 5a            | GAS              | g beac cds 4 cds 32         | sel             |\n             * fa            | STATICCALL       | succ                        | impl            |\n             * ~~~~~~ check calldatasize ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |\n             * 36            | CALLDATASIZE     | cds succ                    |                 |\n             * 14            | EQ               |                             | impl            |\n             * 60 0x52       | PUSH1 0x52       |                             | impl            |\n             * 57            | JUMPI            |                             | impl            |\n             * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |\n             * 36            | CALLDATASIZE     | cds                         | impl            |\n             * 51            | MLOAD            | impl                        | impl            |\n             * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |\n             * 5a         | GAS            | g impl 0 cds 0 0 | [0..calldatasize): calldata     |\n             * f4         | DELEGATECALL   | succ             | [0..calldatasize): calldata     |\n             *                                                                                  |\n             * ::: copy returndata to memory :::::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | rds succ         | [0..calldatasize): calldata     |\n             * 60 0x00    | PUSH1 0x00     | 0 rds succ       | [0..calldatasize): calldata     |\n             * 60 0x01    | PUSH1 0x01     | 1 0 rds succ     | [0..calldatasize): calldata     |\n             * 3e         | RETURNDATACOPY | succ             | [1..returndatasize): returndata |\n             *                                                                                  |\n             * ::: branch on delegatecall status :::::::::::::::::::::::::::::::::::::::::::::: |\n             * 60 0x52    | PUSH1 0x52     | dest succ        | [1..returndatasize): returndata |\n             * 57         | JUMPI          |                  | [1..returndatasize): returndata |\n             *                                                                                  |\n             * ::: delegatecall failed, revert :::::::::::::::::::::::::::::::::::::::::::::::: |\n             * 3d         | RETURNDATASIZE | rds              | [1..returndatasize): returndata |\n             * 60 0x01    | PUSH1 0x01     | 1 rds            | [1..returndatasize): returndata |\n             * fd         | REVERT         |                  | [1..returndatasize): returndata |\n             *                                                                                  |\n             * ::: delegatecall succeeded, return ::::::::::::::::::::::::::::::::::::::::::::: |\n             * 5b         | JUMPDEST       |                  | [1..returndatasize): returndata |\n             * 3d         | RETURNDATASIZE | rds              | [1..returndatasize): returndata |\n             * 60 0x01    | PUSH1 0x01     | 1 rds            | [1..returndatasize): returndata |\n             * f3         | RETURN         |                  | [1..returndatasize): returndata |\n             * ---------------------------------------------------------------------------------+\n             */\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(0x40, 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(0x20, 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(0x04, or(shl(160, 0x60573d8160223d3973), shr(96, shl(96, beacon))))\n            instance := create(value, 0x07, 0x79)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Deploys a deterministic ERC1967I beacon proxy with `salt`.\n    function deployDeterministicERC1967IBeaconProxy(address beacon, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = deployDeterministicERC1967IBeaconProxy(0, beacon, salt);\n    }\n\n    /// @dev Deploys a deterministic ERC1967I beacon proxy with `salt`.\n    /// Deposits `value` ETH during deployment.\n    function deployDeterministicERC1967IBeaconProxy(uint256 value, address beacon, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(0x40, 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(0x20, 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(0x04, or(shl(160, 0x60573d8160223d3973), shr(96, shl(96, beacon))))\n            instance := create2(value, 0x07, 0x79, salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Creates a deterministic ERC1967I beacon proxy with `salt`.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967IBeaconProxy(address beacon, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicERC1967IBeaconProxy(0, beacon, salt);\n    }\n\n    /// @dev Creates a deterministic ERC1967I beacon proxy with `salt`.\n    /// Deposits `value` ETH during deployment.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967IBeaconProxy(uint256 value, address beacon, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(0x40, 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(0x20, 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(0x04, or(shl(160, 0x60573d8160223d3973), shr(96, shl(96, beacon))))\n            // Compute and store the bytecode hash.\n            mstore(add(m, 0x35), keccak256(0x07, 0x79))\n            mstore(m, shl(88, address()))\n            mstore8(m, 0xff) // Write the prefix.\n            mstore(add(m, 0x15), salt)\n            instance := keccak256(m, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, 0x07, 0x79, salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Returns the initialization code of the ERC1967I beacon proxy.\n    function initCodeERC1967IBeaconProxy(address beacon) internal pure returns (bytes memory c) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            mstore(add(c, 0x79), 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(add(c, 0x59), 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(add(c, 0x39), 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(add(c, 0x1d), beacon)\n            mstore(add(c, 0x09), 0x60573d8160223d3973)\n            mstore(add(c, 0x99), 0)\n            mstore(c, 0x79) // Store the length.\n            mstore(0x40, add(c, 0xa0)) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the ERC1967I beacon proxy.\n    function initCodeHashERC1967IBeaconProxy(address beacon) internal pure returns (bytes32 hash) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(0x40, 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(0x20, 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(0x04, or(shl(160, 0x60573d8160223d3973), shr(96, shl(96, beacon))))\n            hash := keccak256(0x07, 0x79)\n            mstore(0x40, m) // Restore the free memory pointer.\n            mstore(0x60, 0) // Restore the zero slot.\n        }\n    }\n\n    /// @dev Returns the address of the ERC1967I beacon proxy, with `salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddressERC1967IBeaconProxy(\n        address beacon,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHashERC1967IBeaconProxy(beacon);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*    ERC1967I BEACON PROXY WITH IMMUTABLE ARGS OPERATIONS    */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Deploys a ERC1967I beacon proxy with `args.\n    function deployERC1967IBeaconProxy(address beacon, bytes memory args)\n        internal\n        returns (address instance)\n    {\n        instance = deployERC1967IBeaconProxy(0, beacon, args);\n    }\n\n    /// @dev Deploys a ERC1967I beacon proxy with `args.\n    /// Deposits `value` ETH during deployment.\n    function deployERC1967IBeaconProxy(uint256 value, address beacon, bytes memory args)\n        internal\n        returns (address instance)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x90), n))\n            mstore(add(m, 0x70), 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(add(m, 0x50), 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(add(m, 0x30), 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(add(m, 0x14), beacon)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x57 = 0xffa8`.\n            mstore(add(m, gt(n, 0xffa8)), add(0xfe6100573d8160233d3973, shl(56, n)))\n            instance := create(value, add(m, 0x16), add(n, 0x7a))\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Deploys a deterministic ERC1967I beacon proxy with `args` and `salt`.\n    function deployDeterministicERC1967IBeaconProxy(address beacon, bytes memory args, bytes32 salt)\n        internal\n        returns (address instance)\n    {\n        instance = deployDeterministicERC1967IBeaconProxy(0, beacon, args, salt);\n    }\n\n    /// @dev Deploys a deterministic ERC1967I beacon proxy with `args` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    function deployDeterministicERC1967IBeaconProxy(\n        uint256 value,\n        address beacon,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x90), n))\n            mstore(add(m, 0x70), 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(add(m, 0x50), 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(add(m, 0x30), 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(add(m, 0x14), beacon)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x57 = 0xffa8`.\n            mstore(add(m, gt(n, 0xffa8)), add(0xfe6100573d8160233d3973, shl(56, n)))\n            instance := create2(value, add(m, 0x16), add(n, 0x7a), salt)\n            if iszero(instance) {\n                mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Creates a deterministic ERC1967I beacon proxy with `args` and `salt`.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967IBeaconProxy(address beacon, bytes memory args, bytes32 salt)\n        internal\n        returns (bool alreadyDeployed, address instance)\n    {\n        return createDeterministicERC1967IBeaconProxy(0, beacon, args, salt);\n    }\n\n    /// @dev Creates a deterministic ERC1967I beacon proxy with `args` and `salt`.\n    /// Deposits `value` ETH during deployment.\n    /// Note: This method is intended for use in ERC4337 factories,\n    /// which are expected to NOT revert if the proxy is already deployed.\n    function createDeterministicERC1967IBeaconProxy(\n        uint256 value,\n        address beacon,\n        bytes memory args,\n        bytes32 salt\n    ) internal returns (bool alreadyDeployed, address instance) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let n := mload(args)\n            pop(staticcall(gas(), 4, add(args, 0x20), n, add(m, 0x90), n))\n            mstore(add(m, 0x70), 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(add(m, 0x50), 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(add(m, 0x30), 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(add(m, 0x14), beacon)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x57 = 0xffa8`.\n            mstore(add(m, gt(n, 0xffa8)), add(0xfe6100573d8160233d3973, shl(56, n)))\n            // Compute and store the bytecode hash.\n            mstore8(0x00, 0xff) // Write the prefix.\n            mstore(0x35, keccak256(add(m, 0x16), add(n, 0x7a)))\n            mstore(0x01, shl(96, address()))\n            mstore(0x15, salt)\n            instance := keccak256(0x00, 0x55)\n            for {} 1 {} {\n                if iszero(extcodesize(instance)) {\n                    instance := create2(value, add(m, 0x16), add(n, 0x7a), salt)\n                    if iszero(instance) {\n                        mstore(0x00, 0x30116425) // `DeploymentFailed()`.\n                        revert(0x1c, 0x04)\n                    }\n                    break\n                }\n                alreadyDeployed := 1\n                if iszero(value) { break }\n                if iszero(call(gas(), instance, value, codesize(), 0x00, codesize(), 0x00)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                break\n            }\n            mstore(0x35, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the initialization code of the ERC1967I beacon proxy with `args`.\n    function initCodeERC1967IBeaconProxy(address beacon, bytes memory args)\n        internal\n        pure\n        returns (bytes memory c)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            c := mload(0x40)\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x57 = 0xffa8`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffa8))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(c, 0x9a), i), mload(add(add(args, 0x20), i)))\n            }\n            mstore(add(c, 0x7a), 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(add(c, 0x5a), 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(add(c, 0x3a), 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(add(c, 0x1e), beacon)\n            mstore(add(c, 0x0a), add(0x6100573d8160233d3973, shl(56, n)))\n            mstore(add(c, add(n, 0x9a)), 0)\n            mstore(c, add(n, 0x7a)) // Store the length.\n            mstore(0x40, add(c, add(n, 0xba))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns the initialization code hash of the ERC1967I beacon proxy with `args`.\n    function initCodeHashERC1967IBeaconProxy(address beacon, bytes memory args)\n        internal\n        pure\n        returns (bytes32 hash)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let c := mload(0x40) // Cache the free memory pointer.\n            let n := mload(args)\n            // Do a out-of-gas revert if `n` is greater than `0xffff - 0x57 = 0xffa8`.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0xffa8))\n            for { let i := 0 } lt(i, n) { i := add(i, 0x20) } {\n                mstore(add(add(c, 0x90), i), mload(add(add(args, 0x20), i)))\n            }\n            mstore(add(c, 0x70), 0x3d50545afa361460525736515af43d600060013e6052573d6001fd5b3d6001f3)\n            mstore(add(c, 0x50), 0x527fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b3513)\n            mstore(add(c, 0x30), 0x60195155f3363d3d373d3d363d602036600436635c60da1b60e01b36)\n            mstore(add(c, 0x14), beacon)\n            mstore(c, add(0x6100573d8160233d3973, shl(56, n)))\n            hash := keccak256(add(c, 0x16), add(n, 0x7a))\n        }\n    }\n\n    /// @dev Returns the address of the ERC1967I beacon proxy, with  `args` and salt` by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddressERC1967IBeaconProxy(\n        address beacon,\n        bytes memory args,\n        bytes32 salt,\n        address deployer\n    ) internal pure returns (address predicted) {\n        bytes32 hash = initCodeHashERC1967IBeaconProxy(beacon, args);\n        predicted = predictDeterministicAddress(hash, salt, deployer);\n    }\n\n    /// @dev Equivalent to `argsOnERC1967IBeaconProxy(instance, start, 2 ** 256 - 1)`.\n    function argsOnERC1967IBeaconProxy(address instance)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            mstore(args, and(0xffffffffff, sub(extcodesize(instance), 0x57))) // Store the length.\n            extcodecopy(instance, add(args, 0x20), 0x57, add(mload(args), 0x20))\n            mstore(0x40, add(mload(args), add(args, 0x40))) // Allocate memory.\n        }\n    }\n\n    /// @dev Equivalent to `argsOnERC1967IBeaconProxy(instance, start, 2 ** 256 - 1)`.\n    function argsOnERC1967IBeaconProxy(address instance, uint256 start)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            let n := and(0xffffffffff, sub(extcodesize(instance), 0x57))\n            let l := sub(n, and(0xffffff, mul(lt(start, n), start)))\n            extcodecopy(instance, args, add(start, 0x37), add(l, 0x40))\n            mstore(args, mul(sub(n, start), lt(start, n))) // Store the length.\n            mstore(0x40, add(args, add(0x40, mload(args)))) // Allocate memory.\n        }\n    }\n\n    /// @dev Returns a slice of the immutable arguments on `instance` from `start` to `end`.\n    /// `start` and `end` will be clamped to the range `[0, args.length]`.\n    /// The `instance` MUST be deployed via the ERC1967I beacon proxy with immutable args functions.\n    /// Otherwise, the behavior is undefined.\n    /// Out-of-gas reverts if `instance` does not have any code.\n    function argsOnERC1967IBeaconProxy(address instance, uint256 start, uint256 end)\n        internal\n        view\n        returns (bytes memory args)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            args := mload(0x40)\n            if iszero(lt(end, 0xffff)) { end := 0xffff }\n            let d := mul(sub(end, start), lt(start, end))\n            extcodecopy(instance, args, add(start, 0x37), add(d, 0x20))\n            if iszero(and(0xff, mload(add(args, d)))) {\n                let n := sub(extcodesize(instance), 0x57)\n                returndatacopy(returndatasize(), returndatasize(), shr(40, n))\n                d := mul(gt(n, start), sub(d, mul(gt(end, n), sub(end, n))))\n            }\n            mstore(args, d) // Store the length.\n            mstore(add(add(args, 0x20), d), 0) // Zeroize the slot after the bytes.\n            mstore(0x40, add(add(args, 0x40), d)) // Allocate memory.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      OTHER OPERATIONS                      */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns `address(0)` if the implementation address cannot be determined.\n    function implementationOf(address instance) internal view returns (address result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            for { extcodecopy(instance, 0x00, 0x00, 0x57) } 1 {} {\n                if mload(0x2d) {\n                    // ERC1967I and ERC1967IBeaconProxy detection.\n                    if or(\n                        eq(keccak256(0x00, 0x52), ERC1967I_CODE_HASH),\n                        eq(keccak256(0x00, 0x57), ERC1967I_BEACON_PROXY_CODE_HASH)\n                    ) {\n                        pop(staticcall(gas(), instance, 0x00, 0x01, 0x00, 0x20))\n                        result := mload(0x0c)\n                        break\n                    }\n                }\n                // 0age clone detection.\n                result := mload(0x0b)\n                codecopy(0x0b, codesize(), 0x14) // Zeroize the 20 bytes for the address.\n                if iszero(xor(keccak256(0x00, 0x2c), CLONE_CODE_HASH)) { break }\n                mstore(0x0b, result) // Restore the zeroized memory.\n                // CWIA detection.\n                result := mload(0x0a)\n                codecopy(0x0a, codesize(), 0x14) // Zeroize the 20 bytes for the address.\n                if iszero(xor(keccak256(0x00, 0x2d), CWIA_CODE_HASH)) { break }\n                mstore(0x0a, result) // Restore the zeroized memory.\n                // PUSH0 clone detection.\n                result := mload(0x09)\n                codecopy(0x09, codesize(), 0x14) // Zeroize the 20 bytes for the address.\n                result := shr(xor(keccak256(0x00, 0x2d), PUSH0_CLONE_CODE_HASH), result)\n                break\n            }\n            result := shr(96, result)\n            mstore(0x37, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Returns the address when a contract with initialization code hash,\n    /// `hash`, is deployed with `salt`, by `deployer`.\n    /// Note: The returned result has dirty upper 96 bits. Please clean if used in assembly.\n    function predictDeterministicAddress(bytes32 hash, bytes32 salt, address deployer)\n        internal\n        pure\n        returns (address predicted)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute and store the bytecode hash.\n            mstore8(0x00, 0xff) // Write the prefix.\n            mstore(0x35, hash)\n            mstore(0x01, shl(96, deployer))\n            mstore(0x15, salt)\n            predicted := keccak256(0x00, 0x55)\n            mstore(0x35, 0) // Restore the overwritten part of the free memory pointer.\n        }\n    }\n\n    /// @dev Requires that `salt` starts with either the zero address or `by`.\n    function checkStartsWith(bytes32 salt, address by) internal pure {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // If the salt does not start with the zero address or `by`.\n            if iszero(or(iszero(shr(96, salt)), eq(shr(96, shl(96, by)), shr(96, salt)))) {\n                mstore(0x00, 0x0c4549ef) // `SaltDoesNotStartWith()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Returns the `bytes32` at `offset` in `args`, without any bounds checks.\n    /// To load an address, you can use `address(bytes20(argLoad(args, offset)))`.\n    function argLoad(bytes memory args, uint256 offset) internal pure returns (bytes32 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := mload(add(add(args, 0x20), offset))\n        }\n    }\n}\n"},"src/interfaces/IDepositWallet.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.13;\n\nimport {Batch} from \"@deposit-wallet/src/libraries/WalletLib.sol\";\n\n/// @title IDepositWallet\n/// @author Polymarket\n/// @notice Interface for the DepositWallet proxy contract.\ninterface IDepositWallet {\n    /*--------------------------------------------------------------\n                             INITIALIZER\n    --------------------------------------------------------------*/\n\n    /// @notice Initializes the wallet with a designated owner.\n    /// @param _owner The address to set as the wallet owner.\n    function initialize(address _owner) external;\n\n    /*--------------------------------------------------------------\n                                  VIEW\n    --------------------------------------------------------------*/\n\n    /// @notice Returns the wallet's current execution nonce.\n    /// @return The current nonce.\n    function nonce() external view returns (uint256);\n\n    /// @notice Returns the timestamp at which the wallet was paused.\n    /// @return The paused timestamp, or zero if not paused.\n    function paused() external view returns (uint256);\n\n    /// @notice Returns the timestamp until which a session signer is authorized.\n    /// @param _signer The session signer address to query.\n    /// @return The authorization expiry timestamp, or zero if not authorized.\n    function sessionSignerAuthorizedUntil(address _signer) external view returns (uint256);\n\n    /// @notice Returns the unique identifier assigned to this wallet at deployment.\n    /// @return The wallet ID decoded from the ERC-1967 immutable args.\n    function id() external view returns (bytes32);\n\n    /// @notice Returns the factory contract that deployed this wallet.\n    /// @return The factory address decoded from the ERC-1967 immutable args.\n    function factory() external view returns (address);\n\n    /// @notice Returns the current owner of the wallet.\n    /// @return The owner address.\n    function owner() external view returns (address);\n\n    /// @notice Returns the pending owner awaiting handover completion.\n    /// @return The pending owner address, or `address(0)` if none.\n    function pendingOwner() external view returns (address);\n\n    /*--------------------------------------------------------------\n                             ONLY FACTORY\n    --------------------------------------------------------------*/\n\n    /// @notice Executes a signed batch of calls through the factory.\n    /// @dev Validates the batch (non-empty, correct wallet, nonce, deadline), verifies the EIP-712\n    ///      signature against the owner or an authorized session signer, then executes each call\n    ///      sequentially. Session signers are prevented from calling the wallet itself.\n    /// @param _batch The batch containing the target wallet, nonce, deadline, and calls.\n    /// @param _signature The EIP-712 signature authorizing the batch (owner or session signer).\n    function execute(Batch calldata _batch, bytes calldata _signature) external;\n\n    /*--------------------------------------------------------------\n                               ONLY SELF\n    --------------------------------------------------------------*/\n\n    /// @notice Authorizes a session signer until the specified timestamp.\n    /// @dev Can only be invoked via batch execution (self-call).\n    /// @param _sessionSigner The address to authorize as a session signer.\n    /// @param _validUntil The timestamp until which the session signer is valid.\n    function authorizeSessionSigner(address _sessionSigner, uint256 _validUntil) external;\n\n    /// @notice Revokes a session signer's authorization.\n    /// @dev Can only be invoked via batch execution (self-call).\n    /// @param _sessionSigner The session signer address to revoke.\n    function revokeSessionSigner(address _sessionSigner) external;\n\n    /// @notice Initiates a two-step ownership transfer to a new owner.\n    /// @dev Can only be invoked via batch execution (self-call).\n    /// @param _newOwner The proposed new owner address.\n    function transferOwnership(address _newOwner) external;\n\n    /// @notice Cancels any pending ownership handover.\n    /// @dev Can only be invoked via batch execution (self-call).\n    function cancelOwnershipHandover() external;\n\n    /// @notice Upgrades the wallet implementation via UUPS.\n    /// @dev Can only be invoked via batch execution (self-call).\n    ///      The new implementation must be authorized by the factory.\n    /// @param _implementation The address of the new implementation contract.\n    /// @param _data Optional calldata to execute on the new implementation after upgrade.\n    function upgrade(address _implementation, bytes calldata _data) external;\n\n    /*--------------------------------------------------------------\n                           OWNERSHIP HANDOVER\n    --------------------------------------------------------------*/\n\n    /// @notice Completes a pending ownership transfer.\n    /// @dev Permissionless — anyone may submit, but the pending owner must have signed\n    ///      an EIP-712 `OwnershipHandover` message.\n    /// @param _deadline The deadline timestamp included in the signed message.\n    /// @param _signature The EIP-712 signature from the pending owner.\n    function completeOwnershipHandover(uint256 _deadline, bytes calldata _signature) external;\n\n    /*--------------------------------------------------------------\n                               ONLY OWNER\n    --------------------------------------------------------------*/\n\n    /// @notice Pauses the wallet, recording the current timestamp.\n    /// @dev After pausing, the owner must wait for the timelock delay before calling\n    ///      paused-only functions (e.g., withdrawals, revocations).\n    function pause() external;\n\n    /// @notice Unpauses the wallet.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    function unpause() external;\n\n    /// @notice Withdraws ERC-20 tokens from the wallet.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _token The ERC-20 token address.\n    /// @param _to The recipient address.\n    /// @param _amount The amount of tokens to withdraw.\n    function withdrawERC20(address _token, address _to, uint256 _amount) external;\n\n    /// @notice Batch-withdraws ERC-1155 tokens from the wallet.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _token The ERC-1155 token address.\n    /// @param _to The recipient address.\n    /// @param _ids The token IDs to withdraw.\n    /// @param _amounts The amounts for each token ID.\n    function withdrawERC1155(\n        address _token,\n        address _to,\n        uint256[] calldata _ids,\n        uint256[] calldata _amounts\n    ) external;\n\n    /// @notice Revokes an ERC-20 allowance by setting it to zero.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _token The ERC-20 token address.\n    /// @param _spender The spender whose allowance is revoked.\n    function revokeAllowance(address _token, address _spender) external;\n\n    /// @notice Revokes an ERC-1155 operator approval.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _token The ERC-1155 token address.\n    /// @param _operator The operator whose approval is revoked.\n    function revokeApprovalForAll(address _token, address _operator) external;\n\n    /// @notice Emergency revocation of a session signer by the owner.\n    /// @dev Requires the wallet to be paused and the timelock delay to have elapsed.\n    /// @param _sessionSigner The session signer to revoke.\n    function revokeSessionSignerEmergency(address _sessionSigner) external;\n\n    /*--------------------------------------------------------------\n                                ERC1271\n    --------------------------------------------------------------*/\n\n    /// @notice Validates a signature against the wallet owner or an authorized session signer.\n    /// @param _hash The hash that was signed.\n    /// @param _signature The signature to validate (may contain a session signer wrapper).\n    /// @return result `ERC1271_MAGIC_VALUE` if the signature is valid.\n    function isValidSignature(bytes32 _hash, bytes calldata _signature)\n        external\n        view\n        returns (bytes4 result);\n}\n"},"src/libraries/SessionSignerLib.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.13;\n\n/// @dev Magic suffix bytes appended to a signature to indicate the presence of a session signer.\n/// Mirrors the ERC-6492 magic value to reuse the same detection mechanism.\nbytes32 constant SESSION_SIGNER_MAGIC_BYTES =\n    0x6492649264926492649264926492649264926492649264926492649264926492;\n\n/// @title SessionSignerLib\n/// @author Polymarket\n/// @notice Utilities for encoding and decoding session signer signatures.\n/// @dev Session signer signatures wrap a standard ECDSA signature with an address prefix\n///      and a trailing magic suffix, following the ERC-6492 envelope format.\nlibrary SessionSignerLib {\n    /// @notice Extracts the session signer address from a signature, if present.\n    /// @dev Returns `address(0)` if the signature does not contain the session signer magic suffix.\n    /// @param _signature The raw signature bytes (potentially wrapped with session signer data).\n    /// @return sessionSigner The extracted session signer address, or `address(0)` if none.\n    function extractSessionSigner(bytes calldata _signature)\n        internal\n        pure\n        returns (address sessionSigner)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Detects the ERC6492 wrapper if it exists.\n            // See: https://eips.ethereum.org/EIPS/eip-6492\n            if eq(\n                calldataload(add(_signature.offset, sub(_signature.length, 0x20))),\n                SESSION_SIGNER_MAGIC_BYTES\n            ) {\n                // the session signer is in the first 32 bytes of the signature\n                sessionSigner := calldataload(_signature.offset)\n            }\n        }\n    }\n\n    /// @notice Creates a session signer signature by wrapping an existing signature.\n    /// @dev Encodes the session signer address, a zero-bytes placeholder, the inner signature,\n    ///      and the magic suffix into a single byte array.\n    /// @param _sessionSigner The session signer address to encode.\n    /// @param _signature The inner ECDSA signature to wrap.\n    /// @return The wrapped session signer signature.\n    function getSessionSignerSignature(address _sessionSigner, bytes memory _signature)\n        internal\n        pure\n        returns (bytes memory)\n    {\n        return bytes.concat(\n            abi.encode(bytes32(uint256(uint160(_sessionSigner))), bytes32(0), _signature),\n            SESSION_SIGNER_MAGIC_BYTES\n        );\n    }\n}\n"},"lib/solady/src/accounts/ERC1271.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\nimport {EIP712} from \"../utils/EIP712.sol\";\nimport {SignatureCheckerLib} from \"../utils/SignatureCheckerLib.sol\";\n\n/// @notice ERC1271 mixin with nested EIP-712 approach.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/accounts/ERC1271.sol)\nabstract contract ERC1271 is EIP712 {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         CONSTANTS                          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev `keccak256(\"PersonalSign(bytes prefixed)\")`.\n    bytes32 internal constant _PERSONAL_SIGN_TYPEHASH =\n        0x983e65e5148e570cd828ead231ee759a8d7958721a768f93bc4483ba005c32de;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     ERC1271 OPERATIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Validates the signature with ERC1271 return,\n    /// so that this account can also be used as a signer.\n    function isValidSignature(bytes32 hash, bytes calldata signature)\n        public\n        view\n        virtual\n        returns (bytes4 result)\n    {\n        // For automatic detection that the smart account supports the nested EIP-712 workflow,\n        // See: https://eips.ethereum.org/EIPS/eip-7739.\n        // If `hash` is `0x7739...7739`, returns `bytes4(0x77390001)`.\n        // The returned number MAY be increased in future ERC7739 versions.\n        unchecked {\n            if (signature.length == uint256(0)) {\n                // Forces the compiler to optimize for smaller bytecode size.\n                if (uint256(hash) == ~signature.length / 0xffff * 0x7739) return 0x77390001;\n            }\n        }\n        bool success = _erc1271IsValidSignature(hash, _erc1271UnwrapSignature(signature));\n        /// @solidity memory-safe-assembly\n        assembly {\n            // `success ? bytes4(keccak256(\"isValidSignature(bytes32,bytes)\")) : 0xffffffff`.\n            // We use `0xffffffff` for invalid, in convention with the reference implementation.\n            result := shl(224, or(0x1626ba7e, sub(0, iszero(success))))\n        }\n    }\n\n    /// @dev Returns the ERC1271 signer.\n    /// Override to return the signer `isValidSignature` checks against.\n    function _erc1271Signer() internal view virtual returns (address);\n\n    /// @dev Returns whether the `msg.sender` is considered safe, such\n    /// that we don't need to use the nested EIP-712 workflow.\n    /// Override to return true for more callers.\n    /// See: https://mirror.xyz/curiousapple.eth/pFqAdW2LiJ-6S4sg_u1z08k4vK6BCJ33LcyXpnNb8yU\n    function _erc1271CallerIsSafe() internal view virtual returns (bool) {\n        // The canonical `MulticallerWithSigner` at 0x000000000000D9ECebf3C23529de49815Dac1c4c\n        // is known to include the account in the hash to be signed.\n        return msg.sender == 0x000000000000D9ECebf3C23529de49815Dac1c4c;\n    }\n\n    /// @dev Returns whether the `hash` and `signature` are valid.\n    /// Override if you need non-ECDSA logic.\n    function _erc1271IsValidSignatureNowCalldata(bytes32 hash, bytes calldata signature)\n        internal\n        view\n        virtual\n        returns (bool)\n    {\n        return SignatureCheckerLib.isValidSignatureNowCalldata(_erc1271Signer(), hash, signature);\n    }\n\n    /// @dev Unwraps and returns the signature.\n    function _erc1271UnwrapSignature(bytes calldata signature)\n        internal\n        view\n        virtual\n        returns (bytes calldata result)\n    {\n        result = signature;\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Unwraps the ERC6492 wrapper if it exists.\n            // See: https://eips.ethereum.org/EIPS/eip-6492\n            if eq(\n                calldataload(add(result.offset, sub(result.length, 0x20))),\n                mul(0x6492, div(not(shr(address(), address())), 0xffff)) // `0x6492...6492`.\n            ) {\n                let o := add(result.offset, calldataload(add(result.offset, 0x40)))\n                result.length := calldataload(o)\n                result.offset := add(o, 0x20)\n            }\n        }\n    }\n\n    /// @dev Returns whether the `signature` is valid for the `hash.\n    function _erc1271IsValidSignature(bytes32 hash, bytes calldata signature)\n        internal\n        view\n        virtual\n        returns (bool)\n    {\n        return _erc1271IsValidSignatureViaSafeCaller(hash, signature)\n            || _erc1271IsValidSignatureViaNestedEIP712(hash, signature)\n            || _erc1271IsValidSignatureViaRPC(hash, signature);\n    }\n\n    /// @dev Performs the signature validation without nested EIP-712 if the caller is\n    /// a safe caller. A safe caller must include the address of this account in the hash.\n    function _erc1271IsValidSignatureViaSafeCaller(bytes32 hash, bytes calldata signature)\n        internal\n        view\n        virtual\n        returns (bool result)\n    {\n        if (_erc1271CallerIsSafe()) result = _erc1271IsValidSignatureNowCalldata(hash, signature);\n    }\n\n    /// @dev ERC1271 signature validation (Nested EIP-712 workflow).\n    ///\n    /// This uses ECDSA recovery by default (see: `_erc1271IsValidSignatureNowCalldata`).\n    /// It also uses a nested EIP-712 approach to prevent signature replays when a single EOA\n    /// owns multiple smart contract accounts,\n    /// while still enabling wallet UIs (e.g. Metamask) to show the EIP-712 values.\n    ///\n    /// Crafted for phishing resistance, efficiency, flexibility.\n    /// __________________________________________________________________________________________\n    ///\n    /// Glossary:\n    ///\n    /// - `APP_DOMAIN_SEPARATOR`: The domain separator of the `hash` passed in by the application.\n    ///   Provided by the front end. Intended to be the domain separator of the contract\n    ///   that will call `isValidSignature` on this account.\n    ///\n    /// - `ACCOUNT_DOMAIN_SEPARATOR`: The domain separator of this account.\n    ///   See: `EIP712._domainSeparator()`.\n    /// __________________________________________________________________________________________\n    ///\n    /// For the `TypedDataSign` workflow, the final hash will be:\n    /// ```\n    ///     keccak256(\\x19\\x01 ‖ APP_DOMAIN_SEPARATOR ‖\n    ///         hashStruct(TypedDataSign({\n    ///             contents: hashStruct(originalStruct),\n    ///             name: keccak256(bytes(eip712Domain().name)),\n    ///             version: keccak256(bytes(eip712Domain().version)),\n    ///             chainId: eip712Domain().chainId,\n    ///             verifyingContract: eip712Domain().verifyingContract,\n    ///             salt: eip712Domain().salt\n    ///         }))\n    ///     )\n    /// ```\n    /// where `‖` denotes the concatenation operator for bytes.\n    /// The order of the fields is important: `contents` comes before `name`.\n    ///\n    /// The signature will be `r ‖ s ‖ v ‖ APP_DOMAIN_SEPARATOR ‖\n    ///     contents ‖ contentsDescription ‖ uint16(contentsDescription.length)`,\n    /// where:\n    /// - `contents` is the bytes32 struct hash of the original struct.\n    /// - `contentsDescription` can be either:\n    ///     a) `contentsType` (implicit mode)\n    ///         where `contentsType` starts with `contentsName`.\n    ///     b) `contentsType ‖ contentsName` (explicit mode)\n    ///         where `contentsType` may not necessarily start with `contentsName`.\n    ///\n    /// The `APP_DOMAIN_SEPARATOR` and `contents` will be used to verify if `hash` is indeed correct.\n    /// __________________________________________________________________________________________\n    ///\n    /// For the `PersonalSign` workflow, the final hash will be:\n    /// ```\n    ///     keccak256(\\x19\\x01 ‖ ACCOUNT_DOMAIN_SEPARATOR ‖\n    ///         hashStruct(PersonalSign({\n    ///             prefixed: keccak256(bytes(\\x19Ethereum Signed Message:\\n ‖\n    ///                 base10(bytes(someString).length) ‖ someString))\n    ///         }))\n    ///     )\n    /// ```\n    /// where `‖` denotes the concatenation operator for bytes.\n    ///\n    /// The `PersonalSign` type hash will be `keccak256(\"PersonalSign(bytes prefixed)\")`.\n    /// The signature will be `r ‖ s ‖ v`.\n    /// __________________________________________________________________________________________\n    ///\n    /// For demo and typescript code, see:\n    /// - https://github.com/junomonster/nested-eip-712\n    /// - https://github.com/frangio/eip712-wrapper-for-eip1271\n    ///\n    /// Their nomenclature may differ from ours, although the high-level idea is similar.\n    ///\n    /// Of course, if you have control over the codebase of the wallet client(s) too,\n    /// you can choose a more minimalistic signature scheme like\n    /// `keccak256(abi.encode(address(this), hash))` instead of all these acrobatics.\n    /// All these are just for widespread out-of-the-box compatibility with other wallet clients.\n    /// We want to create bazaars, not walled castles.\n    /// And we'll use push the Turing Completeness of the EVM to the limits to do so.\n    function _erc1271IsValidSignatureViaNestedEIP712(bytes32 hash, bytes calldata signature)\n        internal\n        view\n        virtual\n        returns (bool result)\n    {\n        uint256 t = uint256(uint160(address(this)));\n        // Forces the compiler to pop the variables after the scope, avoiding stack-too-deep.\n        if (t != uint256(0)) {\n            (\n                ,\n                string memory name,\n                string memory version,\n                uint256 chainId,\n                address verifyingContract,\n                bytes32 salt,\n            ) = eip712Domain();\n            /// @solidity memory-safe-assembly\n            assembly {\n                t := mload(0x40) // Grab the free memory pointer.\n                // Skip 2 words for the `typedDataSignTypehash` and `contents` struct hash.\n                mstore(add(t, 0x40), keccak256(add(name, 0x20), mload(name)))\n                mstore(add(t, 0x60), keccak256(add(version, 0x20), mload(version)))\n                mstore(add(t, 0x80), chainId)\n                mstore(add(t, 0xa0), shr(96, shl(96, verifyingContract)))\n                mstore(add(t, 0xc0), salt)\n                mstore(0x40, add(t, 0xe0)) // Allocate the memory.\n            }\n        }\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            // `c` is `contentsDescription.length`, which is stored in the last 2 bytes of the signature.\n            let c := shr(240, calldataload(add(signature.offset, sub(signature.length, 2))))\n            for {} 1 {} {\n                let l := add(0x42, c) // Total length of appended data (32 + 32 + c + 2).\n                let o := add(signature.offset, sub(signature.length, l)) // Offset of appended data.\n                mstore(0x00, 0x1901) // Store the \"\\x19\\x01\" prefix.\n                calldatacopy(0x20, o, 0x40) // Copy the `APP_DOMAIN_SEPARATOR` and `contents` struct hash.\n                // Use the `PersonalSign` workflow if the reconstructed hash doesn't match,\n                // or if the appended data is invalid, i.e.\n                // `appendedData.length > signature.length || contentsDescription.length == 0`.\n                if or(xor(keccak256(0x1e, 0x42), hash), or(lt(signature.length, l), iszero(c))) {\n                    t := 0 // Set `t` to 0, denoting that we need to `hash = _hashTypedData(hash)`.\n                    mstore(t, _PERSONAL_SIGN_TYPEHASH)\n                    mstore(0x20, hash) // Store the `prefixed`.\n                    hash := keccak256(t, 0x40) // Compute the `PersonalSign` struct hash.\n                    break\n                }\n                // Else, use the `TypedDataSign` workflow.\n                // `TypedDataSign({ContentsName} contents,string name,...){ContentsType}`.\n                mstore(m, \"TypedDataSign(\") // Store the start of `TypedDataSign`'s type encoding.\n                let p := add(m, 0x0e) // Advance 14 bytes to skip \"TypedDataSign(\".\n                calldatacopy(p, add(o, 0x40), c) // Copy `contentsName`, optimistically.\n                mstore(add(p, c), 40) // Store a '(' after the end.\n                if iszero(eq(byte(0, mload(sub(add(p, c), 1))), 41)) {\n                    let e := 0 // Length of `contentsName` in explicit mode.\n                    for { let q := sub(add(p, c), 1) } 1 {} {\n                        e := add(e, 1) // Scan backwards until we encounter a ')'.\n                        if iszero(gt(lt(e, c), eq(byte(0, mload(sub(q, e))), 41))) { break }\n                    }\n                    c := sub(c, e) // Truncate `contentsDescription` to `contentsType`.\n                    calldatacopy(p, add(add(o, 0x40), c), e) // Copy `contentsName`.\n                    mstore8(add(p, e), 40) // Store a '(' exactly right after the end.\n                }\n                // `d & 1 == 1` means that `contentsName` is invalid.\n                let d := shr(byte(0, mload(p)), 0x7fffffe000000000000010000000000) // Starts with `[a-z(]`.\n                // Advance `p` until we encounter '('.\n                for {} iszero(eq(byte(0, mload(p)), 40)) { p := add(p, 1) } {\n                    d := or(shr(byte(0, mload(p)), 0x120100000001), d) // Has a byte in \", )\\x00\".\n                }\n                mstore(p, \" contents,string name,string\") // Store the rest of the encoding.\n                mstore(add(p, 0x1c), \" version,uint256 chainId,address\")\n                mstore(add(p, 0x3c), \" verifyingContract,bytes32 salt)\")\n                p := add(p, 0x5c)\n                calldatacopy(p, add(o, 0x40), c) // Copy `contentsType`.\n                // Fill in the missing fields of the `TypedDataSign`.\n                calldatacopy(t, o, 0x40) // Copy the `contents` struct hash to `add(t, 0x20)`.\n                mstore(t, keccak256(m, sub(add(p, c), m))) // Store `typedDataSignTypehash`.\n                // The \"\\x19\\x01\" prefix is already at 0x00.\n                // `APP_DOMAIN_SEPARATOR` is already at 0x20.\n                mstore(0x40, keccak256(t, 0xe0)) // `hashStruct(typedDataSign)`.\n                // Compute the final hash, corrupted if `contentsName` is invalid.\n                hash := keccak256(0x1e, add(0x42, and(1, d)))\n                signature.length := sub(signature.length, l) // Truncate the signature.\n                break\n            }\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n        if (t == uint256(0)) hash = _hashTypedData(hash); // `PersonalSign` workflow.\n        result = _erc1271IsValidSignatureNowCalldata(hash, signature);\n    }\n\n    /// @dev Performs the signature validation without nested EIP-712 to allow for easy sign ins.\n    /// This function must always return false or revert if called on-chain.\n    function _erc1271IsValidSignatureViaRPC(bytes32 hash, bytes calldata signature)\n        internal\n        view\n        virtual\n        returns (bool result)\n    {\n        // Non-zero gasprice is a heuristic to check if a call is on-chain,\n        // but we can't fully depend on it because it can be manipulated.\n        // See: https://x.com/NoahCitron/status/1580359718341484544\n        if (tx.gasprice == uint256(0)) {\n            /// @solidity memory-safe-assembly\n            assembly {\n                mstore(gasprice(), gasprice())\n                // See: https://gist.github.com/Vectorized/3c9b63524d57492b265454f62d895f71\n                let b := 0x000000000000378eDCD5B5B0A24f5342d8C10485 // Basefee contract,\n                pop(staticcall(0xffff, b, codesize(), gasprice(), gasprice(), 0x20))\n                // If `gasprice < basefee`, the call cannot be on-chain, and we can skip the gas burn.\n                if iszero(mload(gasprice())) {\n                    let m := mload(0x40) // Cache the free memory pointer.\n                    mstore(gasprice(), 0x1626ba7e) // `isValidSignature(bytes32,bytes)`.\n                    mstore(0x20, b) // Recycle `b` to denote if we need to burn gas.\n                    mstore(0x40, 0x40)\n                    let gasToBurn := or(add(0xffff, gaslimit()), gaslimit())\n                    // Burns gas computationally efficiently. Also, requires that `gas > gasToBurn`.\n                    if or(eq(hash, b), lt(gas(), gasToBurn)) { invalid() }\n                    // Make a call to this with `b`, efficiently burning the gas provided.\n                    // No valid transaction can consume more than the gaslimit.\n                    // See: https://ethereum.github.io/yellowpaper/paper.pdf\n                    // Most RPCs perform calls with a gas budget greater than the gaslimit.\n                    pop(staticcall(gasToBurn, address(), 0x1c, 0x64, gasprice(), gasprice()))\n                    mstore(0x40, m) // Restore the free memory pointer.\n                }\n            }\n            result = _erc1271IsValidSignatureNowCalldata(hash, signature);\n        }\n    }\n}\n"},"lib/solady/src/accounts/Receiver.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Receiver mixin for ETH and safe-transferred ERC721 and ERC1155 tokens.\n/// @author Solady (https://github.com/Vectorized/solady/blob/main/src/accounts/Receiver.sol)\n///\n/// @dev Note:\n/// - Handles all ERC721 and ERC1155 token safety callbacks.\n/// - Collapses function table gas overhead and code size.\n/// - Utilizes fallback so unknown calldata will pass on.\nabstract contract Receiver {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The function selector is not recognized.\n    error FnSelectorNotRecognized();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     RECEIVE / FALLBACK                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev For receiving ETH.\n    receive() external payable virtual {}\n\n    /// @dev Fallback function with the `receiverFallback` modifier.\n    fallback() external payable virtual receiverFallback {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, 0x3c10b94e) // `FnSelectorNotRecognized()`.\n            revert(0x1c, 0x04)\n        }\n    }\n\n    /// @dev Modifier for the fallback function to handle token callbacks.\n    modifier receiverFallback() virtual {\n        _beforeReceiverFallbackBody();\n        if (_useReceiverFallbackBody()) {\n            /// @solidity memory-safe-assembly\n            assembly {\n                let s := shr(224, calldataload(0))\n                // 0x150b7a02: `onERC721Received(address,address,uint256,bytes)`.\n                // 0xf23a6e61: `onERC1155Received(address,address,uint256,uint256,bytes)`.\n                // 0xbc197c81: `onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)`.\n                if or(eq(s, 0x150b7a02), or(eq(s, 0xf23a6e61), eq(s, 0xbc197c81))) {\n                    // Assumes `mload(0x40) <= 0xffffffff` to save gas on cleaning lower bytes.\n                    mstore(0x20, s) // Store `msg.sig`.\n                    return(0x3c, 0x20) // Return `msg.sig`.\n                }\n            }\n        }\n        _afterReceiverFallbackBody();\n        _;\n    }\n\n    /// @dev Whether we want to use the body of the `receiverFallback` modifier.\n    function _useReceiverFallbackBody() internal view virtual returns (bool) {\n        return true;\n    }\n\n    /// @dev Called before the body of the `receiverFallback` modifier.\n    function _beforeReceiverFallbackBody() internal virtual {}\n\n    /// @dev Called after the body of the `receiverFallback` modifier.\n    function _afterReceiverFallbackBody() internal virtual {}\n}\n"},"lib/solady/src/auth/OwnableRoles.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\nimport {Ownable} from \"./Ownable.sol\";\n\n/// @notice Simple single owner and multiroles authorization mixin.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/auth/OwnableRoles.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 OwnableRoles is Ownable {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                           EVENTS                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The `user`'s roles is updated to `roles`.\n    /// Each bit of `roles` represents whether the role is set.\n    event RolesUpdated(address indexed user, uint256 indexed roles);\n\n    /// @dev `keccak256(bytes(\"RolesUpdated(address,uint256)\"))`.\n    uint256 private constant _ROLES_UPDATED_EVENT_SIGNATURE =\n        0x715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe26;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                          STORAGE                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The role slot of `user` is given by:\n    /// ```\n    ///     mstore(0x00, or(shl(96, user), _ROLE_SLOT_SEED))\n    ///     let roleSlot := keccak256(0x00, 0x20)\n    /// ```\n    /// This automatically ignores the upper bits of the `user` in case\n    /// they are not clean, as well as keep the `keccak256` under 32-bytes.\n    ///\n    /// Note: This is equivalent to `uint32(bytes4(keccak256(\"_OWNER_SLOT_NOT\")))`.\n    uint256 private constant _ROLE_SLOT_SEED = 0x8b78c6d8;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     INTERNAL FUNCTIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Overwrite the roles directly without authorization guard.\n    function _setRoles(address user, uint256 roles) internal virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x0c, _ROLE_SLOT_SEED)\n            mstore(0x00, user)\n            // Store the new value.\n            sstore(keccak256(0x0c, 0x20), roles)\n            // Emit the {RolesUpdated} event.\n            log3(0, 0, _ROLES_UPDATED_EVENT_SIGNATURE, shr(96, mload(0x0c)), roles)\n        }\n    }\n\n    /// @dev Updates the roles directly without authorization guard.\n    /// If `on` is true, each set bit of `roles` will be turned on,\n    /// otherwise, each set bit of `roles` will be turned off.\n    function _updateRoles(address user, uint256 roles, bool on) internal virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x0c, _ROLE_SLOT_SEED)\n            mstore(0x00, user)\n            let roleSlot := keccak256(0x0c, 0x20)\n            // Load the current value.\n            let current := sload(roleSlot)\n            // Compute the updated roles if `on` is true.\n            let updated := or(current, roles)\n            // Compute the updated roles if `on` is false.\n            // Use `and` to compute the intersection of `current` and `roles`,\n            // `xor` it with `current` to flip the bits in the intersection.\n            if iszero(on) { updated := xor(current, and(current, roles)) }\n            // Then, store the new value.\n            sstore(roleSlot, updated)\n            // Emit the {RolesUpdated} event.\n            log3(0, 0, _ROLES_UPDATED_EVENT_SIGNATURE, shr(96, mload(0x0c)), updated)\n        }\n    }\n\n    /// @dev Grants the roles directly without authorization guard.\n    /// Each bit of `roles` represents the role to turn on.\n    function _grantRoles(address user, uint256 roles) internal virtual {\n        _updateRoles(user, roles, true);\n    }\n\n    /// @dev Removes the roles directly without authorization guard.\n    /// Each bit of `roles` represents the role to turn off.\n    function _removeRoles(address user, uint256 roles) internal virtual {\n        _updateRoles(user, roles, false);\n    }\n\n    /// @dev Throws if the sender does not have any of the `roles`.\n    function _checkRoles(uint256 roles) internal view virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute the role slot.\n            mstore(0x0c, _ROLE_SLOT_SEED)\n            mstore(0x00, caller())\n            // Load the stored value, and if the `and` intersection\n            // of the value and `roles` is zero, revert.\n            if iszero(and(sload(keccak256(0x0c, 0x20)), roles)) {\n                mstore(0x00, 0x82b42900) // `Unauthorized()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Throws if the sender is not the owner,\n    /// and does not have any of the `roles`.\n    /// Checks for ownership first, then lazily checks for roles.\n    function _checkOwnerOrRoles(uint256 roles) internal view virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // If the caller is not the stored owner.\n            // Note: `_ROLE_SLOT_SEED` is equal to `_OWNER_SLOT_NOT`.\n            if iszero(eq(caller(), sload(not(_ROLE_SLOT_SEED)))) {\n                // Compute the role slot.\n                mstore(0x0c, _ROLE_SLOT_SEED)\n                mstore(0x00, caller())\n                // Load the stored value, and if the `and` intersection\n                // of the value and `roles` is zero, revert.\n                if iszero(and(sload(keccak256(0x0c, 0x20)), roles)) {\n                    mstore(0x00, 0x82b42900) // `Unauthorized()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n        }\n    }\n\n    /// @dev Throws if the sender does not have any of the `roles`,\n    /// and is not the owner.\n    /// Checks for roles first, then lazily checks for ownership.\n    function _checkRolesOrOwner(uint256 roles) internal view virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute the role slot.\n            mstore(0x0c, _ROLE_SLOT_SEED)\n            mstore(0x00, caller())\n            // Load the stored value, and if the `and` intersection\n            // of the value and `roles` is zero, revert.\n            if iszero(and(sload(keccak256(0x0c, 0x20)), roles)) {\n                // If the caller is not the stored owner.\n                // Note: `_ROLE_SLOT_SEED` is equal to `_OWNER_SLOT_NOT`.\n                if iszero(eq(caller(), sload(not(_ROLE_SLOT_SEED)))) {\n                    mstore(0x00, 0x82b42900) // `Unauthorized()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n        }\n    }\n\n    /// @dev Convenience function to return a `roles` bitmap from an array of `ordinals`.\n    /// This is meant for frontends like Etherscan, and is therefore not fully optimized.\n    /// Not recommended to be called on-chain.\n    /// Made internal to conserve bytecode. Wrap it in a public function if needed.\n    function _rolesFromOrdinals(uint8[] memory ordinals) internal pure returns (uint256 roles) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            for { let i := shl(5, mload(ordinals)) } i { i := sub(i, 0x20) } {\n                // We don't need to mask the values of `ordinals`, as Solidity\n                // cleans dirty upper bits when storing variables into memory.\n                roles := or(shl(mload(add(ordinals, i)), 1), roles)\n            }\n        }\n    }\n\n    /// @dev Convenience function to return an array of `ordinals` from the `roles` bitmap.\n    /// This is meant for frontends like Etherscan, and is therefore not fully optimized.\n    /// Not recommended to be called on-chain.\n    /// Made internal to conserve bytecode. Wrap it in a public function if needed.\n    function _ordinalsFromRoles(uint256 roles) internal pure returns (uint8[] memory ordinals) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Grab the pointer to the free memory.\n            ordinals := mload(0x40)\n            let ptr := add(ordinals, 0x20)\n            let o := 0\n            // The absence of lookup tables, De Bruijn, etc., here is intentional for\n            // smaller bytecode, as this function is not meant to be called on-chain.\n            for { let t := roles } 1 {} {\n                mstore(ptr, o)\n                // `shr` 5 is equivalent to multiplying by 0x20.\n                // Push back into the ordinals array if the bit is set.\n                ptr := add(ptr, shl(5, and(t, 1)))\n                o := add(o, 1)\n                t := shr(o, roles)\n                if iszero(t) { break }\n            }\n            // Store the length of `ordinals`.\n            mstore(ordinals, shr(5, sub(ptr, add(ordinals, 0x20))))\n            // Allocate the memory.\n            mstore(0x40, ptr)\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                  PUBLIC UPDATE FUNCTIONS                   */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Allows the owner to grant `user` `roles`.\n    /// If the `user` already has a role, then it will be an no-op for the role.\n    function grantRoles(address user, uint256 roles) public payable virtual onlyOwner {\n        _grantRoles(user, roles);\n    }\n\n    /// @dev Allows the owner to remove `user` `roles`.\n    /// If the `user` does not have a role, then it will be an no-op for the role.\n    function revokeRoles(address user, uint256 roles) public payable virtual onlyOwner {\n        _removeRoles(user, roles);\n    }\n\n    /// @dev Allow the caller to remove their own roles.\n    /// If the caller does not have a role, then it will be an no-op for the role.\n    function renounceRoles(uint256 roles) public payable virtual {\n        _removeRoles(msg.sender, roles);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                   PUBLIC READ FUNCTIONS                    */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns the roles of `user`.\n    function rolesOf(address user) public view virtual returns (uint256 roles) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute the role slot.\n            mstore(0x0c, _ROLE_SLOT_SEED)\n            mstore(0x00, user)\n            // Load the stored value.\n            roles := sload(keccak256(0x0c, 0x20))\n        }\n    }\n\n    /// @dev Returns whether `user` has any of `roles`.\n    function hasAnyRole(address user, uint256 roles) public view virtual returns (bool) {\n        return rolesOf(user) & roles != 0;\n    }\n\n    /// @dev Returns whether `user` has all of `roles`.\n    function hasAllRoles(address user, uint256 roles) public view virtual returns (bool) {\n        return rolesOf(user) & roles == roles;\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         MODIFIERS                          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Marks a function as only callable by an account with `roles`.\n    modifier onlyRoles(uint256 roles) virtual {\n        _checkRoles(roles);\n        _;\n    }\n\n    /// @dev Marks a function as only callable by the owner or by an account\n    /// with `roles`. Checks for ownership first, then lazily checks for roles.\n    modifier onlyOwnerOrRoles(uint256 roles) virtual {\n        _checkOwnerOrRoles(roles);\n        _;\n    }\n\n    /// @dev Marks a function as only callable by an account with `roles`\n    /// or the owner. Checks for roles first, then lazily checks for ownership.\n    modifier onlyRolesOrOwner(uint256 roles) virtual {\n        _checkRolesOrOwner(roles);\n        _;\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       ROLE CONSTANTS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // IYKYK\n\n    uint256 internal constant _ROLE_0 = 1 << 0;\n    uint256 internal constant _ROLE_1 = 1 << 1;\n    uint256 internal constant _ROLE_2 = 1 << 2;\n    uint256 internal constant _ROLE_3 = 1 << 3;\n    uint256 internal constant _ROLE_4 = 1 << 4;\n    uint256 internal constant _ROLE_5 = 1 << 5;\n    uint256 internal constant _ROLE_6 = 1 << 6;\n    uint256 internal constant _ROLE_7 = 1 << 7;\n    uint256 internal constant _ROLE_8 = 1 << 8;\n    uint256 internal constant _ROLE_9 = 1 << 9;\n    uint256 internal constant _ROLE_10 = 1 << 10;\n    uint256 internal constant _ROLE_11 = 1 << 11;\n    uint256 internal constant _ROLE_12 = 1 << 12;\n    uint256 internal constant _ROLE_13 = 1 << 13;\n    uint256 internal constant _ROLE_14 = 1 << 14;\n    uint256 internal constant _ROLE_15 = 1 << 15;\n    uint256 internal constant _ROLE_16 = 1 << 16;\n    uint256 internal constant _ROLE_17 = 1 << 17;\n    uint256 internal constant _ROLE_18 = 1 << 18;\n    uint256 internal constant _ROLE_19 = 1 << 19;\n    uint256 internal constant _ROLE_20 = 1 << 20;\n    uint256 internal constant _ROLE_21 = 1 << 21;\n    uint256 internal constant _ROLE_22 = 1 << 22;\n    uint256 internal constant _ROLE_23 = 1 << 23;\n    uint256 internal constant _ROLE_24 = 1 << 24;\n    uint256 internal constant _ROLE_25 = 1 << 25;\n    uint256 internal constant _ROLE_26 = 1 << 26;\n    uint256 internal constant _ROLE_27 = 1 << 27;\n    uint256 internal constant _ROLE_28 = 1 << 28;\n    uint256 internal constant _ROLE_29 = 1 << 29;\n    uint256 internal constant _ROLE_30 = 1 << 30;\n    uint256 internal constant _ROLE_31 = 1 << 31;\n    uint256 internal constant _ROLE_32 = 1 << 32;\n    uint256 internal constant _ROLE_33 = 1 << 33;\n    uint256 internal constant _ROLE_34 = 1 << 34;\n    uint256 internal constant _ROLE_35 = 1 << 35;\n    uint256 internal constant _ROLE_36 = 1 << 36;\n    uint256 internal constant _ROLE_37 = 1 << 37;\n    uint256 internal constant _ROLE_38 = 1 << 38;\n    uint256 internal constant _ROLE_39 = 1 << 39;\n    uint256 internal constant _ROLE_40 = 1 << 40;\n    uint256 internal constant _ROLE_41 = 1 << 41;\n    uint256 internal constant _ROLE_42 = 1 << 42;\n    uint256 internal constant _ROLE_43 = 1 << 43;\n    uint256 internal constant _ROLE_44 = 1 << 44;\n    uint256 internal constant _ROLE_45 = 1 << 45;\n    uint256 internal constant _ROLE_46 = 1 << 46;\n    uint256 internal constant _ROLE_47 = 1 << 47;\n    uint256 internal constant _ROLE_48 = 1 << 48;\n    uint256 internal constant _ROLE_49 = 1 << 49;\n    uint256 internal constant _ROLE_50 = 1 << 50;\n    uint256 internal constant _ROLE_51 = 1 << 51;\n    uint256 internal constant _ROLE_52 = 1 << 52;\n    uint256 internal constant _ROLE_53 = 1 << 53;\n    uint256 internal constant _ROLE_54 = 1 << 54;\n    uint256 internal constant _ROLE_55 = 1 << 55;\n    uint256 internal constant _ROLE_56 = 1 << 56;\n    uint256 internal constant _ROLE_57 = 1 << 57;\n    uint256 internal constant _ROLE_58 = 1 << 58;\n    uint256 internal constant _ROLE_59 = 1 << 59;\n    uint256 internal constant _ROLE_60 = 1 << 60;\n    uint256 internal constant _ROLE_61 = 1 << 61;\n    uint256 internal constant _ROLE_62 = 1 << 62;\n    uint256 internal constant _ROLE_63 = 1 << 63;\n    uint256 internal constant _ROLE_64 = 1 << 64;\n    uint256 internal constant _ROLE_65 = 1 << 65;\n    uint256 internal constant _ROLE_66 = 1 << 66;\n    uint256 internal constant _ROLE_67 = 1 << 67;\n    uint256 internal constant _ROLE_68 = 1 << 68;\n    uint256 internal constant _ROLE_69 = 1 << 69;\n    uint256 internal constant _ROLE_70 = 1 << 70;\n    uint256 internal constant _ROLE_71 = 1 << 71;\n    uint256 internal constant _ROLE_72 = 1 << 72;\n    uint256 internal constant _ROLE_73 = 1 << 73;\n    uint256 internal constant _ROLE_74 = 1 << 74;\n    uint256 internal constant _ROLE_75 = 1 << 75;\n    uint256 internal constant _ROLE_76 = 1 << 76;\n    uint256 internal constant _ROLE_77 = 1 << 77;\n    uint256 internal constant _ROLE_78 = 1 << 78;\n    uint256 internal constant _ROLE_79 = 1 << 79;\n    uint256 internal constant _ROLE_80 = 1 << 80;\n    uint256 internal constant _ROLE_81 = 1 << 81;\n    uint256 internal constant _ROLE_82 = 1 << 82;\n    uint256 internal constant _ROLE_83 = 1 << 83;\n    uint256 internal constant _ROLE_84 = 1 << 84;\n    uint256 internal constant _ROLE_85 = 1 << 85;\n    uint256 internal constant _ROLE_86 = 1 << 86;\n    uint256 internal constant _ROLE_87 = 1 << 87;\n    uint256 internal constant _ROLE_88 = 1 << 88;\n    uint256 internal constant _ROLE_89 = 1 << 89;\n    uint256 internal constant _ROLE_90 = 1 << 90;\n    uint256 internal constant _ROLE_91 = 1 << 91;\n    uint256 internal constant _ROLE_92 = 1 << 92;\n    uint256 internal constant _ROLE_93 = 1 << 93;\n    uint256 internal constant _ROLE_94 = 1 << 94;\n    uint256 internal constant _ROLE_95 = 1 << 95;\n    uint256 internal constant _ROLE_96 = 1 << 96;\n    uint256 internal constant _ROLE_97 = 1 << 97;\n    uint256 internal constant _ROLE_98 = 1 << 98;\n    uint256 internal constant _ROLE_99 = 1 << 99;\n    uint256 internal constant _ROLE_100 = 1 << 100;\n    uint256 internal constant _ROLE_101 = 1 << 101;\n    uint256 internal constant _ROLE_102 = 1 << 102;\n    uint256 internal constant _ROLE_103 = 1 << 103;\n    uint256 internal constant _ROLE_104 = 1 << 104;\n    uint256 internal constant _ROLE_105 = 1 << 105;\n    uint256 internal constant _ROLE_106 = 1 << 106;\n    uint256 internal constant _ROLE_107 = 1 << 107;\n    uint256 internal constant _ROLE_108 = 1 << 108;\n    uint256 internal constant _ROLE_109 = 1 << 109;\n    uint256 internal constant _ROLE_110 = 1 << 110;\n    uint256 internal constant _ROLE_111 = 1 << 111;\n    uint256 internal constant _ROLE_112 = 1 << 112;\n    uint256 internal constant _ROLE_113 = 1 << 113;\n    uint256 internal constant _ROLE_114 = 1 << 114;\n    uint256 internal constant _ROLE_115 = 1 << 115;\n    uint256 internal constant _ROLE_116 = 1 << 116;\n    uint256 internal constant _ROLE_117 = 1 << 117;\n    uint256 internal constant _ROLE_118 = 1 << 118;\n    uint256 internal constant _ROLE_119 = 1 << 119;\n    uint256 internal constant _ROLE_120 = 1 << 120;\n    uint256 internal constant _ROLE_121 = 1 << 121;\n    uint256 internal constant _ROLE_122 = 1 << 122;\n    uint256 internal constant _ROLE_123 = 1 << 123;\n    uint256 internal constant _ROLE_124 = 1 << 124;\n    uint256 internal constant _ROLE_125 = 1 << 125;\n    uint256 internal constant _ROLE_126 = 1 << 126;\n    uint256 internal constant _ROLE_127 = 1 << 127;\n    uint256 internal constant _ROLE_128 = 1 << 128;\n    uint256 internal constant _ROLE_129 = 1 << 129;\n    uint256 internal constant _ROLE_130 = 1 << 130;\n    uint256 internal constant _ROLE_131 = 1 << 131;\n    uint256 internal constant _ROLE_132 = 1 << 132;\n    uint256 internal constant _ROLE_133 = 1 << 133;\n    uint256 internal constant _ROLE_134 = 1 << 134;\n    uint256 internal constant _ROLE_135 = 1 << 135;\n    uint256 internal constant _ROLE_136 = 1 << 136;\n    uint256 internal constant _ROLE_137 = 1 << 137;\n    uint256 internal constant _ROLE_138 = 1 << 138;\n    uint256 internal constant _ROLE_139 = 1 << 139;\n    uint256 internal constant _ROLE_140 = 1 << 140;\n    uint256 internal constant _ROLE_141 = 1 << 141;\n    uint256 internal constant _ROLE_142 = 1 << 142;\n    uint256 internal constant _ROLE_143 = 1 << 143;\n    uint256 internal constant _ROLE_144 = 1 << 144;\n    uint256 internal constant _ROLE_145 = 1 << 145;\n    uint256 internal constant _ROLE_146 = 1 << 146;\n    uint256 internal constant _ROLE_147 = 1 << 147;\n    uint256 internal constant _ROLE_148 = 1 << 148;\n    uint256 internal constant _ROLE_149 = 1 << 149;\n    uint256 internal constant _ROLE_150 = 1 << 150;\n    uint256 internal constant _ROLE_151 = 1 << 151;\n    uint256 internal constant _ROLE_152 = 1 << 152;\n    uint256 internal constant _ROLE_153 = 1 << 153;\n    uint256 internal constant _ROLE_154 = 1 << 154;\n    uint256 internal constant _ROLE_155 = 1 << 155;\n    uint256 internal constant _ROLE_156 = 1 << 156;\n    uint256 internal constant _ROLE_157 = 1 << 157;\n    uint256 internal constant _ROLE_158 = 1 << 158;\n    uint256 internal constant _ROLE_159 = 1 << 159;\n    uint256 internal constant _ROLE_160 = 1 << 160;\n    uint256 internal constant _ROLE_161 = 1 << 161;\n    uint256 internal constant _ROLE_162 = 1 << 162;\n    uint256 internal constant _ROLE_163 = 1 << 163;\n    uint256 internal constant _ROLE_164 = 1 << 164;\n    uint256 internal constant _ROLE_165 = 1 << 165;\n    uint256 internal constant _ROLE_166 = 1 << 166;\n    uint256 internal constant _ROLE_167 = 1 << 167;\n    uint256 internal constant _ROLE_168 = 1 << 168;\n    uint256 internal constant _ROLE_169 = 1 << 169;\n    uint256 internal constant _ROLE_170 = 1 << 170;\n    uint256 internal constant _ROLE_171 = 1 << 171;\n    uint256 internal constant _ROLE_172 = 1 << 172;\n    uint256 internal constant _ROLE_173 = 1 << 173;\n    uint256 internal constant _ROLE_174 = 1 << 174;\n    uint256 internal constant _ROLE_175 = 1 << 175;\n    uint256 internal constant _ROLE_176 = 1 << 176;\n    uint256 internal constant _ROLE_177 = 1 << 177;\n    uint256 internal constant _ROLE_178 = 1 << 178;\n    uint256 internal constant _ROLE_179 = 1 << 179;\n    uint256 internal constant _ROLE_180 = 1 << 180;\n    uint256 internal constant _ROLE_181 = 1 << 181;\n    uint256 internal constant _ROLE_182 = 1 << 182;\n    uint256 internal constant _ROLE_183 = 1 << 183;\n    uint256 internal constant _ROLE_184 = 1 << 184;\n    uint256 internal constant _ROLE_185 = 1 << 185;\n    uint256 internal constant _ROLE_186 = 1 << 186;\n    uint256 internal constant _ROLE_187 = 1 << 187;\n    uint256 internal constant _ROLE_188 = 1 << 188;\n    uint256 internal constant _ROLE_189 = 1 << 189;\n    uint256 internal constant _ROLE_190 = 1 << 190;\n    uint256 internal constant _ROLE_191 = 1 << 191;\n    uint256 internal constant _ROLE_192 = 1 << 192;\n    uint256 internal constant _ROLE_193 = 1 << 193;\n    uint256 internal constant _ROLE_194 = 1 << 194;\n    uint256 internal constant _ROLE_195 = 1 << 195;\n    uint256 internal constant _ROLE_196 = 1 << 196;\n    uint256 internal constant _ROLE_197 = 1 << 197;\n    uint256 internal constant _ROLE_198 = 1 << 198;\n    uint256 internal constant _ROLE_199 = 1 << 199;\n    uint256 internal constant _ROLE_200 = 1 << 200;\n    uint256 internal constant _ROLE_201 = 1 << 201;\n    uint256 internal constant _ROLE_202 = 1 << 202;\n    uint256 internal constant _ROLE_203 = 1 << 203;\n    uint256 internal constant _ROLE_204 = 1 << 204;\n    uint256 internal constant _ROLE_205 = 1 << 205;\n    uint256 internal constant _ROLE_206 = 1 << 206;\n    uint256 internal constant _ROLE_207 = 1 << 207;\n    uint256 internal constant _ROLE_208 = 1 << 208;\n    uint256 internal constant _ROLE_209 = 1 << 209;\n    uint256 internal constant _ROLE_210 = 1 << 210;\n    uint256 internal constant _ROLE_211 = 1 << 211;\n    uint256 internal constant _ROLE_212 = 1 << 212;\n    uint256 internal constant _ROLE_213 = 1 << 213;\n    uint256 internal constant _ROLE_214 = 1 << 214;\n    uint256 internal constant _ROLE_215 = 1 << 215;\n    uint256 internal constant _ROLE_216 = 1 << 216;\n    uint256 internal constant _ROLE_217 = 1 << 217;\n    uint256 internal constant _ROLE_218 = 1 << 218;\n    uint256 internal constant _ROLE_219 = 1 << 219;\n    uint256 internal constant _ROLE_220 = 1 << 220;\n    uint256 internal constant _ROLE_221 = 1 << 221;\n    uint256 internal constant _ROLE_222 = 1 << 222;\n    uint256 internal constant _ROLE_223 = 1 << 223;\n    uint256 internal constant _ROLE_224 = 1 << 224;\n    uint256 internal constant _ROLE_225 = 1 << 225;\n    uint256 internal constant _ROLE_226 = 1 << 226;\n    uint256 internal constant _ROLE_227 = 1 << 227;\n    uint256 internal constant _ROLE_228 = 1 << 228;\n    uint256 internal constant _ROLE_229 = 1 << 229;\n    uint256 internal constant _ROLE_230 = 1 << 230;\n    uint256 internal constant _ROLE_231 = 1 << 231;\n    uint256 internal constant _ROLE_232 = 1 << 232;\n    uint256 internal constant _ROLE_233 = 1 << 233;\n    uint256 internal constant _ROLE_234 = 1 << 234;\n    uint256 internal constant _ROLE_235 = 1 << 235;\n    uint256 internal constant _ROLE_236 = 1 << 236;\n    uint256 internal constant _ROLE_237 = 1 << 237;\n    uint256 internal constant _ROLE_238 = 1 << 238;\n    uint256 internal constant _ROLE_239 = 1 << 239;\n    uint256 internal constant _ROLE_240 = 1 << 240;\n    uint256 internal constant _ROLE_241 = 1 << 241;\n    uint256 internal constant _ROLE_242 = 1 << 242;\n    uint256 internal constant _ROLE_243 = 1 << 243;\n    uint256 internal constant _ROLE_244 = 1 << 244;\n    uint256 internal constant _ROLE_245 = 1 << 245;\n    uint256 internal constant _ROLE_246 = 1 << 246;\n    uint256 internal constant _ROLE_247 = 1 << 247;\n    uint256 internal constant _ROLE_248 = 1 << 248;\n    uint256 internal constant _ROLE_249 = 1 << 249;\n    uint256 internal constant _ROLE_250 = 1 << 250;\n    uint256 internal constant _ROLE_251 = 1 << 251;\n    uint256 internal constant _ROLE_252 = 1 << 252;\n    uint256 internal constant _ROLE_253 = 1 << 253;\n    uint256 internal constant _ROLE_254 = 1 << 254;\n    uint256 internal constant _ROLE_255 = 1 << 255;\n}\n"},"lib/solady/src/utils/Initializable.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Initializable mixin for the upgradeable contracts.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/Initializable.sol)\n/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/tree/master/contracts/proxy/utils/Initializable.sol)\nabstract contract Initializable {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The contract is already initialized.\n    error InvalidInitialization();\n\n    /// @dev The contract is not initializing.\n    error NotInitializing();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                           EVENTS                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Triggered when the contract has been initialized.\n    event Initialized(uint64 version);\n\n    /// @dev `keccak256(bytes(\"Initialized(uint64)\"))`.\n    bytes32 private constant _INITIALIZED_EVENT_SIGNATURE =\n        0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                          STORAGE                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The default initializable slot is given by:\n    /// `bytes32(~uint256(uint32(bytes4(keccak256(\"_INITIALIZABLE_SLOT\")))))`.\n    ///\n    /// Bits Layout:\n    /// - [0]     `initializing`\n    /// - [1..64] `initializedVersion`\n    bytes32 private constant _INITIALIZABLE_SLOT =\n        0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf601132;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                        CONSTRUCTOR                         */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    constructor() {\n        // Construction time check to ensure that `_initializableSlot()` is not\n        // overridden to zero. Will be optimized away if there is no revert.\n        require(_initializableSlot() != bytes32(0));\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         OPERATIONS                         */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Override to return a non-zero custom storage slot if required.\n    function _initializableSlot() internal pure virtual returns (bytes32) {\n        return _INITIALIZABLE_SLOT;\n    }\n\n    /// @dev Guards an initializer function so that it can be invoked at most once.\n    ///\n    /// You can guard a function with `onlyInitializing` such that it can be called\n    /// through a function guarded with `initializer`.\n    ///\n    /// This is similar to `reinitializer(1)`, except that in the context of a constructor,\n    /// an `initializer` guarded function can be invoked multiple times.\n    /// This can be useful during testing and is not expected to be used in production.\n    ///\n    /// Emits an {Initialized} event.\n    modifier initializer() virtual {\n        bytes32 s = _initializableSlot();\n        /// @solidity memory-safe-assembly\n        assembly {\n            let i := sload(s)\n            // Set `initializing` to 1, `initializedVersion` to 1.\n            sstore(s, 3)\n            // If `!(initializing == 0 && initializedVersion == 0)`.\n            if i {\n                // If `!(address(this).code.length == 0 && initializedVersion == 1)`.\n                if iszero(lt(extcodesize(address()), eq(shr(1, i), 1))) {\n                    mstore(0x00, 0xf92ee8a9) // `InvalidInitialization()`.\n                    revert(0x1c, 0x04)\n                }\n                s := shl(shl(255, i), s) // Skip initializing if `initializing == 1`.\n            }\n        }\n        _;\n        /// @solidity memory-safe-assembly\n        assembly {\n            if s {\n                // Set `initializing` to 0, `initializedVersion` to 1.\n                sstore(s, 2)\n                // Emit the {Initialized} event.\n                mstore(0x20, 1)\n                log1(0x20, 0x20, _INITIALIZED_EVENT_SIGNATURE)\n            }\n        }\n    }\n\n    /// @dev Guards a reinitializer function so that it can be invoked at most once.\n    ///\n    /// You can guard a function with `onlyInitializing` such that it can be called\n    /// through a function guarded with `reinitializer`.\n    ///\n    /// Emits an {Initialized} event.\n    modifier reinitializer(uint64 version) virtual {\n        bytes32 s = _initializableSlot();\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Clean upper bits, and shift left by 1 to make space for the initializing bit.\n            version := shl(1, and(version, 0xffffffffffffffff))\n            let i := sload(s)\n            // If `initializing == 1 || initializedVersion >= version`.\n            if iszero(lt(and(i, 1), lt(i, version))) {\n                mstore(0x00, 0xf92ee8a9) // `InvalidInitialization()`.\n                revert(0x1c, 0x04)\n            }\n            // Set `initializing` to 1, `initializedVersion` to `version`.\n            sstore(s, or(1, version))\n        }\n        _;\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Set `initializing` to 0, `initializedVersion` to `version`.\n            sstore(s, version)\n            // Emit the {Initialized} event.\n            mstore(0x20, shr(1, version))\n            log1(0x20, 0x20, _INITIALIZED_EVENT_SIGNATURE)\n        }\n    }\n\n    /// @dev Guards a function such that it can only be called in the scope\n    /// of a function guarded with `initializer` or `reinitializer`.\n    modifier onlyInitializing() virtual {\n        _checkInitializing();\n        _;\n    }\n\n    /// @dev Reverts if the contract is not initializing.\n    function _checkInitializing() internal view virtual {\n        bytes32 s = _initializableSlot();\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(and(1, sload(s))) {\n                mstore(0x00, 0xd7e6bcf8) // `NotInitializing()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Locks any future initializations by setting the initialized version to `2**64 - 1`.\n    ///\n    /// Calling this in the constructor will prevent the contract from being initialized\n    /// or reinitialized. It is recommended to use this to lock implementation contracts\n    /// that are designed to be called through proxies.\n    ///\n    /// Emits an {Initialized} event the first time it is successfully called.\n    function _disableInitializers() internal virtual {\n        bytes32 s = _initializableSlot();\n        /// @solidity memory-safe-assembly\n        assembly {\n            let i := sload(s)\n            if and(i, 1) {\n                mstore(0x00, 0xf92ee8a9) // `InvalidInitialization()`.\n                revert(0x1c, 0x04)\n            }\n            let uint64max := 0xffffffffffffffff\n            if iszero(eq(shr(1, i), uint64max)) {\n                // Set `initializing` to 0, `initializedVersion` to `2**64 - 1`.\n                sstore(s, shl(1, uint64max))\n                // Emit the {Initialized} event.\n                mstore(0x20, uint64max)\n                log1(0x20, 0x20, _INITIALIZED_EVENT_SIGNATURE)\n            }\n        }\n    }\n\n    /// @dev Returns the highest version that has been initialized.\n    function _getInitializedVersion() internal view virtual returns (uint64 version) {\n        bytes32 s = _initializableSlot();\n        /// @solidity memory-safe-assembly\n        assembly {\n            version := shr(1, sload(s))\n        }\n    }\n\n    /// @dev Returns whether the contract is currently initializing.\n    function _isInitializing() internal view virtual returns (bool result) {\n        bytes32 s = _initializableSlot();\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := and(1, sload(s))\n        }\n    }\n}\n"},"lib/solady/src/utils/SafeTransferLib.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/SafeTransferLib.sol)\n/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol)\n/// @author Permit2 operations from (https://github.com/Uniswap/permit2/blob/main/src/libraries/Permit2Lib.sol)\n///\n/// @dev Note:\n/// - For ETH transfers, please use `forceSafeTransferETH` for DoS protection.\nlibrary SafeTransferLib {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The ETH transfer has failed.\n    error ETHTransferFailed();\n\n    /// @dev The ERC20 `transferFrom` has failed.\n    error TransferFromFailed();\n\n    /// @dev The ERC20 `transfer` has failed.\n    error TransferFailed();\n\n    /// @dev The ERC20 `approve` has failed.\n    error ApproveFailed();\n\n    /// @dev The ERC20 `totalSupply` query has failed.\n    error TotalSupplyQueryFailed();\n\n    /// @dev The Permit2 operation has failed.\n    error Permit2Failed();\n\n    /// @dev The Permit2 amount must be less than `2**160 - 1`.\n    error Permit2AmountOverflow();\n\n    /// @dev The Permit2 approve operation has failed.\n    error Permit2ApproveFailed();\n\n    /// @dev The Permit2 lockdown operation has failed.\n    error Permit2LockdownFailed();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         CONSTANTS                          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Suggested gas stipend for contract receiving ETH that disallows any storage writes.\n    uint256 internal constant GAS_STIPEND_NO_STORAGE_WRITES = 2300;\n\n    /// @dev Suggested gas stipend for contract receiving ETH to perform a few\n    /// storage reads and writes, but low enough to prevent griefing.\n    uint256 internal constant GAS_STIPEND_NO_GRIEF = 100000;\n\n    /// @dev The unique EIP-712 domain separator for the DAI token contract.\n    bytes32 internal constant DAI_DOMAIN_SEPARATOR =\n        0xdbb8cf42e1ecb028be3f3dbc922e1d878b963f411dc388ced501601c60f7c6f7;\n\n    /// @dev The address for the WETH9 contract on Ethereum mainnet.\n    address internal constant WETH9 = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;\n\n    /// @dev The canonical Permit2 address.\n    /// [Github](https://github.com/Uniswap/permit2)\n    /// [Etherscan](https://etherscan.io/address/0x000000000022D473030F116dDEE9F6B43aC78BA3)\n    address internal constant PERMIT2 = 0x000000000022D473030F116dDEE9F6B43aC78BA3;\n\n    /// @dev The canonical address of the `SELFDESTRUCT` ETH mover.\n    /// See: https://gist.github.com/Vectorized/1cb8ad4cf393b1378e08f23f79bd99fa\n    /// [Etherscan](https://etherscan.io/address/0x00000000000073c48c8055bD43D1A53799176f0D)\n    address internal constant ETH_MOVER = 0x00000000000073c48c8055bD43D1A53799176f0D;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       ETH OPERATIONS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // If the ETH transfer MUST succeed with a reasonable gas budget, use the force variants.\n    //\n    // The regular variants:\n    // - Forwards all remaining gas to the target.\n    // - Reverts if the target reverts.\n    // - Reverts if the current contract has insufficient balance.\n    //\n    // The force variants:\n    // - Forwards with an optional gas stipend\n    //   (defaults to `GAS_STIPEND_NO_GRIEF`, which is sufficient for most cases).\n    // - If the target reverts, or if the gas stipend is exhausted,\n    //   creates a temporary contract to force send the ETH via `SELFDESTRUCT`.\n    //   Future compatible with `SENDALL`: https://eips.ethereum.org/EIPS/eip-4758.\n    // - Reverts if the current contract has insufficient balance.\n    //\n    // The try variants:\n    // - Forwards with a mandatory gas stipend.\n    // - Instead of reverting, returns whether the transfer succeeded.\n\n    /// @dev Sends `amount` (in wei) ETH to `to`.\n    function safeTransferETH(address to, uint256 amount) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(call(gas(), to, amount, codesize(), 0x00, codesize(), 0x00)) {\n                mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Sends all the ETH in the current contract to `to`.\n    function safeTransferAllETH(address to) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Transfer all the ETH and check if it succeeded or not.\n            if iszero(call(gas(), to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n                mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Force sends `amount` (in wei) ETH to `to`, with a `gasStipend`.\n    function forceSafeTransferETH(address to, uint256 amount, uint256 gasStipend) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            if lt(selfbalance(), amount) {\n                mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                revert(0x1c, 0x04)\n            }\n            if iszero(call(gasStipend, to, amount, codesize(), 0x00, codesize(), 0x00)) {\n                mstore(0x00, to) // Store the address in scratch space.\n                mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n                mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n                if iszero(create(amount, 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n            }\n        }\n    }\n\n    /// @dev Force sends all the ETH in the current contract to `to`, with a `gasStipend`.\n    function forceSafeTransferAllETH(address to, uint256 gasStipend) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(call(gasStipend, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n                mstore(0x00, to) // Store the address in scratch space.\n                mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n                mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n                if iszero(create(selfbalance(), 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n            }\n        }\n    }\n\n    /// @dev Force sends `amount` (in wei) ETH to `to`, with `GAS_STIPEND_NO_GRIEF`.\n    function forceSafeTransferETH(address to, uint256 amount) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            if lt(selfbalance(), amount) {\n                mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                revert(0x1c, 0x04)\n            }\n            if iszero(call(GAS_STIPEND_NO_GRIEF, to, amount, codesize(), 0x00, codesize(), 0x00)) {\n                mstore(0x00, to) // Store the address in scratch space.\n                mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n                mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n                if iszero(create(amount, 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n            }\n        }\n    }\n\n    /// @dev Force sends all the ETH in the current contract to `to`, with `GAS_STIPEND_NO_GRIEF`.\n    function forceSafeTransferAllETH(address to) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // forgefmt: disable-next-item\n            if iszero(call(GAS_STIPEND_NO_GRIEF, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n                mstore(0x00, to) // Store the address in scratch space.\n                mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n                mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n                if iszero(create(selfbalance(), 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n            }\n        }\n    }\n\n    /// @dev Sends `amount` (in wei) ETH to `to`, with a `gasStipend`.\n    function trySafeTransferETH(address to, uint256 amount, uint256 gasStipend)\n        internal\n        returns (bool success)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            success := call(gasStipend, to, amount, codesize(), 0x00, codesize(), 0x00)\n        }\n    }\n\n    /// @dev Sends all the ETH in the current contract to `to`, with a `gasStipend`.\n    function trySafeTransferAllETH(address to, uint256 gasStipend)\n        internal\n        returns (bool success)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            success := call(gasStipend, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)\n        }\n    }\n\n    /// @dev Force transfers ETH to `to`, without triggering the fallback (if any).\n    /// This method attempts to use a separate contract to send via `SELFDESTRUCT`,\n    /// and upon failure, deploys a minimal vault to accrue the ETH.\n    function safeMoveETH(address to, uint256 amount) internal returns (address vault) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            to := shr(96, shl(96, to)) // Clean upper 96 bits.\n            for { let mover := ETH_MOVER } iszero(eq(to, address())) {} {\n                let selfBalanceBefore := selfbalance()\n                if or(lt(selfBalanceBefore, amount), eq(to, mover)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                if extcodesize(mover) {\n                    let balanceBefore := balance(to) // Check via delta, in case `SELFDESTRUCT` is bricked.\n                    mstore(0x00, to)\n                    pop(call(gas(), mover, amount, 0x00, 0x20, codesize(), 0x00))\n                    // If `address(to).balance >= amount + balanceBefore`, skip vault workflow.\n                    if iszero(lt(balance(to), add(amount, balanceBefore))) { break }\n                    // Just in case `SELFDESTRUCT` is changed to not revert and do nothing.\n                    if lt(selfBalanceBefore, selfbalance()) { invalid() }\n                }\n                let m := mload(0x40)\n                // If the mover is missing or bricked, deploy a minimal vault\n                // that withdraws all ETH to `to` when being called only by `to`.\n                // forgefmt: disable-next-item\n                mstore(add(m, 0x20), 0x33146025575b600160005260206000f35b3d3d3d3d47335af1601a5760003dfd)\n                mstore(m, or(to, shl(160, 0x6035600b3d3960353df3fe73)))\n                // Compute and store the bytecode hash.\n                mstore8(0x00, 0xff) // Write the prefix.\n                mstore(0x35, keccak256(m, 0x40))\n                mstore(0x01, shl(96, address())) // Deployer.\n                mstore(0x15, 0) // Salt.\n                vault := keccak256(0x00, 0x55)\n                pop(call(gas(), vault, amount, codesize(), 0x00, codesize(), 0x00))\n                // The vault returns a single word on success. Failure reverts with empty data.\n                if iszero(returndatasize()) {\n                    if iszero(create2(0, m, 0x40, 0)) { revert(codesize(), codesize()) } // For gas estimation.\n                }\n                mstore(0x40, m) // Restore the free memory pointer.\n                break\n            }\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      ERC20 OPERATIONS                      */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.\n    /// Reverts upon failure.\n    ///\n    /// The `from` account must have at least `amount` approved for\n    /// the current contract to manage.\n    function safeTransferFrom(address token, address from, address to, uint256 amount) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, amount) // Store the `amount` argument.\n            mstore(0x40, to) // Store the `to` argument.\n            mstore(0x2c, shl(96, from)) // Store the `from` argument.\n            mstore(0x0c, 0x23b872dd000000000000000000000000) // `transferFrom(address,address,uint256)`.\n            let success := call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                    mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            mstore(0x60, 0) // Restore the zero slot to zero.\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n    }\n\n    /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.\n    ///\n    /// The `from` account must have at least `amount` approved for the current contract to manage.\n    function trySafeTransferFrom(address token, address from, address to, uint256 amount)\n        internal\n        returns (bool success)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, amount) // Store the `amount` argument.\n            mstore(0x40, to) // Store the `to` argument.\n            mstore(0x2c, shl(96, from)) // Store the `from` argument.\n            mstore(0x0c, 0x23b872dd000000000000000000000000) // `transferFrom(address,address,uint256)`.\n            success := call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                success := lt(or(iszero(extcodesize(token)), returndatasize()), success)\n            }\n            mstore(0x60, 0) // Restore the zero slot to zero.\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n    }\n\n    /// @dev Sends all of ERC20 `token` from `from` to `to`.\n    /// Reverts upon failure.\n    ///\n    /// The `from` account must have their entire balance approved for the current contract to manage.\n    function safeTransferAllFrom(address token, address from, address to)\n        internal\n        returns (uint256 amount)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x40, to) // Store the `to` argument.\n            mstore(0x2c, shl(96, from)) // Store the `from` argument.\n            mstore(0x0c, 0x70a08231000000000000000000000000) // `balanceOf(address)`.\n            // Read the balance, reverting upon failure.\n            if iszero(\n                and( // The arguments of `and` are evaluated from right to left.\n                    gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n                    staticcall(gas(), token, 0x1c, 0x24, 0x60, 0x20)\n                )\n            ) {\n                mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x00, 0x23b872dd) // `transferFrom(address,address,uint256)`.\n            amount := mload(0x60) // The `amount` is already at 0x60. We'll need to return it.\n            // Perform the transfer, reverting upon failure.\n            let success := call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                    mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            mstore(0x60, 0) // Restore the zero slot to zero.\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n    }\n\n    /// @dev Sends `amount` of ERC20 `token` from the current contract to `to`.\n    /// Reverts upon failure.\n    function safeTransfer(address token, address to, uint256 amount) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x14, to) // Store the `to` argument.\n            mstore(0x34, amount) // Store the `amount` argument.\n            mstore(0x00, 0xa9059cbb000000000000000000000000) // `transfer(address,uint256)`.\n            // Perform the transfer, reverting upon failure.\n            let success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                    mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n        }\n    }\n\n    /// @dev Sends all of ERC20 `token` from the current contract to `to`.\n    /// Reverts upon failure.\n    function safeTransferAll(address token, address to) internal returns (uint256 amount) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, 0x70a08231) // Store the function selector of `balanceOf(address)`.\n            mstore(0x20, address()) // Store the address of the current contract.\n            // Read the balance, reverting upon failure.\n            if iszero(\n                and( // The arguments of `and` are evaluated from right to left.\n                    gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n                    staticcall(gas(), token, 0x1c, 0x24, 0x34, 0x20)\n                )\n            ) {\n                mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x14, to) // Store the `to` argument.\n            amount := mload(0x34) // The `amount` is already at 0x34. We'll need to return it.\n            mstore(0x00, 0xa9059cbb000000000000000000000000) // `transfer(address,uint256)`.\n            // Perform the transfer, reverting upon failure.\n            let success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                    mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n        }\n    }\n\n    /// @dev Sets `amount` of ERC20 `token` for `to` to manage on behalf of the current contract.\n    /// Reverts upon failure.\n    function safeApprove(address token, address to, uint256 amount) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x14, to) // Store the `to` argument.\n            mstore(0x34, amount) // Store the `amount` argument.\n            mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n            let success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                    mstore(0x00, 0x3e3f8f73) // `ApproveFailed()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n        }\n    }\n\n    /// @dev Sets `amount` of ERC20 `token` for `to` to manage on behalf of the current contract.\n    /// If the initial attempt to approve fails, attempts to reset the approved amount to zero,\n    /// then retries the approval again (some tokens, e.g. USDT, requires this).\n    /// Reverts upon failure.\n    function safeApproveWithRetry(address token, address to, uint256 amount) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x14, to) // Store the `to` argument.\n            mstore(0x34, amount) // Store the `amount` argument.\n            mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n            // Perform the approval, retrying upon failure.\n            let success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                    mstore(0x34, 0) // Store 0 for the `amount`.\n                    mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n                    pop(call(gas(), token, 0, 0x10, 0x44, codesize(), 0x00)) // Reset the approval.\n                    mstore(0x34, amount) // Store back the original `amount`.\n                    // Retry the approval, reverting upon failure.\n                    success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n                    if iszero(and(eq(mload(0x00), 1), success)) {\n                        // Check the `extcodesize` again just in case the token selfdestructs lol.\n                        if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                            mstore(0x00, 0x3e3f8f73) // `ApproveFailed()`.\n                            revert(0x1c, 0x04)\n                        }\n                    }\n                }\n            }\n            mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n        }\n    }\n\n    /// @dev Returns the amount of ERC20 `token` owned by `account`.\n    /// Returns zero if the `token` does not exist.\n    function balanceOf(address token, address account) internal view returns (uint256 amount) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x14, account) // Store the `account` argument.\n            mstore(0x00, 0x70a08231000000000000000000000000) // `balanceOf(address)`.\n            amount :=\n                mul( // The arguments of `mul` are evaluated from right to left.\n                    mload(0x20),\n                    and( // The arguments of `and` are evaluated from right to left.\n                        gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n                        staticcall(gas(), token, 0x10, 0x24, 0x20, 0x20)\n                    )\n                )\n        }\n    }\n\n    /// @dev Performs a `token.balanceOf(account)` check.\n    /// `implemented` denotes whether the `token` does not implement `balanceOf`.\n    /// `amount` is zero if the `token` does not implement `balanceOf`.\n    function checkBalanceOf(address token, address account)\n        internal\n        view\n        returns (bool implemented, uint256 amount)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x14, account) // Store the `account` argument.\n            mstore(0x00, 0x70a08231000000000000000000000000) // `balanceOf(address)`.\n            implemented :=\n                and( // The arguments of `and` are evaluated from right to left.\n                    gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n                    staticcall(gas(), token, 0x10, 0x24, 0x20, 0x20)\n                )\n            amount := mul(mload(0x20), implemented)\n        }\n    }\n\n    /// @dev Returns the total supply of the `token`.\n    /// Reverts if the token does not exist or does not implement `totalSupply()`.\n    function totalSupply(address token) internal view returns (uint256 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, 0x18160ddd) // `totalSupply()`.\n            if iszero(\n                and(gt(returndatasize(), 0x1f), staticcall(gas(), token, 0x1c, 0x04, 0x00, 0x20))\n            ) {\n                mstore(0x00, 0x54cd9435) // `TotalSupplyQueryFailed()`.\n                revert(0x1c, 0x04)\n            }\n            result := mload(0x00)\n        }\n    }\n\n    /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.\n    /// If the initial attempt fails, try to use Permit2 to transfer the token.\n    /// Reverts upon failure.\n    ///\n    /// The `from` account must have at least `amount` approved for the current contract to manage.\n    function safeTransferFrom2(address token, address from, address to, uint256 amount) internal {\n        if (!trySafeTransferFrom(token, from, to, amount)) {\n            permit2TransferFrom(token, from, to, amount);\n        }\n    }\n\n    /// @dev Sends `amount` of ERC20 `token` from `from` to `to` via Permit2.\n    /// Reverts upon failure.\n    function permit2TransferFrom(address token, address from, address to, uint256 amount)\n        internal\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            mstore(add(m, 0x74), shr(96, shl(96, token)))\n            mstore(add(m, 0x54), amount)\n            mstore(add(m, 0x34), to)\n            mstore(add(m, 0x20), shl(96, from))\n            // `transferFrom(address,address,uint160,address)`.\n            mstore(m, 0x36c78516000000000000000000000000)\n            let p := PERMIT2\n            let exists := eq(chainid(), 1)\n            if iszero(exists) { exists := iszero(iszero(extcodesize(p))) }\n            if iszero(\n                and(\n                    call(gas(), p, 0, add(m, 0x10), 0x84, codesize(), 0x00),\n                    lt(iszero(extcodesize(token)), exists) // Token has code and Permit2 exists.\n                )\n            ) {\n                mstore(0x00, 0x7939f4248757f0fd) // `TransferFromFailed()` or `Permit2AmountOverflow()`.\n                revert(add(0x18, shl(2, iszero(iszero(shr(160, amount))))), 0x04)\n            }\n        }\n    }\n\n    /// @dev Permit a user to spend a given amount of\n    /// another user's tokens via native EIP-2612 permit if possible, falling\n    /// back to Permit2 if native permit fails or is not implemented on the token.\n    function permit2(\n        address token,\n        address owner,\n        address spender,\n        uint256 amount,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) internal {\n        bool success;\n        /// @solidity memory-safe-assembly\n        assembly {\n            for {} shl(96, xor(token, WETH9)) {} {\n                mstore(0x00, 0x3644e515) // `DOMAIN_SEPARATOR()`.\n                if iszero(\n                    and( // The arguments of `and` are evaluated from right to left.\n                        lt(iszero(mload(0x00)), eq(returndatasize(), 0x20)), // Returns 1 non-zero word.\n                        // Gas stipend to limit gas burn for tokens that don't refund gas when\n                        // an non-existing function is called. 5K should be enough for a SLOAD.\n                        staticcall(5000, token, 0x1c, 0x04, 0x00, 0x20)\n                    )\n                ) { break }\n                // After here, we can be sure that token is a contract.\n                let m := mload(0x40)\n                mstore(add(m, 0x34), spender)\n                mstore(add(m, 0x20), shl(96, owner))\n                mstore(add(m, 0x74), deadline)\n                if eq(mload(0x00), DAI_DOMAIN_SEPARATOR) {\n                    mstore(0x14, owner)\n                    mstore(0x00, 0x7ecebe00000000000000000000000000) // `nonces(address)`.\n                    mstore(\n                        add(m, 0x94),\n                        lt(iszero(amount), staticcall(gas(), token, 0x10, 0x24, add(m, 0x54), 0x20))\n                    )\n                    mstore(m, 0x8fcbaf0c000000000000000000000000) // `IDAIPermit.permit`.\n                    // `nonces` is already at `add(m, 0x54)`.\n                    // `amount != 0` is already stored at `add(m, 0x94)`.\n                    mstore(add(m, 0xb4), and(0xff, v))\n                    mstore(add(m, 0xd4), r)\n                    mstore(add(m, 0xf4), s)\n                    success := call(gas(), token, 0, add(m, 0x10), 0x104, codesize(), 0x00)\n                    break\n                }\n                mstore(m, 0xd505accf000000000000000000000000) // `IERC20Permit.permit`.\n                mstore(add(m, 0x54), amount)\n                mstore(add(m, 0x94), and(0xff, v))\n                mstore(add(m, 0xb4), r)\n                mstore(add(m, 0xd4), s)\n                success := call(gas(), token, 0, add(m, 0x10), 0xe4, codesize(), 0x00)\n                break\n            }\n        }\n        if (!success) simplePermit2(token, owner, spender, amount, deadline, v, r, s);\n    }\n\n    /// @dev Simple permit on the Permit2 contract.\n    function simplePermit2(\n        address token,\n        address owner,\n        address spender,\n        uint256 amount,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            mstore(m, 0x927da105) // `allowance(address,address,address)`.\n            {\n                let addressMask := shr(96, not(0))\n                mstore(add(m, 0x20), and(addressMask, owner))\n                mstore(add(m, 0x40), and(addressMask, token))\n                mstore(add(m, 0x60), and(addressMask, spender))\n                mstore(add(m, 0xc0), and(addressMask, spender))\n            }\n            let p := mul(PERMIT2, iszero(shr(160, amount)))\n            if iszero(\n                and( // The arguments of `and` are evaluated from right to left.\n                    gt(returndatasize(), 0x5f), // Returns 3 words: `amount`, `expiration`, `nonce`.\n                    staticcall(gas(), p, add(m, 0x1c), 0x64, add(m, 0x60), 0x60)\n                )\n            ) {\n                mstore(0x00, 0x6b836e6b8757f0fd) // `Permit2Failed()` or `Permit2AmountOverflow()`.\n                revert(add(0x18, shl(2, iszero(p))), 0x04)\n            }\n            mstore(m, 0x2b67b570) // `Permit2.permit` (PermitSingle variant).\n            // `owner` is already `add(m, 0x20)`.\n            // `token` is already at `add(m, 0x40)`.\n            mstore(add(m, 0x60), amount)\n            mstore(add(m, 0x80), 0xffffffffffff) // `expiration = type(uint48).max`.\n            // `nonce` is already at `add(m, 0xa0)`.\n            // `spender` is already at `add(m, 0xc0)`.\n            mstore(add(m, 0xe0), deadline)\n            mstore(add(m, 0x100), 0x100) // `signature` offset.\n            mstore(add(m, 0x120), 0x41) // `signature` length.\n            mstore(add(m, 0x140), r)\n            mstore(add(m, 0x160), s)\n            mstore(add(m, 0x180), shl(248, v))\n            if iszero( // Revert if token does not have code, or if the call fails.\n            mul(extcodesize(token), call(gas(), p, 0, add(m, 0x1c), 0x184, codesize(), 0x00))) {\n                mstore(0x00, 0x6b836e6b) // `Permit2Failed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Approves `spender` to spend `amount` of `token` for `address(this)`.\n    function permit2Approve(address token, address spender, uint160 amount, uint48 expiration)\n        internal\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let addressMask := shr(96, not(0))\n            let m := mload(0x40)\n            mstore(m, 0x87517c45) // `approve(address,address,uint160,uint48)`.\n            mstore(add(m, 0x20), and(addressMask, token))\n            mstore(add(m, 0x40), and(addressMask, spender))\n            mstore(add(m, 0x60), and(addressMask, amount))\n            mstore(add(m, 0x80), and(0xffffffffffff, expiration))\n            if iszero(call(gas(), PERMIT2, 0, add(m, 0x1c), 0xa0, codesize(), 0x00)) {\n                mstore(0x00, 0x324f14ae) // `Permit2ApproveFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Revokes an approval for `token` and `spender` for `address(this)`.\n    function permit2Lockdown(address token, address spender) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            mstore(m, 0xcc53287f) // `Permit2.lockdown`.\n            mstore(add(m, 0x20), 0x20) // Offset of the `approvals`.\n            mstore(add(m, 0x40), 1) // `approvals.length`.\n            mstore(add(m, 0x60), shr(96, shl(96, token)))\n            mstore(add(m, 0x80), shr(96, shl(96, spender)))\n            if iszero(call(gas(), PERMIT2, 0, add(m, 0x1c), 0xa0, codesize(), 0x00)) {\n                mstore(0x00, 0x96b3de23) // `Permit2LockdownFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n}\n"},"lib/solady/src/utils/UUPSUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\nimport {CallContextChecker} from \"./CallContextChecker.sol\";\n\n/// @notice UUPS proxy mixin.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/UUPSUpgradeable.sol)\n/// @author Modified from OpenZeppelin\n/// (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/proxy/utils/UUPSUpgradeable.sol)\n///\n/// @dev Note:\n/// - This implementation is intended to be used with ERC1967 proxies.\n/// See: `LibClone.deployERC1967` and related functions.\n/// - This implementation is NOT compatible with legacy OpenZeppelin proxies\n/// which do not store the implementation at `_ERC1967_IMPLEMENTATION_SLOT`.\nabstract contract UUPSUpgradeable is CallContextChecker {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The upgrade failed.\n    error UpgradeFailed();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                           EVENTS                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Emitted when the proxy's implementation is upgraded.\n    event Upgraded(address indexed implementation);\n\n    /// @dev `keccak256(bytes(\"Upgraded(address)\"))`.\n    uint256 private constant _UPGRADED_EVENT_SIGNATURE =\n        0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                          STORAGE                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The ERC-1967 storage slot for the implementation in the proxy.\n    /// `uint256(keccak256(\"eip1967.proxy.implementation\")) - 1`.\n    bytes32 internal constant _ERC1967_IMPLEMENTATION_SLOT =\n        0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      UUPS OPERATIONS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Please override this function to check if `msg.sender` is authorized\n    /// to upgrade the proxy to `newImplementation`, reverting if not.\n    /// ```\n    ///     function _authorizeUpgrade(address) internal override onlyOwner {}\n    /// ```\n    function _authorizeUpgrade(address newImplementation) internal virtual;\n\n    /// @dev Returns the storage slot used by the implementation,\n    /// as specified in [ERC1822](https://eips.ethereum.org/EIPS/eip-1822).\n    ///\n    /// Note: The `notDelegated` modifier prevents accidental upgrades to\n    /// an implementation that is a proxy contract.\n    function proxiableUUID() public view virtual notDelegated returns (bytes32) {\n        // This function must always return `_ERC1967_IMPLEMENTATION_SLOT` to comply with ERC1967.\n        return _ERC1967_IMPLEMENTATION_SLOT;\n    }\n\n    /// @dev Upgrades the proxy's implementation to `newImplementation`.\n    /// Emits a {Upgraded} event.\n    ///\n    /// Note: Passing in empty `data` skips the delegatecall to `newImplementation`.\n    function upgradeToAndCall(address newImplementation, bytes calldata data)\n        public\n        payable\n        virtual\n        onlyProxy\n    {\n        _authorizeUpgrade(newImplementation);\n        /// @solidity memory-safe-assembly\n        assembly {\n            newImplementation := shr(96, shl(96, newImplementation)) // Clears upper 96 bits.\n            mstore(0x00, returndatasize())\n            mstore(0x01, 0x52d1902d) // `proxiableUUID()`.\n            let s := _ERC1967_IMPLEMENTATION_SLOT\n            // Check if `newImplementation` implements `proxiableUUID` correctly.\n            if iszero(eq(mload(staticcall(gas(), newImplementation, 0x1d, 0x04, 0x01, 0x20)), s)) {\n                mstore(0x01, 0x55299b49) // `UpgradeFailed()`.\n                revert(0x1d, 0x04)\n            }\n            // Emit the {Upgraded} event.\n            log2(codesize(), 0x00, _UPGRADED_EVENT_SIGNATURE, newImplementation)\n            sstore(s, newImplementation) // Updates the implementation.\n\n            // Perform a delegatecall to `newImplementation` if `data` is non-empty.\n            if data.length {\n                // Forwards the `data` to `newImplementation` via delegatecall.\n                let m := mload(0x40)\n                calldatacopy(m, data.offset, data.length)\n                if iszero(delegatecall(gas(), newImplementation, m, data.length, codesize(), 0x00))\n                {\n                    // Bubble up the revert if the call reverts.\n                    returndatacopy(m, 0x00, returndatasize())\n                    revert(m, returndatasize())\n                }\n            }\n        }\n    }\n}\n"},"lib/solady/src/utils/CallContextChecker.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Call context checker mixin.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/CallContextChecker.sol)\ncontract CallContextChecker {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The call is from an unauthorized call context.\n    error UnauthorizedCallContext();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         IMMUTABLES                         */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev For checking if the context is a delegate call.\n    ///\n    /// Note: To enable use cases with an immutable default implementation in the bytecode,\n    /// (see: ERC6551Proxy), we don't require that the proxy address must match the\n    /// value stored in the implementation slot, which may not be initialized.\n    uint256 private immutable __self = uint256(uint160(address(this)));\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                    CALL CONTEXT CHECKS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // A proxy call can be either via a `delegatecall` to an implementation,\n    // or a 7702 call on an authority that points to a delegation.\n\n    /// @dev Returns whether the current call context is on a EIP7702 authority\n    /// (i.e. externally owned account).\n    function _onEIP7702Authority() internal view virtual returns (bool result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            extcodecopy(address(), 0x00, 0x00, 0x20)\n            // Note: Checking that it starts with hex\"ef01\" is the most general and futureproof.\n            // 7702 bytecode is `abi.encodePacked(hex\"ef01\", uint8(version), address(delegation))`.\n            result := eq(0xef01, shr(240, mload(0x00)))\n        }\n    }\n\n    /// @dev Returns the implementation of this contract.\n    function _selfImplementation() internal view virtual returns (address) {\n        return address(uint160(__self));\n    }\n\n    /// @dev Returns whether the current call context is on the implementation itself.\n    function _onImplementation() internal view virtual returns (bool) {\n        return __self == uint160(address(this));\n    }\n\n    /// @dev Requires that the current call context is performed via a EIP7702 authority.\n    function _checkOnlyEIP7702Authority() internal view virtual {\n        if (!_onEIP7702Authority()) _revertUnauthorizedCallContext();\n    }\n\n    /// @dev Requires that the current call context is performed via a proxy.\n    function _checkOnlyProxy() internal view virtual {\n        if (_onImplementation()) _revertUnauthorizedCallContext();\n    }\n\n    /// @dev Requires that the current call context is NOT performed via a proxy.\n    /// This is the opposite of `checkOnlyProxy`.\n    function _checkNotDelegated() internal view virtual {\n        if (!_onImplementation()) _revertUnauthorizedCallContext();\n    }\n\n    /// @dev Requires that the current call context is performed via a EIP7702 authority.\n    modifier onlyEIP7702Authority() virtual {\n        _checkOnlyEIP7702Authority();\n        _;\n    }\n\n    /// @dev Requires that the current call context is performed via a proxy.\n    modifier onlyProxy() virtual {\n        _checkOnlyProxy();\n        _;\n    }\n\n    /// @dev Requires that the current call context is NOT performed via a proxy.\n    /// This is the opposite of `onlyProxy`.\n    modifier notDelegated() virtual {\n        _checkNotDelegated();\n        _;\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      PRIVATE HELPERS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    function _revertUnauthorizedCallContext() private pure {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, 0x9f03a026) // `UnauthorizedCallContext()`.\n            revert(0x1c, 0x04)\n        }\n    }\n}\n"},"lib/solady/src/utils/SignatureCheckerLib.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Signature verification helper that supports both ECDSA signatures from EOAs\n/// and ERC1271 signatures from smart contract wallets like Argent and Gnosis safe.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/SignatureCheckerLib.sol)\n/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/cryptography/SignatureChecker.sol)\n///\n/// @dev Note:\n/// - The signature checking functions use the ecrecover precompile (0x1).\n/// - The `bytes memory signature` variants use the identity precompile (0x4)\n///   to copy memory internally.\n/// - Unlike ECDSA signatures, contract signatures are revocable.\n/// - As of Solady version 0.0.134, all `bytes signature` variants accept both\n///   regular 65-byte `(r, s, v)` and EIP-2098 `(r, vs)` short form signatures.\n///   See: https://eips.ethereum.org/EIPS/eip-2098\n///   This is for calldata efficiency on smart accounts prevalent on L2s.\n///\n/// WARNING! Do NOT use signatures as unique identifiers:\n/// - Use a nonce in the digest to prevent replay attacks on the same contract.\n/// - Use EIP-712 for the digest to prevent replay attacks across different chains and contracts.\n///   EIP-712 also enables readable signing of typed data for better user safety.\n/// This implementation does NOT check if a signature is non-malleable.\nlibrary SignatureCheckerLib {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*               SIGNATURE CHECKING OPERATIONS                */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns whether `signature` is valid for `signer` and `hash`.\n    /// If `signer.code.length == 0`, then validate with `ecrecover`, else\n    /// it will validate with ERC1271 on `signer`.\n    function isValidSignatureNow(address signer, bytes32 hash, bytes memory signature)\n        internal\n        view\n        returns (bool isValid)\n    {\n        if (signer == address(0)) return isValid;\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            for {} 1 {} {\n                if iszero(extcodesize(signer)) {\n                    switch mload(signature)\n                    case 64 {\n                        let vs := mload(add(signature, 0x40))\n                        mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                        mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                    }\n                    case 65 {\n                        mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`.\n                        mstore(0x60, mload(add(signature, 0x40))) // `s`.\n                    }\n                    default { break }\n                    mstore(0x00, hash)\n                    mstore(0x40, mload(add(signature, 0x20))) // `r`.\n                    let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n                    isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n                    mstore(0x60, 0) // Restore the zero slot.\n                    mstore(0x40, m) // Restore the free memory pointer.\n                    break\n                }\n                let f := shl(224, 0x1626ba7e)\n                mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n                mstore(add(m, 0x04), hash)\n                let d := add(m, 0x24)\n                mstore(d, 0x40) // The offset of the `signature` in the calldata.\n                // Copy the `signature` over.\n                let n := add(0x20, mload(signature))\n                let copied := staticcall(gas(), 4, signature, n, add(m, 0x44), n)\n                isValid := staticcall(gas(), signer, m, add(returndatasize(), 0x44), d, 0x20)\n                isValid := and(eq(mload(d), f), and(isValid, copied))\n                break\n            }\n        }\n    }\n\n    /// @dev Returns whether `signature` is valid for `signer` and `hash`.\n    /// If `signer.code.length == 0`, then validate with `ecrecover`, else\n    /// it will validate with ERC1271 on `signer`.\n    function isValidSignatureNowCalldata(address signer, bytes32 hash, bytes calldata signature)\n        internal\n        view\n        returns (bool isValid)\n    {\n        if (signer == address(0)) return isValid;\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            for {} 1 {} {\n                if iszero(extcodesize(signer)) {\n                    switch signature.length\n                    case 64 {\n                        let vs := calldataload(add(signature.offset, 0x20))\n                        mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                        mstore(0x40, calldataload(signature.offset)) // `r`.\n                        mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                    }\n                    case 65 {\n                        mstore(0x20, byte(0, calldataload(add(signature.offset, 0x40)))) // `v`.\n                        calldatacopy(0x40, signature.offset, 0x40) // `r`, `s`.\n                    }\n                    default { break }\n                    mstore(0x00, hash)\n                    let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n                    isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n                    mstore(0x60, 0) // Restore the zero slot.\n                    mstore(0x40, m) // Restore the free memory pointer.\n                    break\n                }\n                let f := shl(224, 0x1626ba7e)\n                mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n                mstore(add(m, 0x04), hash)\n                let d := add(m, 0x24)\n                mstore(d, 0x40) // The offset of the `signature` in the calldata.\n                mstore(add(m, 0x44), signature.length)\n                // Copy the `signature` over.\n                calldatacopy(add(m, 0x64), signature.offset, signature.length)\n                isValid := staticcall(gas(), signer, m, add(signature.length, 0x64), d, 0x20)\n                isValid := and(eq(mload(d), f), isValid)\n                break\n            }\n        }\n    }\n\n    /// @dev Returns whether the signature (`r`, `vs`) is valid for `signer` and `hash`.\n    /// If `signer.code.length == 0`, then validate with `ecrecover`, else\n    /// it will validate with ERC1271 on `signer`.\n    function isValidSignatureNow(address signer, bytes32 hash, bytes32 r, bytes32 vs)\n        internal\n        view\n        returns (bool isValid)\n    {\n        if (signer == address(0)) return isValid;\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            for {} 1 {} {\n                if iszero(extcodesize(signer)) {\n                    mstore(0x00, hash)\n                    mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                    mstore(0x40, r) // `r`.\n                    mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                    let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n                    isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n                    mstore(0x60, 0) // Restore the zero slot.\n                    mstore(0x40, m) // Restore the free memory pointer.\n                    break\n                }\n                let f := shl(224, 0x1626ba7e)\n                mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n                mstore(add(m, 0x04), hash)\n                let d := add(m, 0x24)\n                mstore(d, 0x40) // The offset of the `signature` in the calldata.\n                mstore(add(m, 0x44), 65) // Length of the signature.\n                mstore(add(m, 0x64), r) // `r`.\n                mstore(add(m, 0x84), shr(1, shl(1, vs))) // `s`.\n                mstore8(add(m, 0xa4), add(shr(255, vs), 27)) // `v`.\n                isValid := staticcall(gas(), signer, m, 0xa5, d, 0x20)\n                isValid := and(eq(mload(d), f), isValid)\n                break\n            }\n        }\n    }\n\n    /// @dev Returns whether the signature (`v`, `r`, `s`) is valid for `signer` and `hash`.\n    /// If `signer.code.length == 0`, then validate with `ecrecover`, else\n    /// it will validate with ERC1271 on `signer`.\n    function isValidSignatureNow(address signer, bytes32 hash, uint8 v, bytes32 r, bytes32 s)\n        internal\n        view\n        returns (bool isValid)\n    {\n        if (signer == address(0)) return isValid;\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            for {} 1 {} {\n                if iszero(extcodesize(signer)) {\n                    mstore(0x00, hash)\n                    mstore(0x20, and(v, 0xff)) // `v`.\n                    mstore(0x40, r) // `r`.\n                    mstore(0x60, s) // `s`.\n                    let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n                    isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n                    mstore(0x60, 0) // Restore the zero slot.\n                    mstore(0x40, m) // Restore the free memory pointer.\n                    break\n                }\n                let f := shl(224, 0x1626ba7e)\n                mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n                mstore(add(m, 0x04), hash)\n                let d := add(m, 0x24)\n                mstore(d, 0x40) // The offset of the `signature` in the calldata.\n                mstore(add(m, 0x44), 65) // Length of the signature.\n                mstore(add(m, 0x64), r) // `r`.\n                mstore(add(m, 0x84), s) // `s`.\n                mstore8(add(m, 0xa4), v) // `v`.\n                isValid := staticcall(gas(), signer, m, 0xa5, d, 0x20)\n                isValid := and(eq(mload(d), f), isValid)\n                break\n            }\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     ERC1271 OPERATIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // Note: These ERC1271 operations do NOT have an ECDSA fallback.\n\n    /// @dev Returns whether `signature` is valid for `hash` for an ERC1271 `signer` contract.\n    function isValidERC1271SignatureNow(address signer, bytes32 hash, bytes memory signature)\n        internal\n        view\n        returns (bool isValid)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let f := shl(224, 0x1626ba7e)\n            mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n            mstore(add(m, 0x04), hash)\n            let d := add(m, 0x24)\n            mstore(d, 0x40) // The offset of the `signature` in the calldata.\n            // Copy the `signature` over.\n            let n := add(0x20, mload(signature))\n            let copied := staticcall(gas(), 4, signature, n, add(m, 0x44), n)\n            isValid := staticcall(gas(), signer, m, add(returndatasize(), 0x44), d, 0x20)\n            isValid := and(eq(mload(d), f), and(isValid, copied))\n        }\n    }\n\n    /// @dev Returns whether `signature` is valid for `hash` for an ERC1271 `signer` contract.\n    function isValidERC1271SignatureNowCalldata(\n        address signer,\n        bytes32 hash,\n        bytes calldata signature\n    ) internal view returns (bool isValid) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let f := shl(224, 0x1626ba7e)\n            mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n            mstore(add(m, 0x04), hash)\n            let d := add(m, 0x24)\n            mstore(d, 0x40) // The offset of the `signature` in the calldata.\n            mstore(add(m, 0x44), signature.length)\n            // Copy the `signature` over.\n            calldatacopy(add(m, 0x64), signature.offset, signature.length)\n            isValid := staticcall(gas(), signer, m, add(signature.length, 0x64), d, 0x20)\n            isValid := and(eq(mload(d), f), isValid)\n        }\n    }\n\n    /// @dev Returns whether the signature (`r`, `vs`) is valid for `hash`\n    /// for an ERC1271 `signer` contract.\n    function isValidERC1271SignatureNow(address signer, bytes32 hash, bytes32 r, bytes32 vs)\n        internal\n        view\n        returns (bool isValid)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let f := shl(224, 0x1626ba7e)\n            mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n            mstore(add(m, 0x04), hash)\n            let d := add(m, 0x24)\n            mstore(d, 0x40) // The offset of the `signature` in the calldata.\n            mstore(add(m, 0x44), 65) // Length of the signature.\n            mstore(add(m, 0x64), r) // `r`.\n            mstore(add(m, 0x84), shr(1, shl(1, vs))) // `s`.\n            mstore8(add(m, 0xa4), add(shr(255, vs), 27)) // `v`.\n            isValid := staticcall(gas(), signer, m, 0xa5, d, 0x20)\n            isValid := and(eq(mload(d), f), isValid)\n        }\n    }\n\n    /// @dev Returns whether the signature (`v`, `r`, `s`) is valid for `hash`\n    /// for an ERC1271 `signer` contract.\n    function isValidERC1271SignatureNow(address signer, bytes32 hash, uint8 v, bytes32 r, bytes32 s)\n        internal\n        view\n        returns (bool isValid)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            let f := shl(224, 0x1626ba7e)\n            mstore(m, f) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n            mstore(add(m, 0x04), hash)\n            let d := add(m, 0x24)\n            mstore(d, 0x40) // The offset of the `signature` in the calldata.\n            mstore(add(m, 0x44), 65) // Length of the signature.\n            mstore(add(m, 0x64), r) // `r`.\n            mstore(add(m, 0x84), s) // `s`.\n            mstore8(add(m, 0xa4), v) // `v`.\n            isValid := staticcall(gas(), signer, m, 0xa5, d, 0x20)\n            isValid := and(eq(mload(d), f), isValid)\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     ERC6492 OPERATIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // Note: These ERC6492 operations now include an ECDSA fallback at the very end.\n    // The calldata variants are excluded for brevity.\n\n    /// @dev Returns whether `signature` is valid for `hash`.\n    /// If the signature is postfixed with the ERC6492 magic number, it will attempt to\n    /// deploy / prepare the `signer` smart account before doing a regular ERC1271 check.\n    /// Note: This function is NOT reentrancy safe.\n    /// The verifier must be deployed.\n    /// Otherwise, the function will return false if `signer` is not yet deployed / prepared.\n    /// See: https://gist.github.com/Vectorized/011d6becff6e0a73e42fe100f8d7ef04\n    /// With a dedicated verifier, this function is safe to use in contracts\n    /// that have been granted special permissions.\n    function isValidERC6492SignatureNowAllowSideEffects(\n        address signer,\n        bytes32 hash,\n        bytes memory signature\n    ) internal returns (bool isValid) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            function callIsValidSignature(signer_, hash_, signature_) -> _isValid {\n                let m_ := mload(0x40)\n                let f_ := shl(224, 0x1626ba7e)\n                mstore(m_, f_) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n                mstore(add(m_, 0x04), hash_)\n                let d_ := add(m_, 0x24)\n                mstore(d_, 0x40) // The offset of the `signature` in the calldata.\n                let n_ := add(0x20, mload(signature_))\n                let copied_ := staticcall(gas(), 4, signature_, n_, add(m_, 0x44), n_)\n                _isValid := staticcall(gas(), signer_, m_, add(returndatasize(), 0x44), d_, 0x20)\n                _isValid := and(eq(mload(d_), f_), and(_isValid, copied_))\n            }\n            let noCode := iszero(extcodesize(signer))\n            let n := mload(signature)\n            for {} 1 {} {\n                if iszero(eq(mload(add(signature, n)), mul(0x6492, div(not(isValid), 0xffff)))) {\n                    if iszero(noCode) { isValid := callIsValidSignature(signer, hash, signature) }\n                    break\n                }\n                if iszero(noCode) {\n                    let o := add(signature, 0x20) // Signature bytes.\n                    isValid := callIsValidSignature(signer, hash, add(o, mload(add(o, 0x40))))\n                    if isValid { break }\n                }\n                let m := mload(0x40)\n                mstore(m, signer)\n                mstore(add(m, 0x20), hash)\n                pop(\n                    call(\n                        gas(), // Remaining gas.\n                        0x0000bc370E4DC924F427d84e2f4B9Ec81626ba7E, // Non-reverting verifier.\n                        0, // Send zero ETH.\n                        m, // Start of memory.\n                        add(returndatasize(), 0x40), // Length of calldata in memory.\n                        staticcall(gas(), 4, add(signature, 0x20), n, add(m, 0x40), n), // 1.\n                        0x00 // Length of returndata to write.\n                    )\n                )\n                isValid := returndatasize()\n                break\n            }\n            // Do `ecrecover` fallback if `noCode && !isValid`.\n            for {} gt(noCode, isValid) {} {\n                switch n\n                case 64 {\n                    let vs := mload(add(signature, 0x40))\n                    mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                    mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                }\n                case 65 {\n                    mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`.\n                    mstore(0x60, mload(add(signature, 0x40))) // `s`.\n                }\n                default { break }\n                let m := mload(0x40)\n                mstore(0x00, hash)\n                mstore(0x40, mload(add(signature, 0x20))) // `r`.\n                let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n                isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n                mstore(0x60, 0) // Restore the zero slot.\n                mstore(0x40, m) // Restore the free memory pointer.\n                break\n            }\n        }\n    }\n\n    /// @dev Returns whether `signature` is valid for `hash`.\n    /// If the signature is postfixed with the ERC6492 magic number, it will attempt\n    /// to use a reverting verifier to deploy / prepare the `signer` smart account\n    /// and do a `isValidSignature` check via the reverting verifier.\n    /// Note: This function is reentrancy safe.\n    /// The reverting verifier must be deployed.\n    /// Otherwise, the function will return false if `signer` is not yet deployed / prepared.\n    /// See: https://gist.github.com/Vectorized/846a474c855eee9e441506676800a9ad\n    function isValidERC6492SignatureNow(address signer, bytes32 hash, bytes memory signature)\n        internal\n        returns (bool isValid)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            function callIsValidSignature(signer_, hash_, signature_) -> _isValid {\n                let m_ := mload(0x40)\n                let f_ := shl(224, 0x1626ba7e)\n                mstore(m_, f_) // `bytes4(keccak256(\"isValidSignature(bytes32,bytes)\"))`.\n                mstore(add(m_, 0x04), hash_)\n                let d_ := add(m_, 0x24)\n                mstore(d_, 0x40) // The offset of the `signature` in the calldata.\n                let n_ := add(0x20, mload(signature_))\n                let copied_ := staticcall(gas(), 4, signature_, n_, add(m_, 0x44), n_)\n                _isValid := staticcall(gas(), signer_, m_, add(returndatasize(), 0x44), d_, 0x20)\n                _isValid := and(eq(mload(d_), f_), and(_isValid, copied_))\n            }\n            let noCode := iszero(extcodesize(signer))\n            let n := mload(signature)\n            for {} 1 {} {\n                if iszero(eq(mload(add(signature, n)), mul(0x6492, div(not(isValid), 0xffff)))) {\n                    if iszero(noCode) { isValid := callIsValidSignature(signer, hash, signature) }\n                    break\n                }\n                if iszero(noCode) {\n                    let o := add(signature, 0x20) // Signature bytes.\n                    isValid := callIsValidSignature(signer, hash, add(o, mload(add(o, 0x40))))\n                    if isValid { break }\n                }\n                let m := mload(0x40)\n                mstore(m, signer)\n                mstore(add(m, 0x20), hash)\n                let willBeZeroIfRevertingVerifierExists :=\n                    call(\n                        gas(), // Remaining gas.\n                        0x00007bd799e4A591FeA53f8A8a3E9f931626Ba7e, // Reverting verifier.\n                        0, // Send zero ETH.\n                        m, // Start of memory.\n                        add(returndatasize(), 0x40), // Length of calldata in memory.\n                        staticcall(gas(), 4, add(signature, 0x20), n, add(m, 0x40), n), // 1.\n                        0x00 // Length of returndata to write.\n                    )\n                isValid := gt(returndatasize(), willBeZeroIfRevertingVerifierExists)\n                break\n            }\n            // Do `ecrecover` fallback if `noCode && !isValid`.\n            for {} gt(noCode, isValid) {} {\n                switch n\n                case 64 {\n                    let vs := mload(add(signature, 0x40))\n                    mstore(0x20, add(shr(255, vs), 27)) // `v`.\n                    mstore(0x60, shr(1, shl(1, vs))) // `s`.\n                }\n                case 65 {\n                    mstore(0x20, byte(0, mload(add(signature, 0x60)))) // `v`.\n                    mstore(0x60, mload(add(signature, 0x40))) // `s`.\n                }\n                default { break }\n                let m := mload(0x40)\n                mstore(0x00, hash)\n                mstore(0x40, mload(add(signature, 0x20))) // `r`.\n                let recovered := mload(staticcall(gas(), 1, 0x00, 0x80, 0x01, 0x20))\n                isValid := gt(returndatasize(), shl(96, xor(signer, recovered)))\n                mstore(0x60, 0) // Restore the zero slot.\n                mstore(0x40, m) // Restore the free memory pointer.\n                break\n            }\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     HASHING OPERATIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns an Ethereum Signed Message, created from a `hash`.\n    /// This produces a hash corresponding to the one signed with the\n    /// [`eth_sign`](https://eth.wiki/json-rpc/API#eth_sign)\n    /// JSON-RPC method as part of EIP-191.\n    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x20, hash) // Store into scratch space for keccak256.\n            mstore(0x00, \"\\x00\\x00\\x00\\x00\\x19Ethereum Signed Message:\\n32\") // 28 bytes.\n            result := keccak256(0x04, 0x3c) // `32 * 2 - (32 - 28) = 60 = 0x3c`.\n        }\n    }\n\n    /// @dev Returns an Ethereum Signed Message, created from `s`.\n    /// This produces a hash corresponding to the one signed with the\n    /// [`eth_sign`](https://eth.wiki/json-rpc/API#eth_sign)\n    /// JSON-RPC method as part of EIP-191.\n    /// Note: Supports lengths of `s` up to 999999 bytes.\n    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let sLength := mload(s)\n            let o := 0x20\n            mstore(o, \"\\x19Ethereum Signed Message:\\n\") // 26 bytes, zero-right-padded.\n            mstore(0x00, 0x00)\n            // Convert the `s.length` to ASCII decimal representation: `base10(s.length)`.\n            for { let temp := sLength } 1 {} {\n                o := sub(o, 1)\n                mstore8(o, add(48, mod(temp, 10)))\n                temp := div(temp, 10)\n                if iszero(temp) { break }\n            }\n            let n := sub(0x3a, o) // Header length: `26 + 32 - o`.\n            // Throw an out-of-offset error (consumes all gas) if the header exceeds 32 bytes.\n            returndatacopy(returndatasize(), returndatasize(), gt(n, 0x20))\n            mstore(s, or(mload(0x00), mload(n))) // Temporarily store the header.\n            result := keccak256(add(s, sub(0x20, n)), add(n, sLength))\n            mstore(s, sLength) // Restore the length.\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                   EMPTY CALLDATA HELPERS                   */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns an empty calldata bytes.\n    function emptySignature() internal pure returns (bytes calldata signature) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            signature.length := 0\n        }\n    }\n}\n"}},"language":"Solidity","settings":{"viaIR":false,"metadata":{"appendCBOR":true,"bytecodeHash":"ipfs","useLiteralContent":false},"optimizer":{"runs":1000000,"enabled":true},"evmVersion":"cancun","remappings":["@solady/=lib/solady/","@forge-std/=lib/forge-std/","@deposit-wallet/src/=src/"]}},"stdJsonOutput":{"sources":{"src/Errors.sol":{"id":15},"src/Events.sol":{"id":16},"src/DepositWallet.sol":{"id":13},"src/libraries/Ownable.sol":{"id":18},"src/libraries/WalletLib.sol":{"id":20},"src/DepositWalletFactory.sol":{"id":14},"lib/solady/src/utils/ECDSA.sol":{"id":6},"lib/solady/src/auth/Ownable.sol":{"id":2},"lib/solady/src/utils/EIP712.sol":{"id":7},"lib/solady/src/tokens/ERC1155.sol":{"id":4},"lib/solady/src/utils/LibClone.sol":{"id":9},"src/interfaces/IDepositWallet.sol":{"id":17},"src/libraries/SessionSignerLib.sol":{"id":19},"lib/solady/src/accounts/ERC1271.sol":{"id":0},"lib/solady/src/accounts/Receiver.sol":{"id":1},"lib/solady/src/auth/OwnableRoles.sol":{"id":3},"lib/solady/src/utils/Initializable.sol":{"id":8},"lib/solady/src/utils/SafeTransferLib.sol":{"id":10},"lib/solady/src/utils/UUPSUpgradeable.sol":{"id":12},"lib/solady/src/utils/CallContextChecker.sol":{"id":5},"lib/solady/src/utils/SignatureCheckerLib.sol":{"id":11}},"contracts":{"src/DepositWallet.sol":{"DepositWallet":{"abi":[{"type":"constructor","inputs":[],"stateMutability":"nonpayable"},{"name":"CallFailed","type":"error","inputs":[]},{"name":"EmptyBatch","type":"error","inputs":[]},{"name":"Expired","type":"error","inputs":[]},{"name":"FnSelectorNotRecognized","type":"error","inputs":[]},{"name":"InvalidImplementation","type":"error","inputs":[]},{"name":"InvalidInitialization","type":"error","inputs":[]},{"name":"InvalidNonce","type":"error","inputs":[]},{"name":"InvalidOwner","type":"error","inputs":[]},{"name":"InvalidSignature","type":"error","inputs":[]},{"name":"InvalidWallet","type":"error","inputs":[]},{"name":"NoPendingOwner","type":"error","inputs":[]},{"name":"NotInitializing","type":"error","inputs":[]},{"name":"NotPaused","type":"error","inputs":[]},{"name":"OnlyFactory","type":"error","inputs":[]},{"name":"OnlySelf","type":"error","inputs":[]},{"name":"SessionSignerSelfCallNotAllowed","type":"error","inputs":[]},{"name":"SessionSignerUnauthorized","type":"error","inputs":[]},{"name":"TimelockInsufficientDelay","type":"error","inputs":[]},{"name":"Unauthorized","type":"error","inputs":[]},{"name":"UnauthorizedCallContext","type":"error","inputs":[]},{"name":"UpgradeFailed","type":"error","inputs":[]},{"name":"AllowanceRevoked","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"spender","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"ApprovalForAllRevoked","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"operator","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"BatchExecuted","type":"event","inputs":[{"name":"nonce","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"name":"ERC1155BatchWithdrawal","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"to","type":"address","indexed":true,"internalType":"address"},{"name":"ids","type":"uint256[]","indexed":false,"internalType":"uint256[]"},{"name":"amounts","type":"uint256[]","indexed":false,"internalType":"uint256[]"}],"anonymous":false},{"name":"ERC20Withdrawal","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"to","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"Execution","type":"event","inputs":[{"name":"target","type":"address","indexed":true,"internalType":"address"},{"name":"value","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"data","type":"bytes","indexed":false,"internalType":"bytes"},{"name":"result","type":"bytes","indexed":false,"internalType":"bytes"}],"anonymous":false},{"name":"Initialized","type":"event","inputs":[{"name":"version","type":"uint64","indexed":false,"internalType":"uint64"}],"anonymous":false},{"name":"OwnershipHandoverCanceled","type":"event","inputs":[{"name":"pendingOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"OwnershipHandoverCompleted","type":"event","inputs":[{"name":"previousOwner","type":"address","indexed":true,"internalType":"address"},{"name":"newOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"OwnershipHandoverRequested","type":"event","inputs":[{"name":"pendingOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"OwnershipTransferred","type":"event","inputs":[{"name":"oldOwner","type":"address","indexed":true,"internalType":"address"},{"name":"newOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"Paused","type":"event","inputs":[{"name":"timestamp","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"SessionSignerAuthorized","type":"event","inputs":[{"name":"sessionSigner","type":"address","indexed":true,"internalType":"address"},{"name":"validUntil","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"SessionSignerRevoked","type":"event","inputs":[{"name":"sessionSigner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"SessionSignerRevokedEmergency","type":"event","inputs":[{"name":"sessionSigner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"Unpaused","type":"event","inputs":[{"name":"timestamp","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"Upgraded","type":"event","inputs":[{"name":"implementation","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"fallback","stateMutability":"payable"},{"name":"authorizeSessionSigner","type":"function","inputs":[{"name":"_sessionSigner","type":"address","internalType":"address"},{"name":"_validUntil","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"cancelOwnershipHandover","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"completeOwnershipHandover","type":"function","inputs":[{"name":"_deadline","type":"uint256","internalType":"uint256"},{"name":"_signature","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"eip712Domain","type":"function","inputs":[],"outputs":[{"name":"fields","type":"bytes1","internalType":"bytes1"},{"name":"name","type":"string","internalType":"string"},{"name":"version","type":"string","internalType":"string"},{"name":"chainId","type":"uint256","internalType":"uint256"},{"name":"verifyingContract","type":"address","internalType":"address"},{"name":"salt","type":"bytes32","internalType":"bytes32"},{"name":"extensions","type":"uint256[]","internalType":"uint256[]"}],"stateMutability":"view"},{"name":"execute","type":"function","inputs":[{"name":"_batch","type":"tuple","components":[{"name":"wallet","type":"address","internalType":"address"},{"name":"nonce","type":"uint256","internalType":"uint256"},{"name":"deadline","type":"uint256","internalType":"uint256"},{"name":"calls","type":"tuple[]","components":[{"name":"target","type":"address","internalType":"address"},{"name":"value","type":"uint256","internalType":"uint256"},{"name":"data","type":"bytes","internalType":"bytes"}],"internalType":"struct Call[]"}],"internalType":"struct Batch"},{"name":"_signature","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"factory","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"id","type":"function","inputs":[],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"name":"initialize","type":"function","inputs":[{"name":"_owner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"isValidSignature","type":"function","inputs":[{"name":"_hash","type":"bytes32","internalType":"bytes32"},{"name":"_signature","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"result","type":"bytes4","internalType":"bytes4"}],"stateMutability":"view"},{"name":"nonce","type":"function","inputs":[],"outputs":[{"name":"nonce_","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"owner","type":"function","inputs":[],"outputs":[{"name":"result","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"pause","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"paused","type":"function","inputs":[],"outputs":[{"name":"paused_","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"pendingOwner","type":"function","inputs":[],"outputs":[{"name":"result","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"proxiableUUID","type":"function","inputs":[],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"name":"revokeAllowance","type":"function","inputs":[{"name":"_token","type":"address","internalType":"address"},{"name":"_spender","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"revokeApprovalForAll","type":"function","inputs":[{"name":"_token","type":"address","internalType":"address"},{"name":"_operator","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"revokeSessionSigner","type":"function","inputs":[{"name":"_sessionSigner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"revokeSessionSignerEmergency","type":"function","inputs":[{"name":"_sessionSigner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"sessionSignerAuthorizedUntil","type":"function","inputs":[{"name":"_signer","type":"address","internalType":"address"}],"outputs":[{"name":"validUntil_","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"transferOwnership","type":"function","inputs":[{"name":"_newOwner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"unpause","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"upgrade","type":"function","inputs":[{"name":"_implementation","type":"address","internalType":"address"},{"name":"_data","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"upgradeToAndCall","type":"function","inputs":[{"name":"newImplementation","type":"address","internalType":"address"},{"name":"data","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"payable"},{"name":"withdrawERC1155","type":"function","inputs":[{"name":"_token","type":"address","internalType":"address"},{"name":"_to","type":"address","internalType":"address"},{"name":"_ids","type":"uint256[]","internalType":"uint256[]"},{"name":"_amounts","type":"uint256[]","internalType":"uint256[]"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"withdrawERC20","type":"function","inputs":[{"name":"_token","type":"address","internalType":"address"},{"name":"_to","type":"address","internalType":"address"},{"name":"_amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"receive","stateMutability":"payable"}],"metadata":"{\"compiler\":{\"version\":\"0.8.34+commit.80d5c536\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"CallFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EmptyBatch\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"Expired\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FnSelectorNotRecognized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidImplementation\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidInitialization\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidNonce\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidOwner\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidSignature\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidWallet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NoPendingOwner\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotInitializing\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotPaused\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyFactory\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlySelf\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SessionSignerSelfCallNotAllowed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SessionSignerUnauthorized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TimelockInsufficientDelay\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"Unauthorized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UnauthorizedCallContext\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UpgradeFailed\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"AllowanceRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"ApprovalForAllRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"}],\"name\":\"BatchExecuted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"name\":\"ERC1155BatchWithdrawal\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"ERC20Withdrawal\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"result\",\"type\":\"bytes\"}],\"name\":\"Execution\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"pendingOwner\",\"type\":\"address\"}],\"name\":\"OwnershipHandoverCanceled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipHandoverCompleted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"pendingOwner\",\"type\":\"address\"}],\"name\":\"OwnershipHandoverRequested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sessionSigner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"validUntil\",\"type\":\"uint256\"}],\"name\":\"SessionSignerAuthorized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sessionSigner\",\"type\":\"address\"}],\"name\":\"SessionSignerRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sessionSigner\",\"type\":\"address\"}],\"name\":\"SessionSignerRevokedEmergency\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"stateMutability\":\"payable\",\"type\":\"fallback\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_sessionSigner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_validUntil\",\"type\":\"uint256\"}],\"name\":\"authorizeSessionSigner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"cancelOwnershipHandover\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_deadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_signature\",\"type\":\"bytes\"}],\"name\":\"completeOwnershipHandover\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"eip712Domain\",\"outputs\":[{\"internalType\":\"bytes1\",\"name\":\"fields\",\"type\":\"bytes1\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"version\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"verifyingContract\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"},{\"internalType\":\"uint256[]\",\"name\":\"extensions\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"wallet\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"internalType\":\"struct Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"internalType\":\"struct Batch\",\"name\":\"_batch\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"_signature\",\"type\":\"bytes\"}],\"name\":\"execute\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"id\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_hash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"_signature\",\"type\":\"bytes\"}],\"name\":\"isValidSignature\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"result\",\"type\":\"bytes4\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"nonce_\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"result\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"paused_\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"result\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_spender\",\"type\":\"address\"}],\"name\":\"revokeAllowance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_operator\",\"type\":\"address\"}],\"name\":\"revokeApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_sessionSigner\",\"type\":\"address\"}],\"name\":\"revokeSessionSigner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_sessionSigner\",\"type\":\"address\"}],\"name\":\"revokeSessionSignerEmergency\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_signer\",\"type\":\"address\"}],\"name\":\"sessionSignerAuthorizedUntil\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"validUntil_\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_implementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"upgrade\",\"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\":\"_token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"_ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_amounts\",\"type\":\"uint256[]\"}],\"name\":\"withdrawERC1155\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"withdrawERC20\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"author\":\"Polymarket\",\"details\":\"Deployed as an ERC-1967 proxy via {DepositWalletFactory}. Supports batch execution      of arbitrary calls signed by the owner or an authorized session signer, ERC-1271      signature validation, two-step ownership transfers, and an owner-controlled pause      mechanism with a timelock for emergency asset recovery.\",\"errors\":{\"FnSelectorNotRecognized()\":[{\"details\":\"The function selector is not recognized.\"}],\"InvalidInitialization()\":[{\"details\":\"The contract is already initialized.\"}],\"NotInitializing()\":[{\"details\":\"The contract is not initializing.\"}],\"UnauthorizedCallContext()\":[{\"details\":\"The call is from an unauthorized call context.\"}],\"UpgradeFailed()\":[{\"details\":\"The upgrade failed.\"}]},\"events\":{\"AllowanceRevoked(address,address)\":{\"params\":{\"spender\":\"The address whose allowance was revoked.\",\"token\":\"The address of the ERC-20 token.\"}},\"ApprovalForAllRevoked(address,address)\":{\"params\":{\"operator\":\"The address whose approval was revoked.\",\"token\":\"The address of the ERC-1155 token.\"}},\"BatchExecuted(uint256)\":{\"params\":{\"nonce\":\"The nonce of the executed batch.\"}},\"ERC1155BatchWithdrawal(address,address,uint256[],uint256[])\":{\"params\":{\"amounts\":\"The amounts withdrawn for each token ID.\",\"ids\":\"The token IDs withdrawn.\",\"to\":\"The recipient address.\",\"token\":\"The address of the ERC-1155 token.\"}},\"ERC20Withdrawal(address,address,uint256)\":{\"params\":{\"amount\":\"The amount of tokens withdrawn.\",\"to\":\"The recipient address.\",\"token\":\"The address of the ERC-20 token.\"}},\"Execution(address,uint256,bytes,bytes)\":{\"params\":{\"data\":\"The calldata sent to the target.\",\"result\":\"The return data from the call.\",\"target\":\"The address called.\",\"value\":\"The ETH value sent with the call.\"}},\"Initialized(uint64)\":{\"details\":\"Triggered when the contract has been initialized.\"},\"OwnershipHandoverCanceled(address)\":{\"params\":{\"pendingOwner\":\"The address of the canceled pending owner.\"}},\"OwnershipHandoverCompleted(address,address)\":{\"params\":{\"newOwner\":\"The address of the incoming owner.\",\"previousOwner\":\"The address of the outgoing owner.\"}},\"OwnershipHandoverRequested(address)\":{\"params\":{\"pendingOwner\":\"The address of the proposed new owner.\"}},\"OwnershipTransferred(address,address)\":{\"params\":{\"newOwner\":\"The address of the new owner.\",\"oldOwner\":\"The address of the previous owner.\"}},\"Paused(uint256)\":{\"params\":{\"timestamp\":\"The block timestamp at which the wallet was paused.\"}},\"SessionSignerAuthorized(address,uint256)\":{\"params\":{\"sessionSigner\":\"The address of the authorized session signer.\",\"validUntil\":\"The timestamp until which the session signer is valid.\"}},\"SessionSignerRevoked(address)\":{\"params\":{\"sessionSigner\":\"The address of the revoked session signer.\"}},\"SessionSignerRevokedEmergency(address)\":{\"params\":{\"sessionSigner\":\"The address of the revoked session signer.\"}},\"Unpaused(uint256)\":{\"params\":{\"timestamp\":\"The block timestamp at which the wallet was unpaused.\"}},\"Upgraded(address)\":{\"details\":\"Emitted when the proxy's implementation is upgraded.\"}},\"kind\":\"dev\",\"methods\":{\"authorizeSessionSigner(address,uint256)\":{\"details\":\"Can only be invoked via batch execution (self-call).\",\"params\":{\"_sessionSigner\":\"The address to authorize as a session signer.\",\"_validUntil\":\"The timestamp until which the session signer is valid.\"}},\"cancelOwnershipHandover()\":{\"details\":\"Can only be invoked via batch execution (self-call).\"},\"completeOwnershipHandover(uint256,bytes)\":{\"details\":\"Permissionless — anyone may submit, but the pending owner must have signed      an EIP-712 `OwnershipHandover` message.\",\"params\":{\"_deadline\":\"The deadline timestamp included in the signed message.\",\"_signature\":\"The EIP-712 signature from the pending owner.\"}},\"constructor\":{\"details\":\"Disables initializers on the implementation contract to prevent misuse.\"},\"eip712Domain()\":{\"details\":\"See: https://eips.ethereum.org/EIPS/eip-5267\"},\"execute((address,uint256,uint256,(address,uint256,bytes)[]),bytes)\":{\"details\":\"Validates the batch (non-empty, correct wallet, nonce, deadline), verifies the EIP-712      signature against the owner or an authorized session signer, then executes each call      sequentially. Session signers are prevented from calling the wallet itself.\",\"params\":{\"_batch\":\"The batch containing the target wallet, nonce, deadline, and calls.\",\"_signature\":\"The EIP-712 signature authorizing the batch (owner or session signer).\"}},\"factory()\":{\"returns\":{\"_0\":\"The factory address decoded from the ERC-1967 immutable args.\"}},\"id()\":{\"returns\":{\"_0\":\"The wallet ID decoded from the ERC-1967 immutable args.\"}},\"initialize(address)\":{\"details\":\"This replaces the constructor for upgradeable contracts.\",\"params\":{\"_owner\":\"The address to set as the wallet owner.\"}},\"isValidSignature(bytes32,bytes)\":{\"details\":\"Overrides Solady's ERC-1271 implementation to support session signer signatures.      The resolved signer is stored in memory at `_ERC1271_SIGNER_MEM_SLOT` so that      `_erc1271Signer` can return it to the parent verification logic.\",\"params\":{\"_hash\":\"The hash that was signed.\",\"_signature\":\"The signature to validate (may contain a session signer wrapper).\"},\"returns\":{\"result\":\"`ERC1271_MAGIC_VALUE` if the signature is valid, otherwise reverts or returns failure.\"}},\"nonce()\":{\"returns\":{\"nonce_\":\"The current nonce.\"}},\"owner()\":{\"returns\":{\"result\":\"The owner address.\"}},\"pause()\":{\"details\":\"After pausing, the owner must wait for the timelock delay before calling      paused-only functions (e.g., withdrawals, revocations).\"},\"paused()\":{\"returns\":{\"paused_\":\"The paused timestamp, or zero if not paused.\"}},\"pendingOwner()\":{\"returns\":{\"result\":\"The pending owner address, or `address(0)` if none.\"}},\"proxiableUUID()\":{\"details\":\"Returns the storage slot used by the implementation, as specified in [ERC1822](https://eips.ethereum.org/EIPS/eip-1822). Note: The `notDelegated` modifier prevents accidental upgrades to an implementation that is a proxy contract.\"},\"revokeAllowance(address,address)\":{\"details\":\"Requires the wallet to be paused and the timelock delay to have elapsed.\",\"params\":{\"_spender\":\"The spender whose allowance is revoked.\",\"_token\":\"The ERC-20 token address.\"}},\"revokeApprovalForAll(address,address)\":{\"details\":\"Requires the wallet to be paused and the timelock delay to have elapsed.\",\"params\":{\"_operator\":\"The operator whose approval is revoked.\",\"_token\":\"The ERC-1155 token address.\"}},\"revokeSessionSigner(address)\":{\"details\":\"Can only be invoked via batch execution (self-call).\",\"params\":{\"_sessionSigner\":\"The session signer address to revoke.\"}},\"revokeSessionSignerEmergency(address)\":{\"details\":\"Requires the wallet to be paused and the timelock delay to have elapsed.\",\"params\":{\"_sessionSigner\":\"The session signer to revoke.\"}},\"sessionSignerAuthorizedUntil(address)\":{\"params\":{\"_signer\":\"The session signer address to query.\"},\"returns\":{\"validUntil_\":\"The authorization expiry timestamp, or zero if not authorized.\"}},\"transferOwnership(address)\":{\"details\":\"Can only be invoked via batch execution (self-call).\",\"params\":{\"_newOwner\":\"The proposed new owner address.\"}},\"unpause()\":{\"details\":\"Requires the wallet to be paused and the timelock delay to have elapsed.\"},\"upgrade(address,bytes)\":{\"details\":\"Can only be invoked via batch execution (self-call).      The new implementation must be authorized by the factory.\",\"params\":{\"_data\":\"Optional calldata to execute on the new implementation after upgrade.\",\"_implementation\":\"The address of the new implementation contract.\"}},\"upgradeToAndCall(address,bytes)\":{\"details\":\"Upgrades the proxy's implementation to `newImplementation`. Emits a {Upgraded} event. Note: Passing in empty `data` skips the delegatecall to `newImplementation`.\"},\"withdrawERC1155(address,address,uint256[],uint256[])\":{\"details\":\"Requires the wallet to be paused and the timelock delay to have elapsed.\",\"params\":{\"_amounts\":\"The amounts for each token ID.\",\"_ids\":\"The token IDs to withdraw.\",\"_to\":\"The recipient address.\",\"_token\":\"The ERC-1155 token address.\"}},\"withdrawERC20(address,address,uint256)\":{\"details\":\"Requires the wallet to be paused and the timelock delay to have elapsed.\",\"params\":{\"_amount\":\"The amount of tokens to withdraw.\",\"_to\":\"The recipient address.\",\"_token\":\"The ERC-20 token address.\"}}},\"stateVariables\":{\"_ERC1271_SIGNER_MEM_SLOT\":{\"details\":\"Memory slot used to pass the resolved signer from `isValidSignature` to `_erc1271Signer`. Chosen at 0x80 (first allocatable slot). Before the super call we advance the free memory pointer to 0xa0 so the parent and all callees allocate above this slot and do not overwrite.\"},\"_NONCE_SLOT\":{\"details\":\"Storage slot for the replay-protection nonce. keccak256(\\\"DepositWallet.nonce\\\") - 1\"},\"_PAUSED_SLOT\":{\"details\":\"Storage slot for the paused timestamp. keccak256(\\\"DepositWallet.paused\\\") - 1\"},\"_SESSION_SIGNER_SLOT\":{\"details\":\"Base storage slot for the session signer mapping. keccak256(\\\"DepositWallet.sessionSignerAuthorizedUntil\\\") - 1\"}},\"title\":\"DepositWallet\",\"version\":1},\"userdoc\":{\"errors\":{\"CallFailed()\":[{\"notice\":\"Thrown when a low-level call within a batch execution fails.\"}],\"EmptyBatch()\":[{\"notice\":\"Thrown when a batch contains zero calls.\"}],\"Expired()\":[{\"notice\":\"Thrown when a deadline has passed.\"}],\"InvalidImplementation()\":[{\"notice\":\"Thrown when a UUPS upgrade targets an unauthorized implementation.\"}],\"InvalidNonce()\":[{\"notice\":\"Thrown when the batch nonce does not match the wallet's current nonce.\"}],\"InvalidOwner()\":[{\"notice\":\"Thrown when the provided owner address is invalid (e.g., zero address).\"}],\"InvalidSignature()\":[{\"notice\":\"Thrown when a signature fails verification.\"}],\"InvalidWallet()\":[{\"notice\":\"Thrown when the batch's wallet address does not match the executing wallet.\"}],\"NoPendingOwner()\":[{\"notice\":\"Thrown when an ownership handover is expected but none is pending.\"}],\"NotPaused()\":[{\"notice\":\"Thrown when a paused-only function is called while the wallet is not paused.\"}],\"OnlyFactory()\":[{\"notice\":\"Thrown when the caller is not the factory contract.\"}],\"OnlySelf()\":[{\"notice\":\"Thrown when a function restricted to self-calls is invoked externally.\"}],\"SessionSignerSelfCallNotAllowed()\":[{\"notice\":\"Thrown when a session signer attempts to call the wallet itself.\"}],\"SessionSignerUnauthorized()\":[{\"notice\":\"Thrown when a session signer's authorization has expired or does not exist.\"}],\"TimelockInsufficientDelay()\":[{\"notice\":\"Thrown when the timelock delay has not elapsed since the wallet was paused.\"}],\"Unauthorized()\":[{\"notice\":\"Thrown when the caller is not authorized to perform the action.\"}]},\"events\":{\"AllowanceRevoked(address,address)\":{\"notice\":\"Emitted when an ERC-20 allowance is revoked by the owner.\"},\"ApprovalForAllRevoked(address,address)\":{\"notice\":\"Emitted when an ERC-1155 operator approval is revoked by the owner.\"},\"BatchExecuted(uint256)\":{\"notice\":\"Emitted after a batch of calls has been successfully executed.\"},\"ERC1155BatchWithdrawal(address,address,uint256[],uint256[])\":{\"notice\":\"Emitted when ERC-1155 tokens are batch-withdrawn from the wallet by the owner.\"},\"ERC20Withdrawal(address,address,uint256)\":{\"notice\":\"Emitted when ERC-20 tokens are withdrawn from the wallet by the owner.\"},\"Execution(address,uint256,bytes,bytes)\":{\"notice\":\"Emitted for each individual call executed within a batch.\"},\"OwnershipHandoverCanceled(address)\":{\"notice\":\"Emitted when a pending ownership handover is canceled.\"},\"OwnershipHandoverCompleted(address,address)\":{\"notice\":\"Emitted when a two-step ownership handover is completed.\"},\"OwnershipHandoverRequested(address)\":{\"notice\":\"Emitted when a two-step ownership handover is initiated.\"},\"OwnershipTransferred(address,address)\":{\"notice\":\"Emitted when ownership is transferred.\"},\"Paused(uint256)\":{\"notice\":\"Emitted when the wallet is paused.\"},\"SessionSignerAuthorized(address,uint256)\":{\"notice\":\"Emitted when a session signer is authorized.\"},\"SessionSignerRevoked(address)\":{\"notice\":\"Emitted when a session signer is revoked via a self-call.\"},\"SessionSignerRevokedEmergency(address)\":{\"notice\":\"Emitted when a session signer is emergency-revoked by the owner while paused.\"},\"Unpaused(uint256)\":{\"notice\":\"Emitted when the wallet is unpaused.\"}},\"kind\":\"user\",\"methods\":{\"authorizeSessionSigner(address,uint256)\":{\"notice\":\"Authorizes a session signer until the specified timestamp.\"},\"cancelOwnershipHandover()\":{\"notice\":\"Cancels any pending ownership handover.\"},\"completeOwnershipHandover(uint256,bytes)\":{\"notice\":\"Completes a pending ownership transfer.\"},\"execute((address,uint256,uint256,(address,uint256,bytes)[]),bytes)\":{\"notice\":\"Executes a signed batch of calls through the factory.\"},\"factory()\":{\"notice\":\"Returns the factory contract that deployed this wallet.\"},\"id()\":{\"notice\":\"Returns the unique identifier assigned to this wallet at deployment.\"},\"initialize(address)\":{\"notice\":\"Initializes the wallet with a designated owner.\"},\"isValidSignature(bytes32,bytes)\":{\"notice\":\"Validates a signature against the wallet owner or an authorized session signer.\"},\"nonce()\":{\"notice\":\"Returns the wallet's current execution nonce.\"},\"owner()\":{\"notice\":\"Returns the current owner of the wallet.\"},\"pause()\":{\"notice\":\"Pauses the wallet, recording the current timestamp.\"},\"paused()\":{\"notice\":\"Returns the timestamp at which the wallet was paused.\"},\"pendingOwner()\":{\"notice\":\"Returns the pending owner awaiting handover completion.\"},\"revokeAllowance(address,address)\":{\"notice\":\"Revokes an ERC-20 allowance by setting it to zero.\"},\"revokeApprovalForAll(address,address)\":{\"notice\":\"Revokes an ERC-1155 operator approval.\"},\"revokeSessionSigner(address)\":{\"notice\":\"Revokes a session signer's authorization.\"},\"revokeSessionSignerEmergency(address)\":{\"notice\":\"Emergency revocation of a session signer by the owner.\"},\"sessionSignerAuthorizedUntil(address)\":{\"notice\":\"Returns the timestamp until which a session signer is authorized.\"},\"transferOwnership(address)\":{\"notice\":\"Initiates a two-step ownership transfer to a new owner.\"},\"unpause()\":{\"notice\":\"Unpauses the wallet.\"},\"upgrade(address,bytes)\":{\"notice\":\"Upgrades the wallet implementation via UUPS.\"},\"withdrawERC1155(address,address,uint256[],uint256[])\":{\"notice\":\"Batch-withdraws ERC-1155 tokens from the wallet.\"},\"withdrawERC20(address,address,uint256)\":{\"notice\":\"Withdraws ERC-20 tokens from the wallet.\"}},\"notice\":\"Minimal, upgradeable smart-contract wallet for deposit operations.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/DepositWallet.sol\":\"DepositWallet\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[\":@deposit-wallet/src/=src/\",\":@forge-std/=lib/forge-std/\",\":@solady/=lib/solady/\"]},\"sources\":{\"lib/solady/src/accounts/ERC1271.sol\":{\"keccak256\":\"0x196fbf4f691aba451297e24974216613d1d13514f35a446662ad6b8d62f1a2fd\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://4fcf2fb41d12165cc219f737472023997b726247d7bc7f7e2b26fcf395047953\",\"dweb:/ipfs/QmYoHCQaLtW2M4U5NpYWPsomzqABu1GFJJ71TJHf4Qm33N\"]},\"lib/solady/src/accounts/Receiver.sol\":{\"keccak256\":\"0xc879aa81dd5639f5fd97b31acd91658ffe33ae4b72b70ed7bd701c37addce43b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://2e03a8d37d48644857d94f7432c1e2272bfd19649dfe80aba8f979f157f71f00\",\"dweb:/ipfs/QmWWS34bNWhiZgLXS9gtD8N2dxreRsVXxhvQRKqd4wKUuU\"]},\"lib/solady/src/auth/Ownable.sol\":{\"keccak256\":\"0xc208cdd9de02bbf4b5edad18b88e23a2be7ff56d2287d5649329dc7cda64b9a3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e8fba079cc7230c617f7493a2e97873f88e59a53a5018fcb2e2b6ac42d8aa5a3\",\"dweb:/ipfs/QmTXg8GSt8hsK2cZhbPFrund1mrwVdkLQmEPoQaFy4fhjs\"]},\"lib/solady/src/auth/OwnableRoles.sol\":{\"keccak256\":\"0x34fc1e43ab0c413faea47d5198d49879ccafd3a46c1657083ec79e3f4ca4359d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://539e93fa51da529c6fdf122a68239652e98a4e31eaf5a08868339404878a095d\",\"dweb:/ipfs/Qmf4SGkn3LDLGAeFmuSnETrQUCa8g8h2dSoukCwyj36yy6\"]},\"lib/solady/src/tokens/ERC1155.sol\":{\"keccak256\":\"0x306249cc3611727ffa9e15ec816282a60fd9629e5ea03ab1c780d638d1537c68\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f5627bb90f7db938144047956c23ce8b1b00925aeceb75561f599585f14c2a76\",\"dweb:/ipfs/QmPQ9wMm5govH7jNTF7AMwvt6LrrZgurJhPe7feZBxfpop\"]},\"lib/solady/src/utils/CallContextChecker.sol\":{\"keccak256\":\"0xc54c743a03f4909826712e9c6b683ca95e8b0c120c55284a9e3572621ebd734b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://3d3138009aba3d2fd310636f3cc1d6029e970c57ddb74693bebf2a02d3e6f12d\",\"dweb:/ipfs/QmauMpcVDyQqVnAUF75DXy831LvtxyFS7GND7kge1Zgw55\"]},\"lib/solady/src/utils/ECDSA.sol\":{\"keccak256\":\"0xb0754260daabfe6f20dd16f2213823f27c8df1089b43c8eda9b3c2a6eca07478\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ffef4ca363ec0e2437b5e195fbb3d58bdc6750921fce32f351ca1c092ad36a75\",\"dweb:/ipfs/QmTcnAyxwvQg3h357PdB8S8oz5bBt85J4SvEgmMqwAfPKF\"]},\"lib/solady/src/utils/EIP712.sol\":{\"keccak256\":\"0x53ccaa757944900e7423347c3c35ea5a905580f3f075452b8468a501a9c39839\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://aa5688d98319fbeb5b3c46330a394e15a0f2c862d651415e183da4179b918351\",\"dweb:/ipfs/QmZZFrFWmUCFL1qkZDVm3oqrDkQfumYnnksF6cpPkAHdtJ\"]},\"lib/solady/src/utils/Initializable.sol\":{\"keccak256\":\"0x58ee7b2e966232ca1ca9e9e705d8afcefa83fe29d37d6f8361d73015a9db1fe4\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://59f134cb038e0a547f0a3dbfe9c9b6939f7b39dff64646a79e8cf2dd6ba14f80\",\"dweb:/ipfs/QmfXt149JQEWsYbLUkS9iLP6kGZqzHYyMg7SsLUUPgafEb\"]},\"lib/solady/src/utils/LibClone.sol\":{\"keccak256\":\"0x1b96fd03a3948155bd2fe95dc4980930c759b174026e18f11bc8e88d55ae030e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://64998d16472a127031ee6a796ed9afcf13dd662afd30eb4d3e2a42c2bc9fd204\",\"dweb:/ipfs/QmTXHGy9t8YTW96tjiZ8RBqmijXUTqc1JznEBqHv8Duc4A\"]},\"lib/solady/src/utils/SafeTransferLib.sol\":{\"keccak256\":\"0xf53a25143307304d9de7186f93f11faae3cc4f722c4b088aed6f4f8f87a02f7a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b722c08826ece540bbc4ee9f825aac501282c0900a0a2caa618154d77f23223d\",\"dweb:/ipfs/QmeMsPT5S4vV8f7DYC2eZ7TBCrtRi9cKMsoW6Ca62Uaqwg\"]},\"lib/solady/src/utils/SignatureCheckerLib.sol\":{\"keccak256\":\"0x098c7eb88b3048f227b240e0e5bf1da4a8f7622b30f6d7c06416bfcab3225e77\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://50c2766f652916c5d6433665fb1c3b2f04c3d9292a35c12e0f8d7c71dd6438cb\",\"dweb:/ipfs/QmWTMwN2RDZUUPg7KkH1qFBjTSh84Zw8bbYwRBCQUtLN2h\"]},\"lib/solady/src/utils/UUPSUpgradeable.sol\":{\"keccak256\":\"0x63899eaf1a24713464b8084ada33a83c4b7db789fe83ae22f016e39646bee361\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://617fa735ffa8ba31051745614a508abd69d2cfc1b1bc1eb3c772865db5f7ce65\",\"dweb:/ipfs/QmR1pQbHPyXcLbFm2vHrXBs1qRFrGC22gF7wWYamYy8aaE\"]},\"src/DepositWallet.sol\":{\"keccak256\":\"0x9b1e2a01ef4e46a8e68f38562ffcea60da8822c16fa66fa763d4fe0d96484a14\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://3717dccfb4b5533d874565db8dce721458223603d8ae8b36980abdb971e990d4\",\"dweb:/ipfs/QmV8xGmVVhZYbZVkbJMqX7d4aCqReDPDwW6CpUDZkxznWh\"]},\"src/DepositWalletFactory.sol\":{\"keccak256\":\"0x9578f922ac4e65388fa00edaf19505edbc5d400d17b0360a0d7247790516ddf8\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://acfe35dae98a650bdaa404dd6b757e1b0bd998a05b8e8a956d82e702011c35cd\",\"dweb:/ipfs/QmSwhEfjumbg7urxaDTyBgXYsJvKbn1m3Bcxs1cjEddZHE\"]},\"src/Errors.sol\":{\"keccak256\":\"0xc1737f29d8587bdd60a4e273ec5525052c60113013d61e72488aadf956875830\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://9b66ac96c4ab85adb1a5ddd4ea293ab059518eca27ea37850595fd48ca7ab614\",\"dweb:/ipfs/QmUnA1xzxhxQNUSiDXstTULYHhRW6n4KSMgDKcjkLxE6pW\"]},\"src/Events.sol\":{\"keccak256\":\"0x533975b4866e0587fa01133c71b41c31502c91e9e5dad7dcc4f326d8fcfd0a3d\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://07801a1a686c34ee79212fd0e757d95c3293df3e5d0342e2610b7dee649f9ba7\",\"dweb:/ipfs/QmY8YtxPYKSZCqpXHGLQUaVLNNTqrsTEyEyv8Wq9QDN7c1\"]},\"src/interfaces/IDepositWallet.sol\":{\"keccak256\":\"0xb746e6894bcad8ddc7b35fe094c8310bbc932fd99c58d8d11f4f1eae632f1620\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://a8ae7517449e209d01a7eeaba5249b30af3250e84750b0aaa4719daa33ab9a3f\",\"dweb:/ipfs/QmdEshsP7nsET7qdLWZg6RMfYdJRZwi3boWsFPNNUpkPav\"]},\"src/libraries/Ownable.sol\":{\"keccak256\":\"0xe4f63ef5f967690bee2e731f349df50ac378b88594001be7a3b0bc320abd817a\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://8c9970d4534c12b2a135b95799fc96f475630bdb8ef75ba583aeb95288705851\",\"dweb:/ipfs/QmV7x6DUfLyE4xmwV4sFV9g5WXY594aP986kKme9r1JUF5\"]},\"src/libraries/SessionSignerLib.sol\":{\"keccak256\":\"0x7ad60b737fcc5c25adc985978bbefb6c602739c79a4f748cebb461b791035f4b\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://028c0ed17bccc7193d339d497b14ae69e1a822382690c8ec2d48c195d98dc221\",\"dweb:/ipfs/QmVZibtLHvtFkhdFYfhspLDYm3dBcZkLkHEZh7QS1Zwe75\"]},\"src/libraries/WalletLib.sol\":{\"keccak256\":\"0x5434d2fa5ae09569a73ad2d42518f632bd41d52864c1e0320de97082b4273b95\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://0d5fd49206129a9f133ee6cf68ad3c17b866d4e43ef09638c2f2ddbc5c568453\",\"dweb:/ipfs/QmbngHk8oJG8uSsNny8qCXjuap64Eq1XUheCxUdjKgKHTH\"]}},\"version\":1}","userdoc":{"kind":"user","errors":{"Expired()":[{"notice":"Thrown when a deadline has passed."}],"OnlySelf()":[{"notice":"Thrown when a function restricted to self-calls is invoked externally."}],"NotPaused()":[{"notice":"Thrown when a paused-only function is called while the wallet is not paused."}],"CallFailed()":[{"notice":"Thrown when a low-level call within a batch execution fails."}],"EmptyBatch()":[{"notice":"Thrown when a batch contains zero calls."}],"OnlyFactory()":[{"notice":"Thrown when the caller is not the factory contract."}],"InvalidNonce()":[{"notice":"Thrown when the batch nonce does not match the wallet's current nonce."}],"InvalidOwner()":[{"notice":"Thrown when the provided owner address is invalid (e.g., zero address)."}],"Unauthorized()":[{"notice":"Thrown when the caller is not authorized to perform the action."}],"InvalidWallet()":[{"notice":"Thrown when the batch's wallet address does not match the executing wallet."}],"NoPendingOwner()":[{"notice":"Thrown when an ownership handover is expected but none is pending."}],"InvalidSignature()":[{"notice":"Thrown when a signature fails verification."}],"InvalidImplementation()":[{"notice":"Thrown when a UUPS upgrade targets an unauthorized implementation."}],"SessionSignerUnauthorized()":[{"notice":"Thrown when a session signer's authorization has expired or does not exist."}],"TimelockInsufficientDelay()":[{"notice":"Thrown when the timelock delay has not elapsed since the wallet was paused."}],"SessionSignerSelfCallNotAllowed()":[{"notice":"Thrown when a session signer attempts to call the wallet itself."}]},"events":{"Paused(uint256)":{"notice":"Emitted when the wallet is paused."},"Unpaused(uint256)":{"notice":"Emitted when the wallet is unpaused."},"BatchExecuted(uint256)":{"notice":"Emitted after a batch of calls has been successfully executed."},"SessionSignerRevoked(address)":{"notice":"Emitted when a session signer is revoked via a self-call."},"AllowanceRevoked(address,address)":{"notice":"Emitted when an ERC-20 allowance is revoked by the owner."},"OwnershipHandoverCanceled(address)":{"notice":"Emitted when a pending ownership handover is canceled."},"OwnershipHandoverRequested(address)":{"notice":"Emitted when a two-step ownership handover is initiated."},"OwnershipTransferred(address,address)":{"notice":"Emitted when ownership is transferred."},"ApprovalForAllRevoked(address,address)":{"notice":"Emitted when an ERC-1155 operator approval is revoked by the owner."},"Execution(address,uint256,bytes,bytes)":{"notice":"Emitted for each individual call executed within a batch."},"SessionSignerRevokedEmergency(address)":{"notice":"Emitted when a session signer is emergency-revoked by the owner while paused."},"ERC20Withdrawal(address,address,uint256)":{"notice":"Emitted when ERC-20 tokens are withdrawn from the wallet by the owner."},"SessionSignerAuthorized(address,uint256)":{"notice":"Emitted when a session signer is authorized."},"OwnershipHandoverCompleted(address,address)":{"notice":"Emitted when a two-step ownership handover is completed."},"ERC1155BatchWithdrawal(address,address,uint256[],uint256[])":{"notice":"Emitted when ERC-1155 tokens are batch-withdrawn from the wallet by the owner."}},"notice":"Minimal, upgradeable smart-contract wallet for deposit operations.","methods":{"id()":{"notice":"Returns the unique identifier assigned to this wallet at deployment."},"nonce()":{"notice":"Returns the wallet's current execution nonce."},"owner()":{"notice":"Returns the current owner of the wallet."},"pause()":{"notice":"Pauses the wallet, recording the current timestamp."},"paused()":{"notice":"Returns the timestamp at which the wallet was paused."},"factory()":{"notice":"Returns the factory contract that deployed this wallet."},"unpause()":{"notice":"Unpauses the wallet."},"pendingOwner()":{"notice":"Returns the pending owner awaiting handover completion."},"initialize(address)":{"notice":"Initializes the wallet with a designated owner."},"upgrade(address,bytes)":{"notice":"Upgrades the wallet implementation via UUPS."},"cancelOwnershipHandover()":{"notice":"Cancels any pending ownership handover."},"transferOwnership(address)":{"notice":"Initiates a two-step ownership transfer to a new owner."},"revokeSessionSigner(address)":{"notice":"Revokes a session signer's authorization."},"isValidSignature(bytes32,bytes)":{"notice":"Validates a signature against the wallet owner or an authorized session signer."},"revokeAllowance(address,address)":{"notice":"Revokes an ERC-20 allowance by setting it to zero."},"revokeApprovalForAll(address,address)":{"notice":"Revokes an ERC-1155 operator approval."},"revokeSessionSignerEmergency(address)":{"notice":"Emergency revocation of a session signer by the owner."},"sessionSignerAuthorizedUntil(address)":{"notice":"Returns the timestamp until which a session signer is authorized."},"withdrawERC20(address,address,uint256)":{"notice":"Withdraws ERC-20 tokens from the wallet."},"authorizeSessionSigner(address,uint256)":{"notice":"Authorizes a session signer until the specified timestamp."},"completeOwnershipHandover(uint256,bytes)":{"notice":"Completes a pending ownership transfer."},"withdrawERC1155(address,address,uint256[],uint256[])":{"notice":"Batch-withdraws ERC-1155 tokens from the wallet."},"execute((address,uint256,uint256,(address,uint256,bytes)[]),bytes)":{"notice":"Executes a signed batch of calls through the factory."}},"version":1},"devdoc":{"kind":"dev","title":"DepositWallet","author":"Polymarket","errors":{"UpgradeFailed()":[{"details":"The upgrade failed."}],"NotInitializing()":[{"details":"The contract is not initializing."}],"InvalidInitialization()":[{"details":"The contract is already initialized."}],"FnSelectorNotRecognized()":[{"details":"The function selector is not recognized."}],"UnauthorizedCallContext()":[{"details":"The call is from an unauthorized call context."}]},"events":{"Paused(uint256)":{"params":{"timestamp":"The block timestamp at which the wallet was paused."}},"Unpaused(uint256)":{"params":{"timestamp":"The block timestamp at which the wallet was unpaused."}},"Upgraded(address)":{"details":"Emitted when the proxy's implementation is upgraded."},"Initialized(uint64)":{"details":"Triggered when the contract has been initialized."},"BatchExecuted(uint256)":{"params":{"nonce":"The nonce of the executed batch."}},"SessionSignerRevoked(address)":{"params":{"sessionSigner":"The address of the revoked session signer."}},"AllowanceRevoked(address,address)":{"params":{"token":"The address of the ERC-20 token.","spender":"The address whose allowance was revoked."}},"OwnershipHandoverCanceled(address)":{"params":{"pendingOwner":"The address of the canceled pending owner."}},"OwnershipHandoverRequested(address)":{"params":{"pendingOwner":"The address of the proposed new owner."}},"OwnershipTransferred(address,address)":{"params":{"newOwner":"The address of the new owner.","oldOwner":"The address of the previous owner."}},"ApprovalForAllRevoked(address,address)":{"params":{"token":"The address of the ERC-1155 token.","operator":"The address whose approval was revoked."}},"Execution(address,uint256,bytes,bytes)":{"params":{"data":"The calldata sent to the target.","value":"The ETH value sent with the call.","result":"The return data from the call.","target":"The address called."}},"SessionSignerRevokedEmergency(address)":{"params":{"sessionSigner":"The address of the revoked session signer."}},"ERC20Withdrawal(address,address,uint256)":{"params":{"to":"The recipient address.","token":"The address of the ERC-20 token.","amount":"The amount of tokens withdrawn."}},"SessionSignerAuthorized(address,uint256)":{"params":{"validUntil":"The timestamp until which the session signer is valid.","sessionSigner":"The address of the authorized session signer."}},"OwnershipHandoverCompleted(address,address)":{"params":{"newOwner":"The address of the incoming owner.","previousOwner":"The address of the outgoing owner."}},"ERC1155BatchWithdrawal(address,address,uint256[],uint256[])":{"params":{"to":"The recipient address.","ids":"The token IDs withdrawn.","token":"The address of the ERC-1155 token.","amounts":"The amounts withdrawn for each token ID."}}},"details":"Deployed as an ERC-1967 proxy via {DepositWalletFactory}. Supports batch execution      of arbitrary calls signed by the owner or an authorized session signer, ERC-1271      signature validation, two-step ownership transfers, and an owner-controlled pause      mechanism with a timelock for emergency asset recovery.","methods":{"id()":{"returns":{"_0":"The wallet ID decoded from the ERC-1967 immutable args."}},"nonce()":{"returns":{"nonce_":"The current nonce."}},"owner()":{"returns":{"result":"The owner address."}},"pause()":{"details":"After pausing, the owner must wait for the timelock delay before calling      paused-only functions (e.g., withdrawals, revocations)."},"paused()":{"returns":{"paused_":"The paused timestamp, or zero if not paused."}},"factory()":{"returns":{"_0":"The factory address decoded from the ERC-1967 immutable args."}},"unpause()":{"details":"Requires the wallet to be paused and the timelock delay to have elapsed."},"constructor":{"details":"Disables initializers on the implementation contract to prevent misuse."},"eip712Domain()":{"details":"See: https://eips.ethereum.org/EIPS/eip-5267"},"pendingOwner()":{"returns":{"result":"The pending owner address, or `address(0)` if none."}},"proxiableUUID()":{"details":"Returns the storage slot used by the implementation, as specified in [ERC1822](https://eips.ethereum.org/EIPS/eip-1822). Note: The `notDelegated` modifier prevents accidental upgrades to an implementation that is a proxy contract."},"initialize(address)":{"params":{"_owner":"The address to set as the wallet owner."},"details":"This replaces the constructor for upgradeable contracts."},"upgrade(address,bytes)":{"params":{"_data":"Optional calldata to execute on the new implementation after upgrade.","_implementation":"The address of the new implementation contract."},"details":"Can only be invoked via batch execution (self-call).      The new implementation must be authorized by the factory."},"cancelOwnershipHandover()":{"details":"Can only be invoked via batch execution (self-call)."},"transferOwnership(address)":{"params":{"_newOwner":"The proposed new owner address."},"details":"Can only be invoked via batch execution (self-call)."},"revokeSessionSigner(address)":{"params":{"_sessionSigner":"The session signer address to revoke."},"details":"Can only be invoked via batch execution (self-call)."},"isValidSignature(bytes32,bytes)":{"params":{"_hash":"The hash that was signed.","_signature":"The signature to validate (may contain a session signer wrapper)."},"details":"Overrides Solady's ERC-1271 implementation to support session signer signatures.      The resolved signer is stored in memory at `_ERC1271_SIGNER_MEM_SLOT` so that      `_erc1271Signer` can return it to the parent verification logic.","returns":{"result":"`ERC1271_MAGIC_VALUE` if the signature is valid, otherwise reverts or returns failure."}},"upgradeToAndCall(address,bytes)":{"details":"Upgrades the proxy's implementation to `newImplementation`. Emits a {Upgraded} event. Note: Passing in empty `data` skips the delegatecall to `newImplementation`."},"revokeAllowance(address,address)":{"params":{"_token":"The ERC-20 token address.","_spender":"The spender whose allowance is revoked."},"details":"Requires the wallet to be paused and the timelock delay to have elapsed."},"revokeApprovalForAll(address,address)":{"params":{"_token":"The ERC-1155 token address.","_operator":"The operator whose approval is revoked."},"details":"Requires the wallet to be paused and the timelock delay to have elapsed."},"revokeSessionSignerEmergency(address)":{"params":{"_sessionSigner":"The session signer to revoke."},"details":"Requires the wallet to be paused and the timelock delay to have elapsed."},"sessionSignerAuthorizedUntil(address)":{"params":{"_signer":"The session signer address to query."},"returns":{"validUntil_":"The authorization expiry timestamp, or zero if not authorized."}},"withdrawERC20(address,address,uint256)":{"params":{"_to":"The recipient address.","_token":"The ERC-20 token address.","_amount":"The amount of tokens to withdraw."},"details":"Requires the wallet to be paused and the timelock delay to have elapsed."},"authorizeSessionSigner(address,uint256)":{"params":{"_validUntil":"The timestamp until which the session signer is valid.","_sessionSigner":"The address to authorize as a session signer."},"details":"Can only be invoked via batch execution (self-call)."},"completeOwnershipHandover(uint256,bytes)":{"params":{"_deadline":"The deadline timestamp included in the signed message.","_signature":"The EIP-712 signature from the pending owner."},"details":"Permissionless — anyone may submit, but the pending owner must have signed      an EIP-712 `OwnershipHandover` message."},"withdrawERC1155(address,address,uint256[],uint256[])":{"params":{"_to":"The recipient address.","_ids":"The token IDs to withdraw.","_token":"The ERC-1155 token address.","_amounts":"The amounts for each token ID."},"details":"Requires the wallet to be paused and the timelock delay to have elapsed."},"execute((address,uint256,uint256,(address,uint256,bytes)[]),bytes)":{"params":{"_batch":"The batch containing the target wallet, nonce, deadline, and calls.","_signature":"The EIP-712 signature authorizing the batch (owner or session signer)."},"details":"Validates the batch (non-empty, correct wallet, nonce, deadline), verifies the EIP-712      signature against the owner or an authorized session signer, then executes each call      sequentially. Session signers are prevented from calling the wallet itself."}},"version":1,"stateVariables":{"_NONCE_SLOT":{"details":"Storage slot for the replay-protection nonce. keccak256(\"DepositWallet.nonce\") - 1"},"_PAUSED_SLOT":{"details":"Storage slot for the paused timestamp. keccak256(\"DepositWallet.paused\") - 1"},"_SESSION_SIGNER_SLOT":{"details":"Base storage slot for the session signer mapping. keccak256(\"DepositWallet.sessionSignerAuthorizedUntil\") - 1"},"_ERC1271_SIGNER_MEM_SLOT":{"details":"Memory slot used to pass the resolved signer from `isValidSignature` to `_erc1271Signer`. Chosen at 0x80 (first allocatable slot). Before the super call we advance the free memory pointer to 0xa0 so the parent and all callees allocate above this slot and do not overwrite."}}},"storageLayout":{"types":null,"storage":[]},"transientStorageLayout":{"types":null,"storage":[]},"evm":{"bytecode":{"object":"61014060405230608052348015610014575f5ffd5b503060a0524660c052606080610062604080518082018252600d81526c11195c1bdcda5d15d85b1b195d609a1b602080830191909152825180840190935260018352603160f81b9083015291565b815160209283012081519183019190912060e0829052610100819052604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f8152938401929092529082015246606082015230608082015260a0902061012052506100cf90506100d4565b610139565b63409feecd19805460018116156100f25763f92ee8a95f526004601cfd5b6001600160401b03808260011c14610134578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60805160a05160c05160e05161010051610120516135ec6101875f395f61225b01525f61231501525f6122ef01525f61229f01525f61227c01525f8181611c650152611d9b01526135ec5ff3fe6080604052600436106101a4575f3560e01c80639700d107116100e0578063c987336c11610089578063e63f952f11610063578063e63f952f14610487578063e8c8bf64146104a6578063e9e37136146104c5578063f2fde38b146104e4576101ab565b8063c987336c14610435578063d8cb0d6614610454578063e30c397814610473576101ab565b8063b9ac71d6116100ba578063b9ac71d6146103e3578063c45a015514610402578063c4d66de814610416576101ab565b80639700d1071461039c578063af640d0f146103bb578063affed0e0146103cf576101ab565b806352d1902d1161014d5780637ae26773116101275780637ae26773146103095780638456cb591461032857806384b0196e1461033c5780638da5cb5b14610363576101ab565b806352d1902d146102bf57806354d1f13d146102e15780635c975abb146102f5576101ab565b80633f4ba83a1161017e5780633f4ba83a1461027957806344004cc11461028d5780634f1ef286146102ac576101ab565b80631626ba7e146101e457806324017fae146102395780632a45cacf1461025a576101ab565b366101ab57005b5f3560e01c63bc197c81811463f23a6e6182141763150b7a02821417156101d657806020526020603cf35b50633c10b94e5f526004601cfd5b3480156101ef575f5ffd5b506102036101fe366004612b9e565b610505565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020015b60405180910390f35b348015610244575f5ffd5b50610258610253366004612c07565b6105a1565b005b348015610265575f5ffd5b50610258610274366004612c31565b610638565b348015610284575f5ffd5b50610258610808565b348015610298575f5ffd5b506102586102a7366004612c68565b610977565b6102586102ba366004612ca6565b610b0a565b3480156102ca575f5ffd5b506102d3610bbf565b604051908152602001610230565b3480156102ec575f5ffd5b50610258610bed565b348015610300575f5ffd5b506102d3610c2e565b348015610314575f5ffd5b50610258610323366004612c31565b610c62565b348015610333575f5ffd5b50610258610de7565b348015610347575f5ffd5b50610350610e52565b6040516102309796959493929190612d2a565b34801561036e575f5ffd5b50610377610efa565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610230565b3480156103a7575f5ffd5b506102586103b6366004612b9e565b610f27565b3480156103c6575f5ffd5b506102d3610f32565b3480156103da575f5ffd5b506102d3610f50565b3480156103ee575f5ffd5b506102d36103fd366004612de9565b610f7d565b34801561040d575f5ffd5b50610377610fbb565b348015610421575f5ffd5b50610258610430366004612de9565b610fe0565b348015610440575f5ffd5b5061025861044f366004612ca6565b611074565b34801561045f575f5ffd5b5061025861046e366004612e45565b6110b8565b34801561047e575f5ffd5b506103776112ba565b348015610492575f5ffd5b506102586104a1366004612de9565b6112e7565b3480156104b1575f5ffd5b506102586104c0366004612ed9565b61136d565b3480156104d0575f5ffd5b506102586104df366004612de9565b611931565b3480156104ef575f5ffd5b506102586104fe366004612de9565b611a84565b565b5f5f6105118484611ac9565b905073ffffffffffffffffffffffffffffffffffffffff811661053d57610536610efa565b905061057e565b61054681610f7d565b421061057e576040517f3d4b014500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80608052602060405101604052610596858585611b01565b9150505b9392505050565b3330146105da576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6105e48282611b67565b8173ffffffffffffffffffffffffffffffffffffffff167fcacba9f642804cfed98e2bb1d1c05bc4c78b35a209cdffdb4674b3363bafd92b8260405161062c91815260200190565b60405180910390a25050565b610640610c2e565b5f03610678576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610680610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106c8573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106ec9190612f12565b6106f4610c2e565b6106fe9190612f56565b4211610736576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61073e611ba3565b6040517fa22cb46500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82811660048301525f602483015283169063a22cb465906044015f604051808303815f87803b1580156107aa575f5ffd5b505af11580156107bc573d5f5f3e3d5ffd5b505060405173ffffffffffffffffffffffffffffffffffffffff8085169350851691507ff9dfa223fca66e1e19e96ad420898db0b0ada933c1d0c0953b3d5a44176f495c905f90a35050565b610810610c2e565b5f03610848576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610850610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610898573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108bc9190612f12565b6108c4610c2e565b6108ce9190612f56565b4211610906576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61090e611ba3565b5f61093a60017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99612f69565b5f81556040514281529091507f9dd715fed52c25e642f97653bb4c4339ad98fe6d6e130348be82ae5d86383a8c906020015b60405180910390a150565b61097f610c2e565b5f036109b7576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109bf610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a07573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a2b9190612f12565b610a33610c2e565b610a3d9190612f56565b4211610a75576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a7d611ba3565b610a9e73ffffffffffffffffffffffffffffffffffffffff84168383611c0f565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f2fbb3e8dc2807d6a61feb98fc2120153f77b2c0d25ef6272e1756935dd62c84783604051610afd91815260200190565b60405180910390a3505050565b610b12611c62565b610b1b83611c91565b8260601b60601c92503d5f526352d1902d6001527f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80602060016004601d885afa5114610b70576355299b496001526004601dfd5b837fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b5f38a28390558015610bba57604051818382375f388383875af4610bb8573d5f823e3d81fd5b505b505050565b5f610bc8611d98565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b333014610c26576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610503611dc7565b5f80610c5b60017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99612f69565b5492915050565b610c6a610c2e565b5f03610ca2576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610caa610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610cf2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d169190612f12565b610d1e610c2e565b610d289190612f56565b4211610d60576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d68611ba3565b610d8973ffffffffffffffffffffffffffffffffffffffff8316825f611e6b565b8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8da578e4cb2672c4986388e504a6f639391986195c077e5db9f48e04c97a501b60405160405180910390a35050565b610def611ba3565b5f610e1b60017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99612f69565b428082556040519081529091507f32fb7c9891bc4f963c7de9f1186d2a7755c7d6e9f4604dabe1d8bb3027c2f49e9060200161096c565b7f0f000000000000000000000000000000000000000000000000000000000000006060805f808083610ee8604080518082018252600d81527f4465706f73697457616c6c6574000000000000000000000000000000000000006020808301919091528251808401909352600183527f31000000000000000000000000000000000000000000000000000000000000009083015291565b97989097965046955030945091925090565b5f80610c5b60017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b612f69565b610bba838383611eb4565b5f80610f3d306120ad565b80602001905181019061059a9190612f7c565b5f80610c5b60017f94f7bc44c1694f5bd8c155ad0b7a1459b9ede3ac9b5899315d5f1b0e469b1ee6612f69565b5f80610faa60017f262dd1cbe20a9ecc9fedf7b43d241ce1a18ea01dc95ca2bd68106e58474d85db612f69565b5f9384526020525050604090205490565b5f80610fc6306120ad565b806020019051810190610fd99190612f7c565b5092915050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf60113280546003825580156110315760018160011c14303b106110285763f92ee8a95f526004601cfd5b818160ff1b1b91505b5061103b826120fa565b8015611070576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b5050565b3330146110ad576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610bba838383610b0a565b6110c0610c2e565b5f036110f8576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611100610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611148573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061116c9190612f12565b611174610c2e565b61117e9190612f56565b42116111b6576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111be611ba3565b6040517f2eb2c2d600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff871690632eb2c2d69061121a90309089908990899089908990600401612ff1565b5f604051808303815f87803b158015611231575f5ffd5b505af1158015611243573d5f5f3e3d5ffd5b505050508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fb790ced15183f79ade456fb39c4fc443005b36f92a7318ef6e0e9f18dc05b040868686866040516112aa949392919061306d565b60405180910390a3505050505050565b5f80610c5b60017fa75cd6676e8c6931a1d5524e251b69c2d29aba2b846aed8220a29ba688a14770612f69565b333014611320576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61132a815f611b67565b60405173ffffffffffffffffffffffffffffffffffffffff8216907feac85989fadc30dfe2712c2308dcfecb3f9af1d15422056fc5a98ed1b49ca209905f90a250565b611375610fbb565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146113d9576040517f0c6d42ae00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6113e7606085018561309e565b905011611420576040517fc2e5347d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3061142e6020850185612de9565b73ffffffffffffffffffffffffffffffffffffffff161461147b576040517f23455ba100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f806114a860017f94f7bc44c1694f5bd8c155ad0b7a1459b9ede3ac9b5899315d5f1b0e469b1ee6612f69565b805460018101825592509050602085013582146114f1576040517f756688fe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b846040013542111561152f576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f61154161153c876131ca565b6121bf565b90505f61154d82612259565b90507f1626ba7e0000000000000000000000000000000000000000000000000000000061157b828888610505565b7fffffffff0000000000000000000000000000000000000000000000000000000016146115d4576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f806115e08888611ac9565b73ffffffffffffffffffffffffffffffffffffffff16141590505f5b61160960608a018a61309e565b90508110156118fc5781158061167157503061162860608b018b61309e565b83818110611638576116386133bb565b905060200281019061164a91906133e8565b611658906020810190612de9565b73ffffffffffffffffffffffffffffffffffffffff1614155b6116a7576040517fde4e67c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f806116b660608c018c61309e565b848181106116c6576116c66133bb565b90506020028101906116d891906133e8565b6116e6906020810190612de9565b73ffffffffffffffffffffffffffffffffffffffff1661170960608d018d61309e565b85818110611719576117196133bb565b905060200281019061172b91906133e8565b6020013561173c60608e018e61309e565b8681811061174c5761174c6133bb565b905060200281019061175e91906133e8565b61176c906040810190613424565b60405161177a929190613485565b5f6040518083038185875af1925050503d805f81146117b4576040519150601f19603f3d011682016040523d82523d5f602084013e6117b9565b606091505b5091509150816117f5576040517f3204506f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61180260608c018c61309e565b84818110611812576118126133bb565b905060200281019061182491906133e8565b611832906020810190612de9565b73ffffffffffffffffffffffffffffffffffffffff167ffde9c64d8b0b21fe439285c271603188269ad7c561364f724d48e9846120d7b661187660608e018e61309e565b86818110611886576118866133bb565b905060200281019061189891906133e8565b602001356118a960608f018f61309e565b878181106118b9576118b96133bb565b90506020028101906118cb91906133e8565b6118d9906040810190613424565b856040516118ea9493929190613494565b60405180910390a250506001016115fc565b60405186907fe9cc9bbe7de1cbb097a6357ca3182909488efe8d793e25665befc064a02d10a7905f90a2505050505050505050565b611939610c2e565b5f03611971576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611979610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156119c1573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906119e59190612f12565b6119ed610c2e565b6119f79190612f56565b4211611a2f576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611a37611ba3565b611a41815f611b67565b60405173ffffffffffffffffffffffffffffffffffffffff8216907f61be9e006b8f5c6e0e05905bb6a35efabbb3343c37d33552f634bd1d20f64141905f90a250565b333014611abd576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611ac68161236f565b50565b5f7f64926492649264926492649264926492649264926492649264926492649264926020830384013503611afb575081355b92915050565b5f81611b3e5761773961ffff831904028403611b3e57507f773900010000000000000000000000000000000000000000000000000000000061059a565b5f611b5285611b4d8686612408565b612456565b155f03631626ba7e1760e01b95945050505050565b5f611b9360017f262dd1cbe20a9ecc9fedf7b43d241ce1a18ea01dc95ca2bd68106e58474d85db612f69565b5f93845260205250604090912055565b611bab610efa565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610503576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81601452806034526fa9059cbb0000000000000000000000005f5260205f604460105f875af18060015f511416611c5857803d853b151710611c58576390b8ec185f526004601cfd5b505f603452505050565b307f0000000000000000000000000000000000000000000000000000000000000000036105035761050361248c565b333014611cca576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611cd2610fbb565b6040517f5325ad3d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301529190911690635325ad3d90602401602060405180830381865afa158015611d3e573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611d6291906134f4565b611ac6576040517f68155f9a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b307f0000000000000000000000000000000000000000000000000000000000000000146105035761050361248c565b5f611dd06112ba565b905073ffffffffffffffffffffffffffffffffffffffff8116611e1f576040517f7c63ac3600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611e285f612499565b60405173ffffffffffffffffffffffffffffffffffffffff8216907ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92905f90a250565b81601452806034526f095ea7b30000000000000000000000005f5260205f604460105f875af18060015f511416611c5857803d853b151710611c5857633e3f8f735f526004601cfd5b82421115611eee576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611ef76112ba565b905073ffffffffffffffffffffffffffffffffffffffff8116611f46576040517f7c63ac3600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604080517f8ea7943d1925a9cf7a830334250df14108b2abed2aa45d82a4dd473c4eef5e58602082015273ffffffffffffffffffffffffffffffffffffffff831691810191909152606081018590525f906080016040516020818303038152906040528051906020012090505f611fbc82612259565b90508273ffffffffffffffffffffffffffffffffffffffff16611fe08287876124cc565b73ffffffffffffffffffffffffffffffffffffffff161461202d576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f612036610efa565b90506120415f612499565b61204a8461256d565b8373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f38bafbf020d44b4ca47fda166836e6a0e0a15a9d6fec166834c0125e193830ff60405160405180910390a350505050505050565b60405164ffffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3833b0116808252602090810190603d908301843c60408101815101604052919050565b73ffffffffffffffffffffffffffffffffffffffff8116612147576040517f49e27cff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f61217360017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b612f69565b82815560405190915073ffffffffffffffffffffffffffffffffffffffff8316905f907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35050565b5f6040518060a00160405280606e8152602001613549606e913980519060200120825f0151836020015184604001516121fb86606001516125f4565b60408051602081019690965273ffffffffffffffffffffffffffffffffffffffff909416938501939093526060840191909152608083015260a082015260c0015b604051602081830303815290604052805190602001209050919050565b7f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000030147f000000000000000000000000000000000000000000000000000000000000000046141661234c5750604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81527f000000000000000000000000000000000000000000000000000000000000000060208201527f00000000000000000000000000000000000000000000000000000000000000009181019190915246606082015230608082015260a090205b6719010000000000005f5280601a5281603a52604260182090505f603a52919050565b73ffffffffffffffffffffffffffffffffffffffff81166123bc576040517f49e27cff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6123c581612499565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d905f90a250565b818161649261ffff30801c1904028183017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001350361244f57506040810135016020810190355b9250929050565b5f6124628484846126be565b8061247357506124738484846126d7565b806124845750612484848484612946565b949350505050565b639f03a0265f526004601cfd5b5f6124c560017fa75cd6676e8c6931a1d5524e251b69c2d29aba2b846aed8220a29ba688a14770612f69565b9190915550565b5f60405182604081146124e757604181146125275750612558565b60208581013560ff81901c601b0190915285356040527f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16606052612538565b60408501355f1a6020526040856040375b50845f526020600160805f60015afa5191505f606052806040523d612565575b638baa579f5f526004601cfd5b509392505050565b5f612576610efa565b90505f6125a460017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b612f69565b83815560405190915073ffffffffffffffffffffffffffffffffffffffff80851691908416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f825167ffffffffffffffff81111561261057612610613102565b604051908082528060200260200182016040528015612639578160200160208202803683370190505b5090505f5b835181101561268e5761266984828151811061265c5761265c6133bb565b60200260200101516129b1565b82828151811061267b5761267b6133bb565b602090810291909101015260010161263e565b50806040516020016126a09190613513565b60405160208183030381529060405280519060200120915050919050565b5f6126c7612a22565b1561059a57612484848484612a5e565b5f308015612743575f5f5f5f5f6126ec610e52565b5060408051865160209788012081830152855195909601949094206060860152608085019290925273ffffffffffffffffffffffffffffffffffffffff1660a084015260c083015260e08201905296505050505050505b6040516002840385013560f01c8060420180860387016119015f52604081602037821582881017896042601e201817156127ae575f94507f983e65e5148e570cd828ead231ee759a8d7958721a768f93bc4483ba005c32de8552886020526040852098505050612926565b7f5479706564446174615369676e280000000000000000000000000000000000008452600e84018360408301823760288185019081527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01515f1a602914612846575f6001858301035b6001820191506029828203515f1a148683101161281857508085039450808560408501018337602881830153505b6f07fffffe00000000000001000000000081515f1a1c5b602882515f1a1461288357806512010000000183515f1a1c17905060018201915061285d565b7f20636f6e74656e74732c737472696e67206e616d652c737472696e670000000082527f2076657273696f6e2c75696e7432353620636861696e49642c61646472657373601c8301527f20766572696679696e67436f6e74726163742c627974657333322073616c7429603c830152605c820191508460408401833760408388379084018590038520865260e08620604052600116604201601e20985050909403935b506040528061293b5761293885612259565b94505b610596858585612a5e565b5f3a61059a573a3a526d378edcd5b5b0a24f5342d8c1048560203a3a388461fffffa503a516129a557604051631626ba7e3a528160205260408052454561ffff0117805a10838814171561299657fe5b3a3a6064601c3085fa50506040525b50612484848484612a5e565b805160208083015160408085015180519084012081517f84fa2cf05cd88e992eae77e851af68a4ee278dcff6ef504e487a55b3baadfbe59481019490945273ffffffffffffffffffffffffffffffffffffffff90941690830152606082015260808101919091525f9060a00161223c565b5f612a2b610fbb565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b5f5f612a6960805190565b905073ffffffffffffffffffffffffffffffffffffffff81161580159061059657508073ffffffffffffffffffffffffffffffffffffffff16612aad868686612acd565b73ffffffffffffffffffffffffffffffffffffffff161495945050505050565b5f6040518260408114612ae85760418114612b285750612565565b60208581013560ff81901c601b0190915285356040527f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16606052612b39565b60408501355f1a6020526040856040375b50845f526020604060805f60015afa505f6060523d60601851915080604052509392505050565b5f5f83601f840112612b70575f5ffd5b50813567ffffffffffffffff811115612b87575f5ffd5b60208301915083602082850101111561244f575f5ffd5b5f5f5f60408486031215612bb0575f5ffd5b83359250602084013567ffffffffffffffff811115612bcd575f5ffd5b612bd986828701612b60565b9497909650939450505050565b73ffffffffffffffffffffffffffffffffffffffff81168114611ac6575f5ffd5b5f5f60408385031215612c18575f5ffd5b8235612c2381612be6565b946020939093013593505050565b5f5f60408385031215612c42575f5ffd5b8235612c4d81612be6565b91506020830135612c5d81612be6565b809150509250929050565b5f5f5f60608486031215612c7a575f5ffd5b8335612c8581612be6565b92506020840135612c9581612be6565b929592945050506040919091013590565b5f5f5f60408486031215612cb8575f5ffd5b8335612cc381612be6565b9250602084013567ffffffffffffffff811115612bcd575f5ffd5b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b7fff000000000000000000000000000000000000000000000000000000000000008816815260e060208201525f612d6460e0830189612cde565b8281036040840152612d768189612cde565b6060840188905273ffffffffffffffffffffffffffffffffffffffff8716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015612dd8578351835260209384019390920191600101612dba565b50909b9a5050505050505050505050565b5f60208284031215612df9575f5ffd5b813561059a81612be6565b5f5f83601f840112612e14575f5ffd5b50813567ffffffffffffffff811115612e2b575f5ffd5b6020830191508360208260051b850101111561244f575f5ffd5b5f5f5f5f5f5f60808789031215612e5a575f5ffd5b8635612e6581612be6565b95506020870135612e7581612be6565b9450604087013567ffffffffffffffff811115612e90575f5ffd5b612e9c89828a01612e04565b909550935050606087013567ffffffffffffffff811115612ebb575f5ffd5b612ec789828a01612e04565b979a9699509497509295939492505050565b5f5f5f60408486031215612eeb575f5ffd5b833567ffffffffffffffff811115612f01575f5ffd5b840160808187031215612cc3575f5ffd5b5f60208284031215612f22575f5ffd5b5051919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b80820180821115611afb57611afb612f29565b81810381811115611afb57611afb612f29565b5f5f60408385031215612f8d575f5ffd5b8251612f9881612be6565b6020939093015192949293505050565b8183525f7f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115612fd8575f5ffd5b8260051b80836020870137939093016020019392505050565b73ffffffffffffffffffffffffffffffffffffffff8716815273ffffffffffffffffffffffffffffffffffffffff8616602082015260a060408201525f61303c60a083018688612fa8565b828103606084015261304f818587612fa8565b83810360809094019390935250505f81526020019695505050505050565b604081525f613080604083018688612fa8565b8281036020840152613093818587612fa8565b979650505050505050565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126130d1575f5ffd5b83018035915067ffffffffffffffff8211156130eb575f5ffd5b6020019150600581901b360382131561244f575f5ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040516080810167ffffffffffffffff8111828210171561315257613152613102565b60405290565b6040516060810167ffffffffffffffff8111828210171561315257613152613102565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156131c2576131c2613102565b604052919050565b5f608082360312156131da575f5ffd5b6131e261312f565b82356131ed81612be6565b81526020838101359082015260408084013590820152606083013567ffffffffffffffff81111561321c575f5ffd5b830136601f82011261322c575f5ffd5b803567ffffffffffffffff81111561324657613246613102565b8060051b6132566020820161317b565b91825260208184018101929081019036841115613271575f5ffd5b6020850192505b838310156133ab57823567ffffffffffffffff811115613296575f5ffd5b85016060368290037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe00112156132ca575f5ffd5b6132d2613158565b60208201356132e081612be6565b815260408201356020820152606082013567ffffffffffffffff811115613305575f5ffd5b60208184010192505036601f83011261331c575f5ffd5b813567ffffffffffffffff81111561333657613336613102565b61336760207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160161317b565b81815236602083860101111561337b575f5ffd5b816020850160208301375f6020838301015280604084015250508084525050602082019150602083019250613278565b6060860152509295945050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f82357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa183360301811261341a575f5ffd5b9190910192915050565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112613457575f5ffd5b83018035915067ffffffffffffffff821115613471575f5ffd5b60200191503681900382131561244f575f5ffd5b818382375f9101908152919050565b84815260606020820152826060820152828460808301375f608084830101525f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f850116820160808382030160408401526130936080820185612cde565b5f60208284031215613504575f5ffd5b8151801515811461059a575f5ffd5b81515f90829060208501835b8281101561353d57815184526020938401939091019060010161351f565b50919594505050505056fe426174636828616464726573732077616c6c65742c75696e74323536206e6f6e63652c75696e7432353620646561646c696e652c43616c6c5b5d2063616c6c732943616c6c2861646472657373207461726765742c75696e743235362076616c75652c6279746573206461746129a2646970667358221220be1e7a1f3704ea0561b079fd27a95bb5471874ad6e2df4c7543ca448cd586c0964736f6c63430008220033","sourceMap":"1378:18115:13:-:0;;;1279:4:5;1220:66;;4092:53:13;;;;;;;;;-1:-1:-1;3066:4:7;3028:45;;3100:13;3083:30;;3124:18;;3240:23;19439:22:13;;;;;;;;;;;-1:-1:-1;;;19439:22:13;;;;;;;;19471:13;;;;;;;;;;;-1:-1:-1;;;19471:13:13;;;;19439:22;19269:222;3240:23:7;3340:22;;;;;;;3454:25;;;;;;;;;3489:26;;;;3525:32;;;;3737:4;3731:11;;3802:16;3792:27;;3843:12;;;3836:30;;;;3890:12;;;3883:33;3954:9;3947:4;3940:12;;3933:31;4002:9;3995:4;3988:12;;3981:31;4055:4;4042:18;;4093:34;;-1:-1:-1;4116:22:13;;-1:-1:-1;4116:20:13;:22::i;:::-;1378:18115;;7121:737:8;-1:-1:-1;;7297:8:8;;7328:1;7321:9;;7318:134;;;7362:10;7356:4;7349:24;7433:4;7427;7420:18;7318:134;-1:-1:-1;;;;;7537:9:8;7533:1;7530;7526:9;7523:24;7513:329;;7665:9;7662:1;7658:17;7655:1;7648:28;7755:9;7749:4;7742:23;7799:28;7793:4;7787;7782:46;7513:329;;;7274:578;7121:737::o;1378:18115:13:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","linkReferences":{}},"deployedBytecode":{"object":"6080604052600436106101a4575f3560e01c80639700d107116100e0578063c987336c11610089578063e63f952f11610063578063e63f952f14610487578063e8c8bf64146104a6578063e9e37136146104c5578063f2fde38b146104e4576101ab565b8063c987336c14610435578063d8cb0d6614610454578063e30c397814610473576101ab565b8063b9ac71d6116100ba578063b9ac71d6146103e3578063c45a015514610402578063c4d66de814610416576101ab565b80639700d1071461039c578063af640d0f146103bb578063affed0e0146103cf576101ab565b806352d1902d1161014d5780637ae26773116101275780637ae26773146103095780638456cb591461032857806384b0196e1461033c5780638da5cb5b14610363576101ab565b806352d1902d146102bf57806354d1f13d146102e15780635c975abb146102f5576101ab565b80633f4ba83a1161017e5780633f4ba83a1461027957806344004cc11461028d5780634f1ef286146102ac576101ab565b80631626ba7e146101e457806324017fae146102395780632a45cacf1461025a576101ab565b366101ab57005b5f3560e01c63bc197c81811463f23a6e6182141763150b7a02821417156101d657806020526020603cf35b50633c10b94e5f526004601cfd5b3480156101ef575f5ffd5b506102036101fe366004612b9e565b610505565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020015b60405180910390f35b348015610244575f5ffd5b50610258610253366004612c07565b6105a1565b005b348015610265575f5ffd5b50610258610274366004612c31565b610638565b348015610284575f5ffd5b50610258610808565b348015610298575f5ffd5b506102586102a7366004612c68565b610977565b6102586102ba366004612ca6565b610b0a565b3480156102ca575f5ffd5b506102d3610bbf565b604051908152602001610230565b3480156102ec575f5ffd5b50610258610bed565b348015610300575f5ffd5b506102d3610c2e565b348015610314575f5ffd5b50610258610323366004612c31565b610c62565b348015610333575f5ffd5b50610258610de7565b348015610347575f5ffd5b50610350610e52565b6040516102309796959493929190612d2a565b34801561036e575f5ffd5b50610377610efa565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610230565b3480156103a7575f5ffd5b506102586103b6366004612b9e565b610f27565b3480156103c6575f5ffd5b506102d3610f32565b3480156103da575f5ffd5b506102d3610f50565b3480156103ee575f5ffd5b506102d36103fd366004612de9565b610f7d565b34801561040d575f5ffd5b50610377610fbb565b348015610421575f5ffd5b50610258610430366004612de9565b610fe0565b348015610440575f5ffd5b5061025861044f366004612ca6565b611074565b34801561045f575f5ffd5b5061025861046e366004612e45565b6110b8565b34801561047e575f5ffd5b506103776112ba565b348015610492575f5ffd5b506102586104a1366004612de9565b6112e7565b3480156104b1575f5ffd5b506102586104c0366004612ed9565b61136d565b3480156104d0575f5ffd5b506102586104df366004612de9565b611931565b3480156104ef575f5ffd5b506102586104fe366004612de9565b611a84565b565b5f5f6105118484611ac9565b905073ffffffffffffffffffffffffffffffffffffffff811661053d57610536610efa565b905061057e565b61054681610f7d565b421061057e576040517f3d4b014500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80608052602060405101604052610596858585611b01565b9150505b9392505050565b3330146105da576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6105e48282611b67565b8173ffffffffffffffffffffffffffffffffffffffff167fcacba9f642804cfed98e2bb1d1c05bc4c78b35a209cdffdb4674b3363bafd92b8260405161062c91815260200190565b60405180910390a25050565b610640610c2e565b5f03610678576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610680610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106c8573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106ec9190612f12565b6106f4610c2e565b6106fe9190612f56565b4211610736576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61073e611ba3565b6040517fa22cb46500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82811660048301525f602483015283169063a22cb465906044015f604051808303815f87803b1580156107aa575f5ffd5b505af11580156107bc573d5f5f3e3d5ffd5b505060405173ffffffffffffffffffffffffffffffffffffffff8085169350851691507ff9dfa223fca66e1e19e96ad420898db0b0ada933c1d0c0953b3d5a44176f495c905f90a35050565b610810610c2e565b5f03610848576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610850610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610898573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108bc9190612f12565b6108c4610c2e565b6108ce9190612f56565b4211610906576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61090e611ba3565b5f61093a60017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99612f69565b5f81556040514281529091507f9dd715fed52c25e642f97653bb4c4339ad98fe6d6e130348be82ae5d86383a8c906020015b60405180910390a150565b61097f610c2e565b5f036109b7576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109bf610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a07573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a2b9190612f12565b610a33610c2e565b610a3d9190612f56565b4211610a75576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a7d611ba3565b610a9e73ffffffffffffffffffffffffffffffffffffffff84168383611c0f565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f2fbb3e8dc2807d6a61feb98fc2120153f77b2c0d25ef6272e1756935dd62c84783604051610afd91815260200190565b60405180910390a3505050565b610b12611c62565b610b1b83611c91565b8260601b60601c92503d5f526352d1902d6001527f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80602060016004601d885afa5114610b70576355299b496001526004601dfd5b837fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b5f38a28390558015610bba57604051818382375f388383875af4610bb8573d5f823e3d81fd5b505b505050565b5f610bc8611d98565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b333014610c26576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610503611dc7565b5f80610c5b60017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99612f69565b5492915050565b610c6a610c2e565b5f03610ca2576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610caa610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610cf2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d169190612f12565b610d1e610c2e565b610d289190612f56565b4211610d60576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d68611ba3565b610d8973ffffffffffffffffffffffffffffffffffffffff8316825f611e6b565b8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8da578e4cb2672c4986388e504a6f639391986195c077e5db9f48e04c97a501b60405160405180910390a35050565b610def611ba3565b5f610e1b60017ff29c213ff54caf2dcc22e0344a6394963a5cddbb1c5e4db726dab7cc16720a99612f69565b428082556040519081529091507f32fb7c9891bc4f963c7de9f1186d2a7755c7d6e9f4604dabe1d8bb3027c2f49e9060200161096c565b7f0f000000000000000000000000000000000000000000000000000000000000006060805f808083610ee8604080518082018252600d81527f4465706f73697457616c6c6574000000000000000000000000000000000000006020808301919091528251808401909352600183527f31000000000000000000000000000000000000000000000000000000000000009083015291565b97989097965046955030945091925090565b5f80610c5b60017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b612f69565b610bba838383611eb4565b5f80610f3d306120ad565b80602001905181019061059a9190612f7c565b5f80610c5b60017f94f7bc44c1694f5bd8c155ad0b7a1459b9ede3ac9b5899315d5f1b0e469b1ee6612f69565b5f80610faa60017f262dd1cbe20a9ecc9fedf7b43d241ce1a18ea01dc95ca2bd68106e58474d85db612f69565b5f9384526020525050604090205490565b5f80610fc6306120ad565b806020019051810190610fd99190612f7c565b5092915050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf60113280546003825580156110315760018160011c14303b106110285763f92ee8a95f526004601cfd5b818160ff1b1b91505b5061103b826120fa565b8015611070576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b5050565b3330146110ad576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610bba838383610b0a565b6110c0610c2e565b5f036110f8576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611100610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611148573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061116c9190612f12565b611174610c2e565b61117e9190612f56565b42116111b6576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111be611ba3565b6040517f2eb2c2d600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff871690632eb2c2d69061121a90309089908990899089908990600401612ff1565b5f604051808303815f87803b158015611231575f5ffd5b505af1158015611243573d5f5f3e3d5ffd5b505050508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fb790ced15183f79ade456fb39c4fc443005b36f92a7318ef6e0e9f18dc05b040868686866040516112aa949392919061306d565b60405180910390a3505050505050565b5f80610c5b60017fa75cd6676e8c6931a1d5524e251b69c2d29aba2b846aed8220a29ba688a14770612f69565b333014611320576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61132a815f611b67565b60405173ffffffffffffffffffffffffffffffffffffffff8216907feac85989fadc30dfe2712c2308dcfecb3f9af1d15422056fc5a98ed1b49ca209905f90a250565b611375610fbb565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146113d9576040517f0c6d42ae00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6113e7606085018561309e565b905011611420576040517fc2e5347d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3061142e6020850185612de9565b73ffffffffffffffffffffffffffffffffffffffff161461147b576040517f23455ba100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f806114a860017f94f7bc44c1694f5bd8c155ad0b7a1459b9ede3ac9b5899315d5f1b0e469b1ee6612f69565b805460018101825592509050602085013582146114f1576040517f756688fe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b846040013542111561152f576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f61154161153c876131ca565b6121bf565b90505f61154d82612259565b90507f1626ba7e0000000000000000000000000000000000000000000000000000000061157b828888610505565b7fffffffff0000000000000000000000000000000000000000000000000000000016146115d4576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f806115e08888611ac9565b73ffffffffffffffffffffffffffffffffffffffff16141590505f5b61160960608a018a61309e565b90508110156118fc5781158061167157503061162860608b018b61309e565b83818110611638576116386133bb565b905060200281019061164a91906133e8565b611658906020810190612de9565b73ffffffffffffffffffffffffffffffffffffffff1614155b6116a7576040517fde4e67c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f806116b660608c018c61309e565b848181106116c6576116c66133bb565b90506020028101906116d891906133e8565b6116e6906020810190612de9565b73ffffffffffffffffffffffffffffffffffffffff1661170960608d018d61309e565b85818110611719576117196133bb565b905060200281019061172b91906133e8565b6020013561173c60608e018e61309e565b8681811061174c5761174c6133bb565b905060200281019061175e91906133e8565b61176c906040810190613424565b60405161177a929190613485565b5f6040518083038185875af1925050503d805f81146117b4576040519150601f19603f3d011682016040523d82523d5f602084013e6117b9565b606091505b5091509150816117f5576040517f3204506f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61180260608c018c61309e565b84818110611812576118126133bb565b905060200281019061182491906133e8565b611832906020810190612de9565b73ffffffffffffffffffffffffffffffffffffffff167ffde9c64d8b0b21fe439285c271603188269ad7c561364f724d48e9846120d7b661187660608e018e61309e565b86818110611886576118866133bb565b905060200281019061189891906133e8565b602001356118a960608f018f61309e565b878181106118b9576118b96133bb565b90506020028101906118cb91906133e8565b6118d9906040810190613424565b856040516118ea9493929190613494565b60405180910390a250506001016115fc565b60405186907fe9cc9bbe7de1cbb097a6357ca3182909488efe8d793e25665befc064a02d10a7905f90a2505050505050505050565b611939610c2e565b5f03611971576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611979610fbb565b73ffffffffffffffffffffffffffffffffffffffff1663eef09bad6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156119c1573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906119e59190612f12565b6119ed610c2e565b6119f79190612f56565b4211611a2f576040517fac90eb9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611a37611ba3565b611a41815f611b67565b60405173ffffffffffffffffffffffffffffffffffffffff8216907f61be9e006b8f5c6e0e05905bb6a35efabbb3343c37d33552f634bd1d20f64141905f90a250565b333014611abd576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611ac68161236f565b50565b5f7f64926492649264926492649264926492649264926492649264926492649264926020830384013503611afb575081355b92915050565b5f81611b3e5761773961ffff831904028403611b3e57507f773900010000000000000000000000000000000000000000000000000000000061059a565b5f611b5285611b4d8686612408565b612456565b155f03631626ba7e1760e01b95945050505050565b5f611b9360017f262dd1cbe20a9ecc9fedf7b43d241ce1a18ea01dc95ca2bd68106e58474d85db612f69565b5f93845260205250604090912055565b611bab610efa565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610503576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81601452806034526fa9059cbb0000000000000000000000005f5260205f604460105f875af18060015f511416611c5857803d853b151710611c58576390b8ec185f526004601cfd5b505f603452505050565b307f0000000000000000000000000000000000000000000000000000000000000000036105035761050361248c565b333014611cca576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611cd2610fbb565b6040517f5325ad3d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301529190911690635325ad3d90602401602060405180830381865afa158015611d3e573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611d6291906134f4565b611ac6576040517f68155f9a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b307f0000000000000000000000000000000000000000000000000000000000000000146105035761050361248c565b5f611dd06112ba565b905073ffffffffffffffffffffffffffffffffffffffff8116611e1f576040517f7c63ac3600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611e285f612499565b60405173ffffffffffffffffffffffffffffffffffffffff8216907ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92905f90a250565b81601452806034526f095ea7b30000000000000000000000005f5260205f604460105f875af18060015f511416611c5857803d853b151710611c5857633e3f8f735f526004601cfd5b82421115611eee576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611ef76112ba565b905073ffffffffffffffffffffffffffffffffffffffff8116611f46576040517f7c63ac3600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604080517f8ea7943d1925a9cf7a830334250df14108b2abed2aa45d82a4dd473c4eef5e58602082015273ffffffffffffffffffffffffffffffffffffffff831691810191909152606081018590525f906080016040516020818303038152906040528051906020012090505f611fbc82612259565b90508273ffffffffffffffffffffffffffffffffffffffff16611fe08287876124cc565b73ffffffffffffffffffffffffffffffffffffffff161461202d576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f612036610efa565b90506120415f612499565b61204a8461256d565b8373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f38bafbf020d44b4ca47fda166836e6a0e0a15a9d6fec166834c0125e193830ff60405160405180910390a350505050505050565b60405164ffffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3833b0116808252602090810190603d908301843c60408101815101604052919050565b73ffffffffffffffffffffffffffffffffffffffff8116612147576040517f49e27cff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f61217360017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b612f69565b82815560405190915073ffffffffffffffffffffffffffffffffffffffff8316905f907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35050565b5f6040518060a00160405280606e8152602001613549606e913980519060200120825f0151836020015184604001516121fb86606001516125f4565b60408051602081019690965273ffffffffffffffffffffffffffffffffffffffff909416938501939093526060840191909152608083015260a082015260c0015b604051602081830303815290604052805190602001209050919050565b7f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000030147f000000000000000000000000000000000000000000000000000000000000000046141661234c5750604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81527f000000000000000000000000000000000000000000000000000000000000000060208201527f00000000000000000000000000000000000000000000000000000000000000009181019190915246606082015230608082015260a090205b6719010000000000005f5280601a5281603a52604260182090505f603a52919050565b73ffffffffffffffffffffffffffffffffffffffff81166123bc576040517f49e27cff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6123c581612499565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d905f90a250565b818161649261ffff30801c1904028183017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001350361244f57506040810135016020810190355b9250929050565b5f6124628484846126be565b8061247357506124738484846126d7565b806124845750612484848484612946565b949350505050565b639f03a0265f526004601cfd5b5f6124c560017fa75cd6676e8c6931a1d5524e251b69c2d29aba2b846aed8220a29ba688a14770612f69565b9190915550565b5f60405182604081146124e757604181146125275750612558565b60208581013560ff81901c601b0190915285356040527f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16606052612538565b60408501355f1a6020526040856040375b50845f526020600160805f60015afa5191505f606052806040523d612565575b638baa579f5f526004601cfd5b509392505050565b5f612576610efa565b90505f6125a460017f66d9d15ef4055f078cc0556eabd27f3d296f56a09ac262d6fa49e5803fb4d73b612f69565b83815560405190915073ffffffffffffffffffffffffffffffffffffffff80851691908416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f825167ffffffffffffffff81111561261057612610613102565b604051908082528060200260200182016040528015612639578160200160208202803683370190505b5090505f5b835181101561268e5761266984828151811061265c5761265c6133bb565b60200260200101516129b1565b82828151811061267b5761267b6133bb565b602090810291909101015260010161263e565b50806040516020016126a09190613513565b60405160208183030381529060405280519060200120915050919050565b5f6126c7612a22565b1561059a57612484848484612a5e565b5f308015612743575f5f5f5f5f6126ec610e52565b5060408051865160209788012081830152855195909601949094206060860152608085019290925273ffffffffffffffffffffffffffffffffffffffff1660a084015260c083015260e08201905296505050505050505b6040516002840385013560f01c8060420180860387016119015f52604081602037821582881017896042601e201817156127ae575f94507f983e65e5148e570cd828ead231ee759a8d7958721a768f93bc4483ba005c32de8552886020526040852098505050612926565b7f5479706564446174615369676e280000000000000000000000000000000000008452600e84018360408301823760288185019081527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01515f1a602914612846575f6001858301035b6001820191506029828203515f1a148683101161281857508085039450808560408501018337602881830153505b6f07fffffe00000000000001000000000081515f1a1c5b602882515f1a1461288357806512010000000183515f1a1c17905060018201915061285d565b7f20636f6e74656e74732c737472696e67206e616d652c737472696e670000000082527f2076657273696f6e2c75696e7432353620636861696e49642c61646472657373601c8301527f20766572696679696e67436f6e74726163742c627974657333322073616c7429603c830152605c820191508460408401833760408388379084018590038520865260e08620604052600116604201601e20985050909403935b506040528061293b5761293885612259565b94505b610596858585612a5e565b5f3a61059a573a3a526d378edcd5b5b0a24f5342d8c1048560203a3a388461fffffa503a516129a557604051631626ba7e3a528160205260408052454561ffff0117805a10838814171561299657fe5b3a3a6064601c3085fa50506040525b50612484848484612a5e565b805160208083015160408085015180519084012081517f84fa2cf05cd88e992eae77e851af68a4ee278dcff6ef504e487a55b3baadfbe59481019490945273ffffffffffffffffffffffffffffffffffffffff90941690830152606082015260808101919091525f9060a00161223c565b5f612a2b610fbb565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b5f5f612a6960805190565b905073ffffffffffffffffffffffffffffffffffffffff81161580159061059657508073ffffffffffffffffffffffffffffffffffffffff16612aad868686612acd565b73ffffffffffffffffffffffffffffffffffffffff161495945050505050565b5f6040518260408114612ae85760418114612b285750612565565b60208581013560ff81901c601b0190915285356040527f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16606052612b39565b60408501355f1a6020526040856040375b50845f526020604060805f60015afa505f6060523d60601851915080604052509392505050565b5f5f83601f840112612b70575f5ffd5b50813567ffffffffffffffff811115612b87575f5ffd5b60208301915083602082850101111561244f575f5ffd5b5f5f5f60408486031215612bb0575f5ffd5b83359250602084013567ffffffffffffffff811115612bcd575f5ffd5b612bd986828701612b60565b9497909650939450505050565b73ffffffffffffffffffffffffffffffffffffffff81168114611ac6575f5ffd5b5f5f60408385031215612c18575f5ffd5b8235612c2381612be6565b946020939093013593505050565b5f5f60408385031215612c42575f5ffd5b8235612c4d81612be6565b91506020830135612c5d81612be6565b809150509250929050565b5f5f5f60608486031215612c7a575f5ffd5b8335612c8581612be6565b92506020840135612c9581612be6565b929592945050506040919091013590565b5f5f5f60408486031215612cb8575f5ffd5b8335612cc381612be6565b9250602084013567ffffffffffffffff811115612bcd575f5ffd5b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b7fff000000000000000000000000000000000000000000000000000000000000008816815260e060208201525f612d6460e0830189612cde565b8281036040840152612d768189612cde565b6060840188905273ffffffffffffffffffffffffffffffffffffffff8716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015612dd8578351835260209384019390920191600101612dba565b50909b9a5050505050505050505050565b5f60208284031215612df9575f5ffd5b813561059a81612be6565b5f5f83601f840112612e14575f5ffd5b50813567ffffffffffffffff811115612e2b575f5ffd5b6020830191508360208260051b850101111561244f575f5ffd5b5f5f5f5f5f5f60808789031215612e5a575f5ffd5b8635612e6581612be6565b95506020870135612e7581612be6565b9450604087013567ffffffffffffffff811115612e90575f5ffd5b612e9c89828a01612e04565b909550935050606087013567ffffffffffffffff811115612ebb575f5ffd5b612ec789828a01612e04565b979a9699509497509295939492505050565b5f5f5f60408486031215612eeb575f5ffd5b833567ffffffffffffffff811115612f01575f5ffd5b840160808187031215612cc3575f5ffd5b5f60208284031215612f22575f5ffd5b5051919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b80820180821115611afb57611afb612f29565b81810381811115611afb57611afb612f29565b5f5f60408385031215612f8d575f5ffd5b8251612f9881612be6565b6020939093015192949293505050565b8183525f7f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115612fd8575f5ffd5b8260051b80836020870137939093016020019392505050565b73ffffffffffffffffffffffffffffffffffffffff8716815273ffffffffffffffffffffffffffffffffffffffff8616602082015260a060408201525f61303c60a083018688612fa8565b828103606084015261304f818587612fa8565b83810360809094019390935250505f81526020019695505050505050565b604081525f613080604083018688612fa8565b8281036020840152613093818587612fa8565b979650505050505050565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126130d1575f5ffd5b83018035915067ffffffffffffffff8211156130eb575f5ffd5b6020019150600581901b360382131561244f575f5ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040516080810167ffffffffffffffff8111828210171561315257613152613102565b60405290565b6040516060810167ffffffffffffffff8111828210171561315257613152613102565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156131c2576131c2613102565b604052919050565b5f608082360312156131da575f5ffd5b6131e261312f565b82356131ed81612be6565b81526020838101359082015260408084013590820152606083013567ffffffffffffffff81111561321c575f5ffd5b830136601f82011261322c575f5ffd5b803567ffffffffffffffff81111561324657613246613102565b8060051b6132566020820161317b565b91825260208184018101929081019036841115613271575f5ffd5b6020850192505b838310156133ab57823567ffffffffffffffff811115613296575f5ffd5b85016060368290037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe00112156132ca575f5ffd5b6132d2613158565b60208201356132e081612be6565b815260408201356020820152606082013567ffffffffffffffff811115613305575f5ffd5b60208184010192505036601f83011261331c575f5ffd5b813567ffffffffffffffff81111561333657613336613102565b61336760207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160161317b565b81815236602083860101111561337b575f5ffd5b816020850160208301375f6020838301015280604084015250508084525050602082019150602083019250613278565b6060860152509295945050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f82357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa183360301811261341a575f5ffd5b9190910192915050565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112613457575f5ffd5b83018035915067ffffffffffffffff821115613471575f5ffd5b60200191503681900382131561244f575f5ffd5b818382375f9101908152919050565b84815260606020820152826060820152828460808301375f608084830101525f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f850116820160808382030160408401526130936080820185612cde565b5f60208284031215613504575f5ffd5b8151801515811461059a575f5ffd5b81515f90829060208501835b8281101561353d57815184526020938401939091019060010161351f565b50919594505050505056fe426174636828616464726573732077616c6c65742c75696e74323536206e6f6e63652c75696e7432353620646561646c696e652c43616c6c5b5d2063616c6c732943616c6c2861646472657373207461726765742c75696e743235362076616c75652c6279746573206461746129a2646970667358221220be1e7a1f3704ea0561b079fd27a95bb5471874ad6e2df4c7543ca448cd586c0964736f6c63430008220033","sourceMap":"1378:18115:13:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1815:1:1;1802:15;1797:3;1793:25;2161:10;2158:1;2155:17;2142:10;2139:1;2136:17;2133:40;2120:10;2117:1;2114:17;2111:63;2108:298;;;2306:1;2300:4;2293:15;2300:4;2356;2349:18;2108:298;;1408:10:::1;1402:4;1395:24;1477:4;1471;1464:18;17218:637:13::0;;;;;;;;;;-1:-1:-1;17218:637:13;;;;;:::i;:::-;;:::i;:::-;;;1022:66:21;1010:79;;;992:98;;980:2;965:18;17218:637:13;;;;;;;;9403:226;;;;;;;;;;-1:-1:-1;9403:226:13;;;;;:::i;:::-;;:::i;:::-;;14631:219;;;;;;;;;;-1:-1:-1;14631:219:13;;;;;:::i;:::-;;:::i;12490:207::-;;;;;;;;;;;;;:::i;12993:230::-;;;;;;;;;;-1:-1:-1;12993:230:13;;;;;:::i;:::-;;:::i;3586:1618:12:-;;;;;;:::i;:::-;;:::i;3153:227::-;;;;;;;;;;;;;:::i;:::-;;;3233:25:21;;;3221:2;3206:18;3153:227:12;3087:177:21;10442:96:13;;;;;;;;;;;;;:::i;5234:180::-;;;;;;;;;;;;;:::i;14182:187::-;;;;;;;;;;-1:-1:-1;14182:187:13;;;;;:::i;:::-;;:::i;12159:202::-;;;;;;;;;;;;;:::i;11383:596:7:-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;:::i;1806:168:18:-;;;;;;;;;;;;;:::i;:::-;;;5299:42:21;5287:55;;;5269:74;;5257:2;5242:18;1806:168:18;5123:226:21;11593:156:13;;;;;;;;;;-1:-1:-1;11593:156:13;;;;;:::i;:::-;;:::i;6159:160::-;;;;;;;;;;;;;:::i;4913:176::-;;;;;;;;;;;;;:::i;5653:343::-;;;;;;;;;;-1:-1:-1;5653:343:13;;;;;:::i;:::-;;:::i;6475:174::-;;;;;;;;;;;;;:::i;4527:98::-;;;;;;;;;;-1:-1:-1;4527:98:13;;;;;:::i;:::-;;:::i;10912:139::-;;;;;;;;;;-1:-1:-1;10912:139:13;;;;;:::i;:::-;;:::i;13574:337::-;;;;;;;;;;-1:-1:-1;13574:337:13;;;;;:::i;:::-;;:::i;2127:183:18:-;;;;;;;;;;;;;:::i;9827:176:13:-;;;;;;;;;;-1:-1:-1;9827:176:13;;;;;:::i;:::-;;:::i;7380:1538::-;;;;;;;;;;-1:-1:-1;7380:1538:13;;;;;:::i;:::-;;:::i;15073:206::-;;;;;;;;;;-1:-1:-1;15073:206:13;;;;;:::i;:::-;;:::i;10204:110::-;;;;;;;;;;-1:-1:-1;10204:110:13;;;;;:::i;:::-;;:::i;2751:58:1:-;:::o;17218:637:13:-;17348:13;17377:14;17394:33;:10;;:31;:33::i;:::-;17377:50;-1:-1:-1;17442:20:13;;;17438:220;;17487:7;:5;:7::i;:::-;17478:16;;17438:220;;;17568:36;17597:6;17568:28;:36::i;:::-;17550:15;:54;17525:122;;;;;;;;;;;;;;;;;17724:6;17698:24;17691:40;17774:4;17767;17761:11;17757:22;17751:4;17744:36;17807:41;17830:5;17837:10;;17807:22;:41::i;:::-;17800:48;;;17218:637;;;;;;:::o;9403:226::-;3308:10;3330:4;3308:27;3300:48;;;;;;;;;;;;;;;;;9508:46:::1;9526:14;9542:11;9508:17;:46::i;:::-;9594:14;9570:52;;;9610:11;9570:52;;;;3233:25:21::0;;3221:2;3206:18;;3087:177;9570:52:13::1;;;;;;;;9403:226:::0;;:::o;14631:219::-;3498:8;:6;:8::i;:::-;3510:1;3498:13;3490:35;;;;;;;;;;;;;;;;;3606:9;:7;:9::i;:::-;3585:45;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3574:8;:6;:8::i;:::-;:58;;;;:::i;:::-;3556:15;:76;3535:148;;;;;;;;;;;;;;;;;3789:13:::1;:11;:13::i;:::-;14736:51:::2;::::0;;;;:33:::2;8943:55:21::0;;;14736:51:13::2;::::0;::::2;8925:74:21::0;14781:5:13::2;9015:18:21::0;;;9008:50;14736:33:13;::::2;::::0;::::2;::::0;8898:18:21;;14736:51:13::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;14803:40:13::2;::::0;::::2;::::0;;::::2;::::0;-1:-1:-1;14803:40:13;::::2;::::0;-1:-1:-1;14803:40:13::2;::::0;;;::::2;14631:219:::0;;:::o;12490:207::-;3498:8;:6;:8::i;:::-;3510:1;3498:13;3490:35;;;;;;;;;;;;;;;;;3606:9;:7;:9::i;:::-;3585:45;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3574:8;:6;:8::i;:::-;:58;;;;:::i;:::-;3556:15;:76;3535:148;;;;;;;;;;;;;;;;;3789:13:::1;:11;:13::i;:::-;12549:12:::2;2495:46;2540:1;2503:33;2495:46;:::i;:::-;2487:55;12625:15:::0;;12665:25:::2;::::0;12674:15:::2;3233:25:21::0;;2487:55:13;;-1:-1:-1;12665:25:13::2;::::0;3221:2:21;3206:18;12665:25:13::2;;;;;;;;12539:158;12490:207::o:0;12993:230::-;3498:8;:6;:8::i;:::-;3510:1;3498:13;3490:35;;;;;;;;;;;;;;;;;3606:9;:7;:9::i;:::-;3585:45;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3574:8;:6;:8::i;:::-;:58;;;;:::i;:::-;3556:15;:76;3535:148;;;;;;;;;;;;;;;;;3789:13:::1;:11;:13::i;:::-;13130:33:::2;:19;::::0;::::2;13150:3:::0;13155:7;13130:19:::2;:33::i;:::-;13203:3;13179:37;;13195:6;13179:37;;;13208:7;13179:37;;;;3233:25:21::0;;3221:2;3206:18;;3087:177;13179:37:13::2;;;;;;;;12993:230:::0;;;:::o;3586:1618:12:-;3720:17:5;:15;:17::i;:::-;3739:36:12::1;3757:17;3739;:36::i;:::-;3888:17;3884:2;3880:26;3876:2;3872:35;3851:56;;3958:16;3952:4;3945:30;4001:10;3995:4;3988:24;4056:28;4261:1;4253:4;4247;4241;4235;4216:17;4209:5;4198:60;4192:67;4189:74;4179:199;;4296:10;4290:4;4283:24;4359:4;4353;4346:18;4179:199;4483:17;4456:25;4450:4;4438:10;4433:68;4514:28:::0;;;4672:516;::::1;;;4800:4;4794:11;4851;4838;4835:1;4822:41;4957:4;4945:10;4932:11;4929:1;4910:17;4903:5;4890:72;4880:294;;5091:16;5085:4;5082:1;5067:41;5139:16;5136:1;5129:27;4880:294;;4672:516;3586:1618:::0;;;:::o;3153:227::-;3220:7;3930:20:5;:18;:20::i;:::-;-1:-1:-1;2188:66:12::1;3153:227:::0;:::o;10442:96:13:-;3308:10;3330:4;3308:27;3300:48;;;;;;;;;;;;;;;;;10505:26:::1;:24;:26::i;5234:180::-:0;5273:15;;2495:46;2540:1;2503:33;2495:46;:::i;:::-;5387:11;;5234:180;-1:-1:-1;;5234:180:13:o;14182:187::-;3498:8;:6;:8::i;:::-;3510:1;3498:13;3490:35;;;;;;;;;;;;;;;;;3606:9;:7;:9::i;:::-;3585:45;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3574:8;:6;:8::i;:::-;:58;;;;:::i;:::-;3556:15;:76;3535:148;;;;;;;;;;;;;;;;;3789:13:::1;:11;:13::i;:::-;14281:31:::2;:18;::::0;::::2;14300:8:::0;14310:1:::2;14281:18;:31::i;:::-;14353:8;14328:34;;14345:6;14328:34;;;;;;;;;;;;14182:187:::0;;:::o;12159:202::-;3789:13;:11;:13::i;:::-;12205:12:::1;2495:46;2540:1;2503:33;2495:46;:::i;:::-;12294:11;12281:25:::0;;;12331:23:::1;::::0;3233:25:21;;;2487:55:13;;-1:-1:-1;12331:23:13::1;::::0;3221:2:21;3206:18;12331:23:13::1;3087:177:21::0;11383:596:7;11721:16;11508:18;;11481:13;;;11508:18;11779:23;19439:22:13;;;;;;;;;;;;;;;;;;;;19471:13;;;;;;;;;;;;;;;;19439:22;19269:222;11779:23:7;11383:596;;11761:41;;;-1:-1:-1;11822:13:7;;-1:-1:-1;11873:4:7;;-1:-1:-1;11383:596:7;;-1:-1:-1;11383:596:7;:::o;1806:168:18:-;1852:14;;1049:45;1093:1;1057:32;1049:45;:::i;11593:156:13:-;11693:49;11720:9;11731:10;;11693:26;:49::i;6159:160::-;6194:7;;6242:29;6250:4;6242:27;:29::i;:::-;6231:61;;;;;;;;;;;;:::i;4913:176::-;4951:14;;2304:45;2348:1;2312:32;2304:45;:::i;5653:343::-;5753:19;;2744:68;2811:1;2752:55;2744:68;:::i;:::-;2736:77;5872:21;;;5913:4;5906:18;-1:-1:-1;;5974:4:13;5958:21;;5952:28;;5653:343::o;6475:174::-;6515:7;;6567:29;6575:4;6567:27;:29::i;:::-;6556:61;;;;;;;;;;;;:::i;:::-;-1:-1:-1;6534:83:13;6475:174;-1:-1:-1;;6475:174:13:o;4527:98::-;2002:66:8;3769:8;;3867:1;3857:12;;3951:398;;;;4111:1;4107;4104;4100:9;4097:16;4085:9;4073:22;4070:44;4060:189;;4151:10;4145:4;4138:24;4226:4;4220;4213:18;4060:189;4288:1;4284;4279:3;4275:11;4271:19;4266:24;;3951:398;;4594:24:13::1;4611:6;4594:16;:24::i;:::-;4448:1:8::0;4445:264;;;4549:1;4546;4539:12;4630:1;4624:4;4617:15;4666:28;4660:4;4654;4649:46;4445:264;4431:288;4527:98:13;:::o;10912:139::-;3308:10;3330:4;3308:27;3300:48;;;;;;;;;;;;;;;;;11004:40:::1;11021:15;11038:5;;11004:16;:40::i;13574:337::-:0;3498:8;:6;:8::i;:::-;3510:1;3498:13;3490:35;;;;;;;;;;;;;;;;;3606:9;:7;:9::i;:::-;3585:45;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3574:8;:6;:8::i;:::-;:58;;;;:::i;:::-;3556:15;:76;3535:148;;;;;;;;;;;;;;;;;3789:13:::1;:11;:13::i;:::-;13760:77:::2;::::0;;;;:37:::2;::::0;::::2;::::0;::::2;::::0;:77:::2;::::0;13806:4:::2;::::0;13813:3;;13818:4;;;;13824:8;;;;13760:77:::2;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13884:3;13853:51;;13876:6;13853:51;;;13889:4;;13895:8;;13853:51;;;;;;;;;:::i;:::-;;;;;;;;13574:337:::0;;;;;;:::o;2127:183:18:-;2180:14;;1267:52;1318:1;1275:39;1267:52;:::i;9827:176:13:-;3308:10;3330:4;3308:27;3300:48;;;;;;;;;;;;;;;;;9908:36:::1;9926:14;9942:1;9908:17;:36::i;:::-;9960;::::0;::::1;::::0;::::1;::::0;::::1;::::0;;;::::1;9827:176:::0;:::o;7380:1538::-;3110:9;:7;:9::i;:::-;3096:23;;:10;:23;;;3088:47;;;;;;;;;;;;;;;;;7508:1:::1;7486:12;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;:19;;:23;7478:46;;;;;;;;;;;;;;;;;7567:4;7542:13;;::::0;::::1;:6:::0;:13:::1;:::i;:::-;:30;;;7534:56;;;;;;;;;;;;;;;;;7600:21;::::0;2304:45:::1;2348:1;2312:32;2304:45;:::i;:::-;7728:16:::0;;7794:1:::1;7775:21:::0;::::1;7757:40:::0;;7728:16;-1:-1:-1;2296:54:13;-1:-1:-1;7824:12:13::1;::::0;::::1;;:29:::0;::::1;7816:54;;;;;;;;;;;;;;;;;7907:6;:15;;;7888;:34;;7880:54;;;;;;;;;;;;;;;;;7945:17;7965:13;:11;:6:::0;:11:::1;:::i;:::-;;:13::i;:::-;7945:33;;7988:19;8010:25;8025:9;8010:14;:25::i;:::-;7988:47:::0;-1:-1:-1;8112:19:13;8067:41:::1;7988:47:::0;8097:10;;8067:16:::1;:41::i;:::-;:64:::0;::::1;;8046:115;;;;;;;;;;;;;;;;;8172:20;::::0;8195:33:::1;:10:::0;;:31:::1;:33::i;:::-;:47;;;;8172:70;;8253:9;8272:596;8283:12;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;:19;;8279:1;:23;8272:596;;;8345:15;8344:16;:59;;;-1:-1:-1::0;8398:4:13::1;8364:12;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;8377:1;8364:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:22;::::0;::::1;::::0;::::1;::::0;::::1;:::i;:::-;:39;;;;8344:59;8319:149;;;;;;;;;;;;;;;;;8484:12;::::0;8537::::1;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;8550:1;8537:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:22;::::0;::::1;::::0;::::1;::::0;::::1;:::i;:::-;:27;;8572:12;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;8585:1;8572:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:21;;;8595:12;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;8608:1;8595:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:20;::::0;::::1;::::0;::::1;::::0;::::1;:::i;:::-;8537:79;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8483:133;;;;8639:7;8631:30;;;;;;;;;;;;;;;;;8708:12;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;8721:1;8708:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:22;::::0;::::1;::::0;::::1;::::0;::::1;:::i;:::-;8681:116;;;8732:12;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;8745:1;8732:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:21;;;8755:12;;::::0;::::1;:6:::0;:12:::1;:::i;:::-;8768:1;8755:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:20;::::0;::::1;::::0;::::1;::::0;::::1;:::i;:::-;8777:6;8681:116;;;;;;;;;:::i;:::-;;;;;;;;-1:-1:-1::0;;8840:3:13::1;;8272:596;;;8883:28;::::0;8897:13;;8883:28:::1;::::0;;;::::1;7468:1450;;;;;;7380:1538:::0;;;:::o;15073:206::-;3498:8;:6;:8::i;:::-;3510:1;3498:13;3490:35;;;;;;;;;;;;;;;;;3606:9;:7;:9::i;:::-;3585:45;;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3574:8;:6;:8::i;:::-;:58;;;;:::i;:::-;3556:15;:76;3535:148;;;;;;;;;;;;;;;;;3789:13:::1;:11;:13::i;:::-;15175:36:::2;15193:14;15209:1;15175:17;:36::i;:::-;15227:45;::::0;::::2;::::0;::::2;::::0;::::2;::::0;;;::::2;15073:206:::0;:::o;10204:110::-;3308:10;3330:4;3308:27;3300:48;;;;;;;;;;;;;;;;;10278:29:::1;10297:9;10278:18;:29::i;:::-;10204:110:::0;:::o;1055:648:19:-;1159:21;1486:26;1461:4;1442:17;1438:28;1419:17;1415:52;1402:66;1382:144;1379:308;;-1:-1:-1;1642:31:19;;1379:308;1055:648;;;;:::o;1237:1144:0:-;1364:13;1721:9;1717:222;;1899:6;1890;1870:17;;:26;:35;1853:52;;1849:75;;-1:-1:-1;1907:17:0;;;1849:75;1958:12;1973:66;1998:4;2004:34;2028:9;;2004:23;:34::i;:::-;1973:24;:66::i;:::-;2347:15;2344:1;2340:23;2328:10;2325:39;2320:3;2316:49;;1237:1144;-1:-1:-1;;;;;1237:1144:0:o;16126:291:13:-;16210:12;2744:68;2811:1;2752:55;2744:68;:::i;:::-;2736:77;16294:21;;;16335:4;16328:18;-1:-1:-1;16382:4:13;16366:21;;;16359:42;16126:291::o;3734:108:18:-;3811:7;:5;:7::i;:::-;3797:21;;:10;:21;;;3789:46;;;;;;;;;;;;;;;;16340:887:10;16503:2;16497:4;16490:16;16560:6;16554:4;16547:20;16625:34;16619:4;16612:48;16821:4;16815;16809;16803;16800:1;16793:5;16786;16781:45;16873:7;16869:1;16862:4;16856:11;16853:18;16849:32;16839:275;;16964:7;16945:16;16936:5;16924:18;16917:26;16914:48;16911:61;16901:199;;17009:10;17003:4;16996:24;17077:4;17071;17064:18;16901:199;16839:275;17140:1;17134:4;17127:15;16340:887;;;:::o;3017:123:5:-;2687:4;2661:6;:32;3076:57;;3101:32;:30;:32::i;15691:242:13:-;3308:10;3330:4;3308:27;3300:48;;;;;;;;;;;;;;;;;15827:9:::1;:7;:9::i;:::-;15806:73;::::0;;;;:56:::1;5287:55:21::0;;;15806:73:13::1;::::0;::::1;5269:74:21::0;15806:56:13;;;::::1;::::0;::::1;::::0;5242:18:21;;15806:73:13::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;15785:141;;;;;;;;;;;;;;;;3278:127:5::0;2687:4;2661:6;:32;3340:58;;3366:32;:30;:32::i;4735:250:18:-;4798:15;4816:14;:12;:14::i;:::-;4798:32;-1:-1:-1;4849:21:18;;;4841:48;;;;;;;;;;;;;;;;;4900:28;4925:1;4900:16;:28::i;:::-;4944:34;;;;;;;;;;;4788:197;4735:250::o;19032:823:10:-;19194:2;19188:4;19181:16;19251:6;19245:4;19238:20;19316:34;19310:4;19303:48;19450:4;19444;19438;19432;19429:1;19422:5;19415;19410:45;19502:7;19498:1;19491:4;19485:11;19482:18;19478:32;19468:274;;19593:7;19574:16;19565:5;19553:18;19546:26;19543:48;19540:61;19530:198;;19638:10;19632:4;19625:24;19705:4;19699;19692:18;5361:850:18;5561:9;5542:15;:28;;5534:48;;;;;;;;;;;;;;;;;5593:15;5611:14;:12;:14::i;:::-;5593:32;-1:-1:-1;5687:21:18;;;5679:48;;;;;;;;;;;;;;;;;5769:60;;;1457:65;5769:60;;;18676:25:21;18749:42;18737:55;;18717:18;;;18710:83;;;;18809:18;;;18802:34;;;5738:18:18;;18649::21;;5769:60:18;;;;;;;;;;;;5759:71;;;;;;5738:92;;5840:14;5857:26;5872:10;5857:14;:26::i;:::-;5840:43;;5977:7;5932:52;;:41;5954:6;5962:10;;5932:21;:41::i;:::-;:52;;;5924:81;;;;;;;;;;;;;;;;;6016:21;6040:7;:5;:7::i;:::-;6016:31;;6082:28;6107:1;6082:16;:28::i;:::-;6120:18;6130:7;6120:9;:18::i;:::-;6196:7;6154:50;;6181:13;6154:50;;;;;;;;;;;;5480:731;;;;5361:850;;;:::o;62337:454:9:-;62510:4;62504:11;62545:12;62559:32;62563:21;;62559:32;62541:51;62528:65;;;62689:4;62672:22;;;;62586:4;;62649:15;;62575:8;62627:68;62748:4;62742;62738:15;62731:4;62725:11;62721:33;62715:4;62708:47;62337:454;;;:::o;2677:289:18:-;2757:23;;;2749:48;;;;;;;;;;;;;;;;;2808:12;1049:45;1093:1;1057:32;1049:45;:::i;:::-;2868:23;;;2916:43;;1041:54;;-1:-1:-1;2916:43:18;;;;1041:54;;2916:43;;1041:54;;2916:43;2739:227;2677:289;:::o;1943:246:20:-;2001:7;868:19;;;;;;;;;;;;;;;;;852:37;;;;;;2094:6;:13;;;2109:6;:12;;;2123:6;:15;;;2140:18;2145:6;:12;;;2140:4;:18::i;:::-;2050:122;;;;;;19106:25:21;;;;19179:42;19167:55;;;19147:18;;;19140:83;;;;19239:18;;;19232:34;;;;19282:18;;;19275:34;19325:19;;;19318:35;19078:19;;2050:122:20;;;;;;;;;;;;;2027:155;;;;;;2020:162;;1943:246;;;:::o;6666:885:7:-;6975:22;13508:11;13649:9;13646:25;13463:14;13619:9;13616:28;13612:60;7011:73;;-1:-1:-1;12939:4:7;12933:11;;13000:16;12990:27;;12777:15;13044:4;13037:12;;13030:31;12820:18;13095:12;;;13088:33;;;;13155:9;13148:4;13141:12;;13134:31;13199:9;13192:4;13185:12;;13178:31;13248:4;13235:18;;7011:73;7218:18;7212:4;7205:32;7284:6;7278:4;7271:20;7348:10;7342:4;7335:24;7424:4;7418;7408:21;7398:31;;7533:1;7527:4;7520:15;6666:885;;;:::o;4402:220:18:-;4484:23;;;4476:48;;;;;;;;;;;;;;;;;4535:27;4552:9;4535:16;:27::i;:::-;4578:37;;;;;;;;;;;4402:220;:::o;3600:770:0:-;3768:9;;4073:6;4117;4104:9;4089:25;;4085:30;4081:43;4069:56;4006:44;;;4025:24;4006:44;3993:58;3973:186;3970:384;;-1:-1:-1;4238:4:0;4219:24;;4206:38;4187:58;4335:4;4328:12;;;4279:15;3970:384;3600:770;;;;;:::o;4445:360::-;4582:4;4609:54;4647:4;4653:9;;4609:37;:54::i;:::-;:126;;;;4679:56;4719:4;4725:9;;4679:39;:56::i;:::-;4609:189;;;;4751:47;4782:4;4788:9;;4751:30;:47::i;:::-;4602:196;4445:360;-1:-1:-1;;;;4445:360:0:o;4257:234:5:-;4401:10;4395:4;4388:24;4470:4;4464;4457:18;3475:187:18;3551:12;1267:52;1318:1;1275:39;1267:52;:::i;:::-;3619:27;;;;-1:-1:-1;3475:187:18:o;4336:1373:6:-;4448:14;4565:4;4559:11;4717:16;4755:2;4750:297;;;;5069:2;5064:204;;;;5295:8;;;4750:297;4825:4;4803:27;;;4790:41;4873:3;4869:12;;;4883:2;4865:21;4852:35;;;4929:30;;4923:4;4916:44;5002:18;;4996:4;4989:32;4750:297;;5064:204;5150:4;5132:16;5128:27;5115:41;5112:1;5107:50;5101:4;5094:64;5224:4;5206:16;5200:4;5187:42;4710:595;;5335:4;5329;5322:18;5412:4;5406;5400;5394;5391:1;5384:5;5373:44;5367:51;5357:61;;5448:1;5442:4;5435:15;5506:1;5500:4;5493:15;5653:16;5672:5;5650:29;;4606:10;4600:4;4593:24;4672:4;4666;4659:18;4544:1149;4548:24;4336:1373;;;;;:::o;3090:257:18:-;3155:16;3174:7;:5;:7::i;:::-;3155:26;-1:-1:-1;3191:12:18;1049:45;1093:1;1057:32;1049:45;:::i;:::-;3251:23;;;3299:41;;1041:54;;-1:-1:-1;3299:41:18;;;;;;;;;;;1041:54;;3299:41;3145:202;;3090:257;:::o;2385:292:20:-;2444:7;2463:23;2503:6;:13;2489:28;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2489:28:20;;2463:54;;2532:9;2527:92;2547:6;:13;2543:1;:17;2527:92;;;2593:15;2598:6;2605:1;2598:9;;;;;;;;:::i;:::-;;;;;;;2593:4;:15::i;:::-;2581:6;2588:1;2581:9;;;;;;;;:::i;:::-;;;;;;;;;;:27;2562:3;;2527:92;;;;2662:6;2645:24;;;;;;;;:::i;:::-;;;;;;;;;;;;;2635:35;;;;;;2628:42;;;2385:292;;;:::o;4989:273:0:-;5139:11;5170:22;:20;:22::i;:::-;5166:89;;;5203:52;5239:4;5245:9;;5203:35;:52::i;9312:5575::-;9464:11;9527:4;9642:15;;9638:911;;9709:18;9745:21;9784:15;9817:25;9860:12;9890:14;:12;:14::i;:::-;-1:-1:-1;10003:4:0;9997:11;;10198;;10191:4;10181:15;;;10171:39;10157:12;;;10150:61;10279:14;;10259:18;;;;10249:45;;;;10242:4;10235:12;;10228:67;10326:4;10319:12;;10312:29;;;;10379:35;;10372:4;10365:12;;10358:57;10446:4;10439:12;;10432:26;10495:4;10488:12;;10475:26;;9997:11;-1:-1:-1;;;;;;;9638:911:0;10639:4;10633:11;10872:1;10854:16;10850:24;10832:16;10828:47;10815:61;10810:3;10806:71;10939:1;10933:4;10929:12;11063:1;11045:16;11041:24;11023:16;11019:47;11124:6;11118:4;11111:20;11202:4;11199:1;11193:4;11180:27;11610:1;11603:9;11599:1;11581:16;11578:23;11575:38;11568:4;11561;11555;11545:21;11541:32;11538:76;11535:434;;;11642:1;11637:6;;11747:23;11744:1;11737:34;11805:4;11799;11792:18;11877:4;11874:1;11864:18;11856:26;;11946:5;;;;11535:434;12146:16;12143:1;12136:27;12251:4;12248:1;12244:12;12349:1;12342:4;12339:1;12335:12;12332:1;12319:32;12426:2;12415:9;;;12408:21;;;12503:17;;12497:24;12494:1;12489:33;12524:2;12486:41;12476:669;;12560:1;12658;12654;12651;12647:9;12643:17;12628:239;12706:1;12703;12699:9;12694:14;;12830:2;12824:1;12821;12817:9;12811:16;12808:1;12803:25;12800:33;12796:1;12793;12790:8;12787:47;12628:239;12777:68;12632:30;12900:1;12897;12893:9;12888:14;;13014:1;13010;13003:4;13000:1;12996:12;12992:20;12989:1;12976:40;13080:2;13076:1;13073;13069:9;13061:22;;12476:669;13264:33;13259:1;13253:8;13250:1;13245:17;13241:57;13395:178;13431:2;13426:1;13420:8;13417:1;13412:17;13409:25;13395:178;;13525:1;13508:14;13503:1;13497:8;13494:1;13489:17;13485:38;13482:45;13477:50;;13450:1;13447;13443:9;13438:14;;13395:178;;;13600:30;13597:1;13590:41;13704:34;13697:4;13694:1;13690:12;13683:56;13777:34;13770:4;13767:1;13763:12;13756:56;13841:4;13838:1;13834:12;13829:17;;13893:1;13886:4;13883:1;13879:12;13876:1;13863:32;14025:4;14022:1;14019;14006:24;14128:9;;;14124:17;;;14111:31;;14101:42;;14343:4;14330:18;;14324:4;14317:32;14519:1;14515:9;14509:4;14505:20;14499:4;14489:37;;-1:-1:-1;;14563:24:0;;;;10890:3760;-1:-1:-1;14670:4:0;14663:15;14737:1;14733:48;;14761:20;14776:4;14761:14;:20::i;:::-;14754:27;;14733:48;14828:52;14864:4;14870:9;;14828:35;:52::i;15068:2123::-;15211:11;15460;15456:1729;;15594:10;15582;15575:30;15723:42;15865:4;15853:10;15841;15829;15826:1;15818:6;15807:63;15803:68;16007:10;16001:17;15991:1095;;16057:4;16051:11;16136:10;16124;16117:30;16219:1;16213:4;16206:15;16304:4;16298;16291:18;16375:10;16362;16354:6;16350:23;16347:39;16537:9;16530:5;16527:20;16523:1;16517:4;16514:11;16511:37;16508:54;;;16551:9;16508:54;16984:10;16972;16966:4;16960;16949:9;16938;16927:68;-1:-1:-1;;17024:4:0;17017:15;15991:1095;;17122:52;17158:4;17164:9;;17122:35;:52::i;2830:306:20:-;2994:12;;3024:11;;;;;3063:10;;;;;3053:21;;;;;;2935:184;;328:58;2935:184;;;20126:25:21;;;;20199:42;20187:55;;;20167:18;;;20160:83;20259:18;;;20252:34;20302:18;;;20295:34;;;;2886:7:20;;20098:19:21;;2935:184:20;19895:440:21;18271:125:13;18343:4;18380:9;:7;:9::i;:::-;18366:23;;:10;:23;;;18359:30;;18271:125;:::o;18647:363::-;18796:4;18816:14;18833:16;18073:24;18067:31;;17942:172;18833:16;18816:33;-1:-1:-1;18925:20:13;;;;;;;18924:79;;;18996:6;18951:51;;:41;18976:4;18982:9;;18951:24;:41::i;:::-;:51;;;;18647:363;-1:-1:-1;;;;;18647:363:13:o;9664:1284:6:-;9779:14;9896:4;9890:11;9934:16;9972:2;9967:297;;;;10286:2;10281:204;;;;10512:5;;;9967:297;10042:4;10020:27;;;10007:41;10090:3;10086:12;;;10100:2;10082:21;10069:35;;;10146:30;;10140:4;10133:44;10219:18;;10213:4;10206:32;9967:297;;10281:204;10367:4;10349:16;10345:27;10332:41;10329:1;10324:50;10318:4;10311:64;10441:4;10423:16;10417:4;10404:42;9927:592;;10549:4;10543;10536:18;10614:4;10608;10602;10596;10593:1;10586:5;10575:44;10571:49;10650:1;10644:4;10637:15;10810:16;10804:4;10800:27;10794:34;10784:44;;10858:1;10852:4;10845:15;9879:24;9664:1284;;;;;:::o;14:347:21:-;65:8;75:6;129:3;122:4;114:6;110:17;106:27;96:55;;147:1;144;137:12;96:55;-1:-1:-1;170:20:21;;213:18;202:30;;199:50;;;245:1;242;235:12;199:50;282:4;274:6;270:17;258:29;;334:3;327:4;318:6;310;306:19;302:30;299:39;296:59;;;351:1;348;341:12;366:477;445:6;453;461;514:2;502:9;493:7;489:23;485:32;482:52;;;530:1;527;520:12;482:52;566:9;553:23;543:33;;627:2;616:9;612:18;599:32;654:18;646:6;643:30;640:50;;;686:1;683;676:12;640:50;725:58;775:7;766:6;755:9;751:22;725:58;:::i;:::-;366:477;;802:8;;-1:-1:-1;699:84:21;;-1:-1:-1;;;;366:477:21:o;1101:154::-;1187:42;1180:5;1176:54;1169:5;1166:65;1156:93;;1245:1;1242;1235:12;1260:367;1328:6;1336;1389:2;1377:9;1368:7;1364:23;1360:32;1357:52;;;1405:1;1402;1395:12;1357:52;1444:9;1431:23;1463:31;1488:5;1463:31;:::i;:::-;1513:5;1591:2;1576:18;;;;1563:32;;-1:-1:-1;;;1260:367:21:o;1632:388::-;1700:6;1708;1761:2;1749:9;1740:7;1736:23;1732:32;1729:52;;;1777:1;1774;1767:12;1729:52;1816:9;1803:23;1835:31;1860:5;1835:31;:::i;:::-;1885:5;-1:-1:-1;1942:2:21;1927:18;;1914:32;1955:33;1914:32;1955:33;:::i;:::-;2007:7;1997:17;;;1632:388;;;;;:::o;2025:508::-;2102:6;2110;2118;2171:2;2159:9;2150:7;2146:23;2142:32;2139:52;;;2187:1;2184;2177:12;2139:52;2226:9;2213:23;2245:31;2270:5;2245:31;:::i;:::-;2295:5;-1:-1:-1;2352:2:21;2337:18;;2324:32;2365:33;2324:32;2365:33;:::i;:::-;2025:508;;2417:7;;-1:-1:-1;;;2497:2:21;2482:18;;;;2469:32;;2025:508::o;2538:544::-;2617:6;2625;2633;2686:2;2674:9;2665:7;2661:23;2657:32;2654:52;;;2702:1;2699;2692:12;2654:52;2741:9;2728:23;2760:31;2785:5;2760:31;:::i;:::-;2810:5;-1:-1:-1;2866:2:21;2851:18;;2838:32;2893:18;2882:30;;2879:50;;;2925:1;2922;2915:12;3451:348;3493:3;3531:5;3525:12;3558:6;3553:3;3546:19;3614:6;3607:4;3600:5;3596:16;3589:4;3584:3;3580:14;3574:47;3666:1;3659:4;3650:6;3645:3;3641:16;3637:27;3630:38;3788:4;3718:66;3713:2;3705:6;3701:15;3697:88;3692:3;3688:98;3684:109;3677:116;;;3451:348;;;;:::o;3804:1314::-;4201:66;4193:6;4189:79;4178:9;4171:98;4305:3;4300:2;4289:9;4285:18;4278:31;4152:4;4332:46;4373:3;4362:9;4358:19;4350:6;4332:46;:::i;:::-;4426:9;4418:6;4414:22;4409:2;4398:9;4394:18;4387:50;4460:33;4486:6;4478;4460:33;:::i;:::-;4524:2;4509:18;;4502:34;;;4585:42;4573:55;;4567:3;4552:19;;4545:84;4660:3;4645:19;;4638:35;;;4710:22;;;4704:3;4689:19;;4682:51;4782:13;;4804:22;;;4854:2;4880:15;;;;-1:-1:-1;4842:15:21;;;;-1:-1:-1;4923:169:21;4937:6;4934:1;4931:13;4923:169;;;4998:13;;4986:26;;5041:2;5067:15;;;;5032:12;;;;4959:1;4952:9;4923:169;;;-1:-1:-1;5109:3:21;;3804:1314;-1:-1:-1;;;;;;;;;;;3804:1314:21:o;5882:247::-;5941:6;5994:2;5982:9;5973:7;5969:23;5965:32;5962:52;;;6010:1;6007;6000:12;5962:52;6049:9;6036:23;6068:31;6093:5;6068:31;:::i;6134:367::-;6197:8;6207:6;6261:3;6254:4;6246:6;6242:17;6238:27;6228:55;;6279:1;6276;6269:12;6228:55;-1:-1:-1;6302:20:21;;6345:18;6334:30;;6331:50;;;6377:1;6374;6367:12;6331:50;6414:4;6406:6;6402:17;6390:29;;6474:3;6467:4;6457:6;6454:1;6450:14;6442:6;6438:27;6434:38;6431:47;6428:67;;;6491:1;6488;6481:12;6506:1045;6646:6;6654;6662;6670;6678;6686;6739:3;6727:9;6718:7;6714:23;6710:33;6707:53;;;6756:1;6753;6746:12;6707:53;6795:9;6782:23;6814:31;6839:5;6814:31;:::i;:::-;6864:5;-1:-1:-1;6921:2:21;6906:18;;6893:32;6934:33;6893:32;6934:33;:::i;:::-;6986:7;-1:-1:-1;7044:2:21;7029:18;;7016:32;7071:18;7060:30;;7057:50;;;7103:1;7100;7093:12;7057:50;7142:70;7204:7;7195:6;7184:9;7180:22;7142:70;:::i;:::-;7231:8;;-1:-1:-1;7116:96:21;-1:-1:-1;;7319:2:21;7304:18;;7291:32;7348:18;7335:32;;7332:52;;;7380:1;7377;7370:12;7332:52;7419:72;7483:7;7472:8;7461:9;7457:24;7419:72;:::i;:::-;6506:1045;;;;-1:-1:-1;6506:1045:21;;-1:-1:-1;6506:1045:21;;7510:8;;6506:1045;-1:-1:-1;;;6506:1045:21:o;7556:688::-;7660:6;7668;7676;7729:2;7717:9;7708:7;7704:23;7700:32;7697:52;;;7745:1;7742;7735:12;7697:52;7785:9;7772:23;7818:18;7810:6;7807:30;7804:50;;;7850:1;7847;7840:12;7804:50;7873:22;;7929:3;7911:16;;;7907:26;7904:46;;;7946:1;7943;7936:12;8249:184;8319:6;8372:2;8360:9;8351:7;8347:23;8343:32;8340:52;;;8388:1;8385;8378:12;8340:52;-1:-1:-1;8411:16:21;;8249:184;-1:-1:-1;8249:184:21:o;8438:::-;8490:77;8487:1;8480:88;8587:4;8584:1;8577:15;8611:4;8608:1;8601:15;8627:125;8692:9;;;8713:10;;;8710:36;;;8726:18;;:::i;9069:128::-;9136:9;;;9157:11;;;9154:37;;;9171:18;;:::i;9202:320::-;9289:6;9297;9350:2;9338:9;9329:7;9325:23;9321:32;9318:52;;;9366:1;9363;9356:12;9318:52;9398:9;9392:16;9417:31;9442:5;9417:31;:::i;:::-;9512:2;9497:18;;;;9491:25;9467:5;;9491:25;;-1:-1:-1;;;9202:320:21:o;9527:358::-;9627:6;9622:3;9615:19;9597:3;9657:66;9649:6;9646:78;9643:98;;;9737:1;9734;9727:12;9643:98;9773:6;9770:1;9766:14;9825:8;9818:5;9811:4;9806:3;9802:14;9789:45;9854:18;;;;9874:4;9850:29;;9527:358;-1:-1:-1;;;9527:358:21:o;9890:985::-;10335:42;10327:6;10323:55;10312:9;10305:74;10427:42;10419:6;10415:55;10410:2;10399:9;10395:18;10388:83;10507:3;10502:2;10491:9;10487:18;10480:31;10286:4;10534:74;10603:3;10592:9;10588:19;10580:6;10572;10534:74;:::i;:::-;10656:9;10648:6;10644:22;10639:2;10628:9;10624:18;10617:50;10690:61;10744:6;10736;10728;10690:61;:::i;:::-;10788:22;;;10782:3;10767:19;;;10760:51;;;;-1:-1:-1;;10835:1:21;10820:17;;10866:2;10854:15;;9890:985;-1:-1:-1;;;;;;9890:985:21:o;10880:519::-;11157:2;11146:9;11139:21;11120:4;11183:73;11252:2;11241:9;11237:18;11229:6;11221;11183:73;:::i;:::-;11304:9;11296:6;11292:22;11287:2;11276:9;11272:18;11265:50;11332:61;11386:6;11378;11370;11332:61;:::i;:::-;11324:69;10880:519;-1:-1:-1;;;;;;;10880:519:21:o;11404:628::-;11521:4;11527:6;11587:11;11574:25;11677:66;11666:8;11650:14;11646:29;11642:102;11622:18;11618:127;11608:155;;11759:1;11756;11749:12;11608:155;11786:33;;11838:20;;;-1:-1:-1;11881:18:21;11870:30;;11867:50;;;11913:1;11910;11903:12;11867:50;11946:4;11934:17;;-1:-1:-1;11997:1:21;11993:14;;;11977;11973:35;11963:46;;11960:66;;;12022:1;12019;12012:12;12037:184;12089:77;12086:1;12079:88;12186:4;12183:1;12176:15;12210:4;12207:1;12200:15;12226:253;12298:2;12292:9;12340:4;12328:17;;12375:18;12360:34;;12396:22;;;12357:62;12354:88;;;12422:18;;:::i;:::-;12458:2;12451:22;12226:253;:::o;12484:251::-;12556:2;12550:9;12598:2;12586:15;;12631:18;12616:34;;12652:22;;;12613:62;12610:88;;;12678:18;;:::i;12740:334::-;12811:2;12805:9;12867:2;12857:13;;12872:66;12853:86;12841:99;;12970:18;12955:34;;12991:22;;;12952:62;12949:88;;;13017:18;;:::i;:::-;13053:2;13046:22;12740:334;;-1:-1:-1;12740:334:21:o;13079:2799::-;13177:9;13236:4;13228:5;13212:14;13208:26;13204:37;13201:57;;;13254:1;13251;13244:12;13201:57;13282:22;;:::i;:::-;13341:5;13328:19;13356:33;13381:7;13356:33;:::i;:::-;13398:24;;13491:2;13480:14;;;13467:28;13511:16;;;13504:33;13606:2;13595:14;;;13582:28;13626:16;;;13619:33;13699:2;13688:14;;13675:28;13726:18;13715:30;;13712:50;;;13758:1;13755;13748:12;13712:50;13781:18;;13837:14;13830:4;13822:13;;13818:34;13808:62;;13866:1;13863;13856:12;13808:62;13906:2;13893:16;13932:18;13924:6;13921:30;13918:56;;;13954:18;;:::i;:::-;14000:6;13997:1;13993:14;14027:28;14051:2;14047;14043:11;14027:28;:::i;:::-;14089:19;;;14133:2;14163:11;;;14159:20;;;14124:12;;;;14202:14;14191:26;;14188:46;;;14230:1;14227;14220:12;14188:46;14262:2;14258;14254:11;14243:22;;14274:1529;14290:6;14285:3;14282:15;14274:1529;;;14376:3;14363:17;14412:18;14399:11;14396:35;14393:55;;;14444:1;14441;14434:12;14393:55;14471:20;;14609:2;14519:14;14515:23;;;14540:66;14511:96;14507:105;14504:125;;;14625:1;14622;14615:12;14504:125;14657:22;;:::i;:::-;14728:2;14724;14720:11;14707:25;14745:33;14770:7;14745:33;:::i;:::-;14791:24;;14889:2;14881:11;;14868:25;14926:2;14913:16;;14906:33;14989:2;14981:11;;14968:25;15022:18;15009:32;;15006:52;;;15054:1;15051;15044:12;15006:52;15104:2;15093:8;15089:2;15085:17;15081:26;15071:36;;;15149:14;15142:4;15138:2;15134:13;15130:34;15120:62;;15178:1;15175;15168:12;15120:62;15224:2;15211:16;15256:18;15246:8;15243:32;15240:58;;;15278:18;;:::i;:::-;15326:118;15440:2;15371:66;15364:4;15354:8;15350:19;15346:92;15342:101;15326:118;:::i;:::-;15473:8;15464:7;15457:25;15529:14;15524:2;15513:8;15509:2;15505:17;15501:26;15498:46;15495:66;;;15557:1;15554;15547:12;15495:66;15618:8;15613:2;15609;15605:11;15600:2;15591:7;15587:16;15574:53;15680:1;15675:2;15664:8;15655:7;15651:22;15647:31;15640:42;15720:7;15715:2;15706:7;15702:16;15695:33;;;15753:7;15748:3;15741:20;;;15790:2;15785:3;15781:12;15774:19;;14316:2;14311:3;14307:12;14300:19;;14274:1529;;;15832:2;15819:16;;15812:31;-1:-1:-1;15823:7:21;;13079:2799;-1:-1:-1;;;;;13079:2799:21:o;15883:184::-;15935:77;15932:1;15925:88;16032:4;16029:1;16022:15;16056:4;16053:1;16046:15;16072:380;16162:4;16220:11;16207:25;16310:66;16299:8;16283:14;16279:29;16275:102;16255:18;16251:127;16241:155;;16392:1;16389;16382:12;16241:155;16413:33;;;;;16072:380;-1:-1:-1;;16072:380:21:o;16457:580::-;16534:4;16540:6;16600:11;16587:25;16690:66;16679:8;16663:14;16659:29;16655:102;16635:18;16631:127;16621:155;;16772:1;16769;16762:12;16621:155;16799:33;;16851:20;;;-1:-1:-1;16894:18:21;16883:30;;16880:50;;;16926:1;16923;16916:12;16880:50;16959:4;16947:17;;-1:-1:-1;16990:14:21;16986:27;;;16976:38;;16973:58;;;17027:1;17024;17017:12;17042:271;17225:6;17217;17212:3;17199:33;17181:3;17251:16;;17276:13;;;17251:16;17042:271;-1:-1:-1;17042:271:21:o;17318:680::-;17549:6;17538:9;17531:25;17592:2;17587;17576:9;17572:18;17565:30;17631:6;17626:2;17615:9;17611:18;17604:34;17689:6;17681;17675:3;17664:9;17660:19;17647:49;17746:1;17740:3;17731:6;17720:9;17716:22;17712:32;17705:43;17512:4;17803:66;17798:2;17790:6;17786:15;17782:88;17771:9;17767:104;17931:3;17919:9;17915:2;17911:18;17907:28;17902:2;17891:9;17887:18;17880:56;17953:39;17987:3;17983:2;17979:12;17971:6;17953:39;:::i;18192:277::-;18259:6;18312:2;18300:9;18291:7;18287:23;18283:32;18280:52;;;18328:1;18325;18318:12;18280:52;18360:9;18354:16;18413:5;18406:13;18399:21;18392:5;18389:32;18379:60;;18435:1;18432;18425:12;19364:526;19582:13;;19525:3;;19556;;19651:4;19639:17;;19525:3;19684:179;19698:6;19695:1;19692:13;19684:179;;;19761:13;;19747:28;;19808:4;19797:16;;;;19836:17;;;;19720:1;19713:9;19684:179;;;-1:-1:-1;19879:5:21;;19364:526;-1:-1:-1;;;;;19364:526:21:o","linkReferences":{},"immutableReferences":{"2880":[{"start":7269,"length":32},{"start":7579,"length":32}],"3203":[{"start":8828,"length":32}],"3205":[{"start":8863,"length":32}],"3207":[{"start":8943,"length":32}],"3209":[{"start":8981,"length":32}],"3211":[{"start":8795,"length":32}]}}}}}}},"signatures":{"function":[{"signature":"authorizeSessionSigner(address,uint256)","signatureHash4":"0x24017fae","signatureHash32":"0x24017fae09dd286e0b5ad411d1e4aed48280c0aab2053bba88ed546564542eb6"},{"signature":"cancelOwnershipHandover()","signatureHash4":"0x54d1f13d","signatureHash32":"0x54d1f13d76f000aa202485e9c4b750a3fb26985ca34157c621201e1375bcbfac"},{"signature":"completeOwnershipHandover(uint256,bytes)","signatureHash4":"0x9700d107","signatureHash32":"0x9700d107b2c9458c86bc721c1f8d9a51a3b88c42b17dad83c9467e140204a240"},{"signature":"eip712Domain()","signatureHash4":"0x84b0196e","signatureHash32":"0x84b0196e4b78e1918928c3b71e1f57a2bfc6d4a368fe07990ccc1367172719fb"},{"signature":"execute((address,uint256,uint256,(address,uint256,bytes)[]),bytes)","signatureHash4":"0xe8c8bf64","signatureHash32":"0xe8c8bf642856aac9fc6bc2a8de259833da048d60ad1288c7678d415090e54772"},{"signature":"factory()","signatureHash4":"0xc45a0155","signatureHash32":"0xc45a01550ceb4bc5c6b2e6f722b5033a03078f9bd6673457375ba94c26ac1cf0"},{"signature":"id()","signatureHash4":"0xaf640d0f","signatureHash32":"0xaf640d0f8fdda2440c97539d4d0c782027af8ec45ed3bbceab6e99fcaeb97ce1"},{"signature":"initialize(address)","signatureHash4":"0xc4d66de8","signatureHash32":"0xc4d66de8473e8f74cb05df264ee8262da16b56717ef1f05d73bfdcea3adc85e5"},{"signature":"isValidSignature(bytes32,bytes)","signatureHash4":"0x1626ba7e","signatureHash32":"0x1626ba7e356f5979dd355a3d2bfb43e80420a480c3b854edce286a82d7496869"},{"signature":"nonce()","signatureHash4":"0xaffed0e0","signatureHash32":"0xaffed0e0ba94adda3772e73093f9f42c54ccf7ebf1e7dabc728520a58f80bdf5"},{"signature":"owner()","signatureHash4":"0x8da5cb5b","signatureHash32":"0x8da5cb5b36e7f68c1d2e56001220cdbdd3ba2616072f718acfda4a06441a807d"},{"signature":"pause()","signatureHash4":"0x8456cb59","signatureHash32":"0x8456cb591a934d53f6ccc6332123a165a1f3562907bf11330d847a29ca49eb89"},{"signature":"paused()","signatureHash4":"0x5c975abb","signatureHash32":"0x5c975abbf8c4d6efa68fc896e233763eb503f2318260b7bf59b19412913788b2"},{"signature":"pendingOwner()","signatureHash4":"0xe30c3978","signatureHash32":"0xe30c3978ddd82956a01b5cb08d17f1a2d73e636aeefb7b36f896e41d4c2aab90"},{"signature":"proxiableUUID()","signatureHash4":"0x52d1902d","signatureHash32":"0x52d1902ddf94a87b87c42e6ab3aff7da3c30beb57dc65dd86cb2543522a55a4c"},{"signature":"revokeAllowance(address,address)","signatureHash4":"0x7ae26773","signatureHash32":"0x7ae267733f07af3d3d477e32b909aa23fc1295fc9b36ad21e7f4748b549b5abf"},{"signature":"revokeApprovalForAll(address,address)","signatureHash4":"0x2a45cacf","signatureHash32":"0x2a45cacf6107cce5a5a03cb7cafc875d0433557e3038b05ab6fa4e19bf666fca"},{"signature":"revokeSessionSigner(address)","signatureHash4":"0xe63f952f","signatureHash32":"0xe63f952f6d6a18cb4725850a8885ceeab5a62ed2e893e78235fa1e0f4e615381"},{"signature":"revokeSessionSignerEmergency(address)","signatureHash4":"0xe9e37136","signatureHash32":"0xe9e3713685b7078cd7fefe9cd75588c8f322b6b5483676171563e74b6c76c52e"},{"signature":"sessionSignerAuthorizedUntil(address)","signatureHash4":"0xb9ac71d6","signatureHash32":"0xb9ac71d68f710a2d867c828280df7620856d6cf1f0d62def3c2974a01469eac2"},{"signature":"transferOwnership(address)","signatureHash4":"0xf2fde38b","signatureHash32":"0xf2fde38b092330466c661fc723d5289b90272a3e580e3187d1d7ef788506c557"},{"signature":"unpause()","signatureHash4":"0x3f4ba83a","signatureHash32":"0x3f4ba83af89dc9793996d9e56b8abe6dc88cd97c9c2bb23027806e9c1ffd54dc"},{"signature":"upgrade(address,bytes)","signatureHash4":"0xc987336c","signatureHash32":"0xc987336c5c5508ffd3d2a010e16a0868e225376737a36dd2f4a76ab2f52b93aa"},{"signature":"upgradeToAndCall(address,bytes)","signatureHash4":"0x4f1ef286","signatureHash32":"0x4f1ef2866b98625bdfefae89411f7a82754ac4089eff8e78c8832329a538337f"},{"signature":"withdrawERC1155(address,address,uint256[],uint256[])","signatureHash4":"0xd8cb0d66","signatureHash32":"0xd8cb0d66a081561580369b9d8ad59eca6474287a14faf665d7d2796638c600bd"},{"signature":"withdrawERC20(address,address,uint256)","signatureHash4":"0x44004cc1","signatureHash32":"0x44004cc1253230200d83e24d6012a7a07a038f45baeed894de0d37840e455b53"}],"event":[{"signature":"AllowanceRevoked(address,address)","signatureHash4":"0x8da578e4","signatureHash32":"0x8da578e4cb2672c4986388e504a6f639391986195c077e5db9f48e04c97a501b"},{"signature":"ApprovalForAllRevoked(address,address)","signatureHash4":"0xf9dfa223","signatureHash32":"0xf9dfa223fca66e1e19e96ad420898db0b0ada933c1d0c0953b3d5a44176f495c"},{"signature":"BatchExecuted(uint256)","signatureHash4":"0xe9cc9bbe","signatureHash32":"0xe9cc9bbe7de1cbb097a6357ca3182909488efe8d793e25665befc064a02d10a7"},{"signature":"ERC1155BatchWithdrawal(address,address,uint256[],uint256[])","signatureHash4":"0xb790ced1","signatureHash32":"0xb790ced15183f79ade456fb39c4fc443005b36f92a7318ef6e0e9f18dc05b040"},{"signature":"ERC20Withdrawal(address,address,uint256)","signatureHash4":"0x2fbb3e8d","signatureHash32":"0x2fbb3e8dc2807d6a61feb98fc2120153f77b2c0d25ef6272e1756935dd62c847"},{"signature":"Execution(address,uint256,bytes,bytes)","signatureHash4":"0xfde9c64d","signatureHash32":"0xfde9c64d8b0b21fe439285c271603188269ad7c561364f724d48e9846120d7b6"},{"signature":"Initialized(uint64)","signatureHash4":"0xc7f505b2","signatureHash32":"0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"},{"signature":"OwnershipHandoverCanceled(address)","signatureHash4":"0xfa7b8eab","signatureHash32":"0xfa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92"},{"signature":"OwnershipHandoverCompleted(address,address)","signatureHash4":"0x38bafbf0","signatureHash32":"0x38bafbf020d44b4ca47fda166836e6a0e0a15a9d6fec166834c0125e193830ff"},{"signature":"OwnershipHandoverRequested(address)","signatureHash4":"0xdbf36a10","signatureHash32":"0xdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d"},{"signature":"OwnershipTransferred(address,address)","signatureHash4":"0x8be0079c","signatureHash32":"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0"},{"signature":"Paused(uint256)","signatureHash4":"0x32fb7c98","signatureHash32":"0x32fb7c9891bc4f963c7de9f1186d2a7755c7d6e9f4604dabe1d8bb3027c2f49e"},{"signature":"SessionSignerAuthorized(address,uint256)","signatureHash4":"0xcacba9f6","signatureHash32":"0xcacba9f642804cfed98e2bb1d1c05bc4c78b35a209cdffdb4674b3363bafd92b"},{"signature":"SessionSignerRevoked(address)","signatureHash4":"0xeac85989","signatureHash32":"0xeac85989fadc30dfe2712c2308dcfecb3f9af1d15422056fc5a98ed1b49ca209"},{"signature":"SessionSignerRevokedEmergency(address)","signatureHash4":"0x61be9e00","signatureHash32":"0x61be9e006b8f5c6e0e05905bb6a35efabbb3343c37d33552f634bd1d20f64141"},{"signature":"Unpaused(uint256)","signatureHash4":"0x9dd715fe","signatureHash32":"0x9dd715fed52c25e642f97653bb4c4339ad98fe6d6e130348be82ae5d86383a8c"},{"signature":"Upgraded(address)","signatureHash4":"0xbc7cd75a","signatureHash32":"0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b"}],"error":[{"signature":"CallFailed()","signatureHash4":"0x3204506f","signatureHash32":"0x3204506f6a813959cffc5fd04d7ea98039e9c7444048856baf6c10ae312eb843"},{"signature":"EmptyBatch()","signatureHash4":"0xc2e5347d","signatureHash32":"0xc2e5347df6cf8d1bf68f8a9651642312bd381b900d857d97cd665976180d6ae0"},{"signature":"Expired()","signatureHash4":"0x203d82d8","signatureHash32":"0x203d82d8d99f63bfecc8335216735e0271df4249ea752b030f9ab305b94e5afe"},{"signature":"FnSelectorNotRecognized()","signatureHash4":"0x3c10b94e","signatureHash32":"0x3c10b94ed38db24b2ddb45fabdb3c8e1b43dea2d2a216cc06ec344a46ef9d4cc"},{"signature":"InvalidImplementation()","signatureHash4":"0x68155f9a","signatureHash32":"0x68155f9a907e5d62f79efc98cfae07e66c5c497ee19d258a092eaffa242b7f65"},{"signature":"InvalidInitialization()","signatureHash4":"0xf92ee8a9","signatureHash32":"0xf92ee8a957075833165f68c320933b1a1294aafc84ee6e0dd3fb178008f9aaf5"},{"signature":"InvalidNonce()","signatureHash4":"0x756688fe","signatureHash32":"0x756688fec2871909d72599c334b663ffcc94654c438569966c7fd3ab3a351f34"},{"signature":"InvalidOwner()","signatureHash4":"0x49e27cff","signatureHash32":"0x49e27cffb37b1ca4a9bf5318243b2014d13f940af232b8552c208bdea15739da"},{"signature":"InvalidSignature()","signatureHash4":"0x8baa579f","signatureHash32":"0x8baa579fce362245063d36f11747a89dd489c54795634fc673cc0e0db51fedc5"},{"signature":"InvalidWallet()","signatureHash4":"0x23455ba1","signatureHash32":"0x23455ba1dd5d22534bfa2aa6565424d4ca815608d443e8e14114d11de76a47e2"},{"signature":"NoPendingOwner()","signatureHash4":"0x7c63ac36","signatureHash32":"0x7c63ac36a2c5c0c9bbce5b6b91079e677592a9bc937c574e35fecd2ce3032803"},{"signature":"NotInitializing()","signatureHash4":"0xd7e6bcf8","signatureHash32":"0xd7e6bcf8597daa127dc9f0048d2f08d5ef140a2cb659feabd700beff1f7a8302"},{"signature":"NotPaused()","signatureHash4":"0x6cd60201","signatureHash32":"0x6cd602013233635730773e15e89b8a778034d859147e8f706bcd1aa42e228e06"},{"signature":"OnlyFactory()","signatureHash4":"0x0c6d42ae","signatureHash32":"0x0c6d42aee1b4832deb27409f37a942e97dfedc101aa8a02a9e70506e047120da"},{"signature":"OnlySelf()","signatureHash4":"0x14d4a4e8","signatureHash32":"0x14d4a4e8a5140da60b7a280478fb427da973ca582a83cf5dbad8c5f2abee9ba4"},{"signature":"SessionSignerSelfCallNotAllowed()","signatureHash4":"0xde4e67c5","signatureHash32":"0xde4e67c5b58b9c80abb5193d8ee3473d7aaa3f79c187f74e18a1a834a8ab2b04"},{"signature":"SessionSignerUnauthorized()","signatureHash4":"0x3d4b0145","signatureHash32":"0x3d4b0145af5bb0673615e34c55e5d897f4ce2358bc5cc15c1403455ddf5b0d54"},{"signature":"TimelockInsufficientDelay()","signatureHash4":"0xac90eb92","signatureHash32":"0xac90eb921f5ffc5d74440cbe693d217793f9bb3d22d59db9c8a82df3a9ac5b91"},{"signature":"Unauthorized()","signatureHash4":"0x82b42900","signatureHash32":"0x82b4290015f7ec7256ca2a6247d3c2a89c4865c0e791456df195f40ad0a81367"},{"signature":"UnauthorizedCallContext()","signatureHash4":"0x9f03a026","signatureHash32":"0x9f03a026210d6e1d73a6bb286502827a91a864e6fb88b45d0431438ccf6f87f1"},{"signature":"UpgradeFailed()","signatureHash4":"0x55299b49","signatureHash32":"0x55299b49652ca9ce92a8bd64b03e77919c7a18398e35089bb02c00e739b87f18"}]},"proxyResolution":{"isProxy":false,"proxyType":null,"implementations":[]},"match":"exact_match","chainId":"137","address":"0x58CA52ebe0DadfdF531Cde7062e76746de4Db1eB"}