{"matchId":"58395354","creationMatch":"exact_match","runtimeMatch":"exact_match","verifiedAt":"2026-11-04T18:20:08Z","creationBytecode":{"onchainBytecode":"0x60806040523461040057604051601f61272238819003918201601f19168301916001600160401b038311848410176103335780849260209460405283398101031261040057516001600160a01b038116908190036104005761005f610404565b90600782526643484153544c4560c81b602083015261007c610404565b600781526643484153544c4560c81b602082015282519091906001600160401b038111610333576100ad5f54610423565b601f81116103b3575b506020601f821160011461035257819293945f92610347575b50508160011b915f199060031b1c1916175f555b81516001600160401b038111610333576100fe600154610423565b601f81116102da575b50602092601f821160011461027957928192935f9261026e575b50508160011b915f199060031b1c1916176001555b801561025b57600880546001600160a01b03198116831790915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3600980546001600160a81b031916740160b9262456de011f7d15a54cdd8c48baaa8b022f179055600c805460ff19169055600d546101bc90610423565b601f811161021d575b507f697066733a2f2f43484153544c455f4d455441444154415f424153452f00003a600d556101f460206101f7610404565b83815201526001600160a01b0316607d60a21b176006556040516122b090816104728239f35b600d5f5261025590601f0160051c7fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb59081019061045b565b5f6101c5565b631e4fbdf760e01b5f525f60045260245ffd5b015190505f80610121565b601f1982169360015f52805f20915f5b8681106102c257508360019596106102aa575b505050811b01600155610136565b01515f1960f88460031b161c191690555f808061029c565b91926020600181928685015181550194019201610289565b60015f52610323907fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6601f840160051c81019160208510610329575b601f0160051c019061045b565b5f610107565b9091508190610316565b634e487b7160e01b5f52604160045260245ffd5b015190505f806100cf565b601f198216905f8052805f20915f5b81811061039b57509583600195969710610383575b505050811b015f556100e3565b01515f1960f88460031b161c191690555f8080610376565b9192602060018192868b015181550194019201610361565b5f80526103fa907f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563601f840160051c8101916020851061032957601f0160051c019061045b565b5f6100b6565b5f80fd5b60408051919082016001600160401b0381118382101761033357604052565b90600182811c92168015610451575b602083101461043d57565b634e487b7160e01b5f52602260045260245ffd5b91607f1691610432565b818110610466575050565b5f815560010161045b56fe6080806040526004361015610012575f80fd5b5f3560e01c90816301ffc9a7146119b75750806306fdde0314611915578063081812fc146118d9578063095ea7b3146117ef5780630d1cfcae146117c75780630f2cdd6c146117ac57806313f9dcf414611790578063149b8885146116dd57806318160ddd146108c55780631b47ec3a146116c05780631ec5ae53146116a55780632238c8ac1461168a57806323b872dd1461167357806324bbd049146116515780632a55205a146115c65780632bddfe6f146115aa57806332cb6b0c1461158e578063379607f51461105c5780633ccfd60b14610fa55780633ce1650314610f895780633cef28d214610f5157806342842e0e14610f225780634324aa2114610eeb5780634590027914610ecf5780634753600b14610eaa5780634eab3ef214610e7d578063519d6d7e14610e6257806355f804b314610c6d5780635a781a6b14610c1c5780636352211e14610bec578063645bbbb914610bd25780636c0360eb14610bb757806370a0823114610b66578063715018a614610b0b57806374799bcc14610af05780637a06fff714610ad4578063867b817a14610ab15780638da5cb5b14610a895780639530895214610a6057806395d89b4114610996578063a22cb465146108e2578063a2309ff8146108c5578063b17e0eb5146108aa578063b45c6f2114610888578063b52f2c331461085d578063b58bdab5146107cb578063b7a3538e146107a2578063b88d4fde1461070c578063bc034ea5146106d8578063c37b8362146106b7578063c87b56dd146104c1578063caa1bb2d1461048d578063d309161514610472578063e62a1f2d14610452578063e985e9c5146103fb578063ef0e0157146103cf578063f2fde38b14610349578063f319428d146103075763f8004d31146102a5575f80fd5b34610303576020366003190112610303577fa9f739ee29a6336acdfe5b044a6dce0d70579031be6dbdece2ac0848d8c2a08060206102e1611a8c565b6102e96120f1565b151560ff19600c541660ff821617600c55604051908152a1005b5f80fd5b346103035760203660031901126103035760043560ff811681036103035761033161034591611fed565b604051918291602083526020830190611a3c565b0390f35b3461030357602036600319011261030357610362611a60565b61036a6120f1565b6001600160a01b031680156103bc57600880546001600160a01b0319811683179091556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3005b631e4fbdf760e01b5f525f60045260245ffd5b3461030357602036600319011261030357600435600581101561030357602090600e0154604051908152f35b3461030357604036600319011261030357610414611a60565b61041c611a76565b9060018060a01b03165f52600560205260405f209060018060a01b03165f52602052602060ff60405f2054166040519015158152f35b34610303575f36600319011261030357602060405165b5e620f480008152f35b34610303575f36600319011261030357602060405160188152f35b34610303576020366003190112610303576004356104aa816120bd565b505f526015602052602060405f2054604051908152f35b34610303576020366003190112610303576004356104de816120bd565b506104e7611b4b565b80519091901561069c575f818072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b811015610676575b50806d04ee2d6d415b85acef8100000000600a92101561065b575b662386f26fc10000811015610647575b6305f5e100811015610636575b612710811015610627575b6064811015610619575b1015610611575b6001810191600a602161059261057c86611af7565b9561058a6040519788611ad5565b808752611af7565b602086019490601f19013686378501015b5f1901916f181899199a1a9b1b9c1cb0b131b232b360811b8282061a8353049081156105d157600a906105a3565b50506103459260206103319281946040519584879551918291018587015e840190838201905f8252519283915e01015f815203601f198101835282611ad5565b600101610567565b606460029104920191610560565b61271060049104920191610556565b6305f5e1006008910492019161054b565b662386f26fc100006010910492019161053e565b6d04ee2d6d415b85acef81000000006020910492019161052e565b6040925072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b90049050600a610513565b50506103456040516106af602082611ad5565b5f8152610331565b34610303575f36600319011261030357602060405166016bcc41e900008152f35b34610303576020366003190112610303576004356106f5816120bd565b505f526014602052602060405f2054604051908152f35b3461030357608036600319011261030357610725611a60565b61072d611a76565b906044356064359267ffffffffffffffff841161030357366023850112156103035783600401359261075e84611af7565b9361076c6040519586611ad5565b8085523660248288010111610303576020815f9260246107a09901838901378601015261079a838383611bef565b3361214b565b005b346103035760203660031901126103035760206107c0600435611faf565b60ff60405191168152f35b346103035760e03660031901126103035736606312156103035760405160a0810181811067ffffffffffffffff82111761084957604052803660e411610303576044905b60e4821061083957604061082884602435600435611f17565b60ff83519216825215156020820152f35b813581526020918201910161080f565b634e487b7160e01b5f52604160045260245ffd5b3461030357602036600319011261030357602061088061087b611a60565b611ec6565b604051908152f35b34610303575f3660031901126103035760206103e8600a541015604051908152f35b34610303575f36600319011261030357602060405160288152f35b34610303575f366003190112610303576020600a54604051908152f35b34610303576040366003190112610303576108fb611a60565b60243590811515809203610303573315610983576001600160a01b031690811561097057335f52600560205260405f20825f5260205260405f2060ff1981541660ff83161790556040519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b50630b61174360e31b5f5260045260245ffd5b63a9fbf51f60e01b5f525f60045260245ffd5b34610303575f366003190112610303576040515f6001546109b681611b13565b8084529060018116908115610a3c57506001146109de575b6103458361033181850382611ad5565b60015f9081527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6939250905b808210610a22575090915081016020016103316109ce565b919260018160209254838588010152019101909291610a0a565b60ff191660208086019190915291151560051b8401909101915061033190506109ce565b346103035760203660031901126103035760043560ff8116810361030357610880602091611e87565b34610303575f366003190112610303576008546040516001600160a01b039091168152602090f35b34610303576020366003190112610303576020610880610acf611a60565b611e41565b34610303575f3660031901126103035760206040516103e88152f35b34610303575f36600319011261030357602060405160248152f35b34610303575f36600319011261030357610b236120f1565b600880546001600160a01b031981169091555f906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b34610303576020366003190112610303576001600160a01b03610b87611a60565b168015610ba4575f526003602052602060405f2054604051908152f35b6322718ad960e21b5f525f60045260245ffd5b34610303575f36600319011261030357610345610331611b4b565b34610303575f366003190112610303576020604051818152f35b34610303576020366003190112610303576020610c0a6004356120bd565b6040516001600160a01b039091168152f35b34610303575f36600319011261030357600b546107d08110610c44575060205f604051908152f35b6107d0036107d08111610c5957602090610880565b634e487b7160e01b5f52601160045260245ffd5b346103035760203660031901126103035760043567ffffffffffffffff8111610303573660238201121561030357806004013567ffffffffffffffff811161030357366024828401011161030357610cc36120f1565b610cce600d54611b13565b601f8111610dfa575b505f601f8211600114610d60577f5411e8ebf1636d9e83d5fc4900bf80cbac82e8790da2a4c94db4895e889eedf692826024936040935f91610d53575b508160011b905f198360031b1c191617600d555b8083519485936020855282602086015201848401375f828201840152601f01601f19168101030190a1005b8591508301013586610d14565b601f19821690600d5f525f51602061225b5f395f51905f52915f5b818110610ddf5750926040927f5411e8ebf1636d9e83d5fc4900bf80cbac82e8790da2a4c94db4895e889eedf695928260249610610dc4575b5050600181811b01600d55610d28565b83018501355f19600384901b60f8161c191690558580610db4565b91926020600181926024878a01013581550194019201610d7b565b600d5f52601f820160051c5f51602061225b5f395f51905f52019060208310610e4d575b601f0160051c5f51602061225b5f395f51905f5201905b818110610e425750610cd7565b5f8155600101610e35565b5f51602061225b5f395f51905f529150610e1e565b34610303575f36600319011261030357602060405160fa8152f35b34610303576020366003190112610303576020610ea0610e9b611a60565b611db4565b6040519015158152f35b34610303575f36600319011261030357602060ff60095460a01c166040519015158152f35b34610303575f3660031901126103035760206040516109c48152f35b3461030357602036600319011261030357600435610f08816120bd565b505f526013602052602060ff60405f205416604051908152f35b34610303576107a0610f3336611a9b565b9060405192610f43602085611ad5565b5f845261079a838383611bef565b34610303576020366003190112610303576001600160a01b03610f72611a60565b165f526016602052602060405f2054604051908152f35b34610303575f3660031901126103035760206040516107d08152f35b34610303575f36600319011261030357610fbd6120f1565b478015611021576008545f918291829182916001600160a01b03165af1610fe2611d85565b5015610fea57005b60405162461bcd60e51b815260206004820152600f60248201526e1dda5d1a191c985dc819985a5b1959608a1b6044820152606490fd5b60405162461bcd60e51b81526020600482015260136024820152726e6f7468696e6720746f20776974686472617760681b6044820152606490fd5b60203660031901126103035760ff600c5416156115585761107c33611db4565b1561151f57335f526016602052600a60405f205410156114eb57600a546113888110156114bb576110ac33611e41565b80340361148a576110bc33611ec6565b604051602081019182526004356040820152604081526110dd606082611ad5565b519020906110ea82612118565b926018841061145457604051600e5f825b6005821061143e575050508061111560a061111c93611ad5565b8286611f17565b929092156113ee5765b5e620f48000146113d4575b61113a90611d77565b9182600a5560058210156113c05781600e0180549060018201809211610c595755825f52601360205260ff60405f209216918260ff19825416179055825f5260146020528360405f2055825f52601560205260405f2055335f52601660205260405f2080549060018201809211610c5957556020926040516111bc8582611ad5565b5f815233156113ad575f8481526002865260409020546001600160a01b0316801515908161137c575b335f8181526003895260408082208054600101905588825260028a52812080546001600160a01b0319168317905587919083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9080a45061136957333b61127b575b50836040519283528201527fdeec4c70f5cd118981863a7abd648939032c7622cd6b55c633423285cbf2d3c060403392a3005b846112b49160405180938192630a85bd0160e11b83523360048401525f6024840152886044840152608060648401526084830190611a3c565b03815f335af15f9181611329575b506112ef57846112d0611d85565b80519190826112ec57633250574960e11b5f523360045260245ffd5b01fd5b929391929091906001600160e01b03191663757a42ff60e11b016113165792919084611248565b633250574960e11b5f523360045260245ffd5b9091508581813d8311611362575b6113418183611ad5565b8101031261030357516001600160e01b0319811681036103035790866112c2565b503d611337565b6339e3563760e11b5f525f60045260245ffd5b5f8681526004602052604080822080546001600160a01b031916905582825260038952902080545f190190556111e5565b633250574960e11b5f525f60045260245ffd5b634e487b7160e01b5f52603260045260245ffd5b600b549060018201809211610c5957600b91909155611131565b60405162461bcd60e51b815260206004820152602260248201527f72616e6b2066756c6c202d206772696e642061207374726f6e6765722070726f60448201526137b360f11b6064820152608490fd5b60016020819285548152019301910190916110fb565b60405162461bcd60e51b815260206004820152600e60248201526d70726f6f6620746f6f207765616b60901b6044820152606490fd5b60405162461bcd60e51b815260206004820152600960248201526877726f6e672066656560b81b6044820152606490fd5b60405162461bcd60e51b81526020600482015260086024820152671cdbdb19081bdd5d60c21b6044820152606490fd5b60405162461bcd60e51b815260206004820152600c60248201526b1dd85b1b195d081b1a5b5a5d60a21b6044820152606490fd5b60405162461bcd60e51b81526020600482015260116024820152701059d95b9d081251081c995c5d5a5c9959607a1b6044820152606490fd5b60405162461bcd60e51b815260206004820152600e60248201526d1b5a5b9d081a5cc818db1bdcd95960921b6044820152606490fd5b34610303575f3660031901126103035760206040516113888152f35b34610303575f3660031901126103035760206040516105dc8152f35b34610303576040366003190112610303576004355f90815260076020526040902054602435906001600160a01b0381169060a01c8115611639575b6001600160601b031691828102928184041490151715610c5957604080516001600160a01b0390921682526127109092046020820152f35b50506006546001600160a01b0381169060a01c611601565b34610303575f36600319011261030357602060ff600c54166040519015158152f35b34610303576107a061168436611a9b565b91611bef565b34610303575f36600319011261030357602060405160328152f35b34610303575f366003190112610303576020604051601c8152f35b34610303575f366003190112610303576020600b54604051908152f35b34610303576040366003190112610303577fb63421408d6b6f7e6fbc43340faaef44856b54d08fc7b3d82a59185fce4c9c126040611719611a8c565b611721611a76565b9061172a6120f1565b6009805460ff60a01b19811692151560a081901b60ff60a01b1693841790925590926001600160a01b0316919082611779575b505060095483519283526001600160a01b0316602083015250a1005b6001600160a81b031916171760095583808061175d565b34610303575f3660031901126103035760206040516102bc8152f35b34610303575f366003190112610303576020604051600a8152f35b34610303575f366003190112610303576009546040516001600160a01b039091168152602090f35b3461030357604036600319011261030357611808611a60565b602435611814816120bd565b331515806118c6575b80611899575b6118865781906001600160a01b0384811691167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9255f80a45f90815260046020526040902080546001600160a01b0319166001600160a01b03909216919091179055005b63a9fbf51f60e01b5f523360045260245ffd5b506001600160a01b0381165f90815260056020908152604080832033845290915290205460ff1615611823565b506001600160a01b03811633141561181d565b34610303576020366003190112610303576004356118f6816120bd565b505f526004602052602060018060a01b0360405f205416604051908152f35b34610303575f366003190112610303576040515f5f5461193481611b13565b8084529060018116908115610a3c575060011461195b576103458361033181850382611ad5565b5f8080527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563939250905b80821061199d575090915081016020016103316109ce565b919260018160209254838588010152019101909291611985565b34610303576020366003190112610303576004359063ffffffff60e01b82168092036103035760209163152a902d60e11b81149081156119f9575b5015158152f35b6380ac58cd60e01b811491508115611a2b575b8115611a1a575b50836119f2565b6301ffc9a760e01b14905083611a13565b635b5e139f60e01b81149150611a0c565b805180835260209291819084018484015e5f828201840152601f01601f1916010190565b600435906001600160a01b038216820361030357565b602435906001600160a01b038216820361030357565b60043590811515820361030357565b6060906003190112610303576004356001600160a01b038116810361030357906024356001600160a01b0381168103610303579060443590565b90601f8019910116810190811067ffffffffffffffff82111761084957604052565b67ffffffffffffffff811161084957601f01601f191660200190565b90600182811c92168015611b41575b6020831014611b2d57565b634e487b7160e01b5f52602260045260245ffd5b91607f1691611b22565b604051905f82600d5491611b5e83611b13565b8083529260018116908115611bd05750600114611b84575b611b8292500383611ad5565b565b50600d5f90815290915f51602061225b5f395f51905f525b818310611bb4575050906020611b8292820101611b76565b6020919350806001915483858901015201910190918492611b9c565b60209250611b8294915060ff191682840152151560051b820101611b76565b6001600160a01b03909116919082156113ad575f828152600260205260409020546001600160a01b031692829033151580611ce2575b5084611caf575b805f52600360205260405f2060018154019055815f52600260205260405f20816001600160601b0360a01b825416179055847fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a46001600160a01b0316808303611c9757505050565b6364283d7b60e01b5f5260045260245260445260645ffd5b5f82815260046020526040902080546001600160a01b0319169055845f52600360205260405f205f198154019055611c2c565b90915080611d26575b15611cf85782905f611c25565b8284611d1057637e27328960e01b5f5260045260245ffd5b63177e802f60e01b5f523360045260245260445ffd5b503384148015611d55575b80611ceb57505f838152600460205260409020546001600160a01b03163314611ceb565b505f84815260056020908152604080832033845290915290205460ff16611d31565b5f198114610c595760010190565b3d15611daf573d90611d9682611af7565b91611da46040519384611ad5565b82523d5f602084013e565b606090565b6009549060ff8260a01c1615611e3a576040516370a0823160e01b81526001600160a01b0391821660048201529160209183916024918391165afa5f9181611e06575b50611e0157505f90565b151590565b9091506020813d602011611e32575b81611e2260209383611ad5565b810103126103035751905f611df7565b3d9150611e15565b5050600190565b6001600160a01b03165f9081526016602052604090205460021180611e7a575b611e705766016bcc41e9000090565b65b5e620f4800090565b506107d0600b5410611e61565b60ff168015611ebf5760018114611eb85760028114611eb157600314611eac57603290565b60fa90565b506102bc90565b506105dc90565b506109c490565b60018060a01b0381165f52601660205260405f20546040519060208201923060601b84526001600160601b03199060601b166034830152604882015260488152611f11606882611ad5565b51902090565b611f249093929193611faf565b92600460ff8516149081611fa3575b50611f9a575b915b60ff811660058110156113c057611fe08260051b16840151611f5c83611e87565b11611f925715611f8a5760ff5f1991160160ff811115611f3b57634e487b7160e01b5f52601160045260245ffd5b505f91508190565b509150600190565b60039250611f39565b6103e89150105f611f33565b6028811015611fe7576024811015611fe1576020811015611fdb57601c1115611fd6575f90565b600190565b50600290565b50600390565b50600490565b60ff16801561209a576001811461207757600281146120525760031461202f5760405161201b604082611ad5565b60048152634b696e6760e01b602082015290565b60405161203d604082611ad5565b600581526428bab2b2b760d91b602082015290565b50604051612061604082611ad5565b600681526512db9a59da1d60d21b602082015290565b50604051612086604082611ad5565b6004815263526f6f6b60e01b602082015290565b506040516120a9604082611ad5565b60048152632830bbb760e11b602082015290565b5f818152600260205260409020546001600160a01b03169081156120df575090565b637e27328960e01b5f5260045260245ffd5b6008546001600160a01b0316330361210557565b63118cdaa760e01b5f523360045260245ffd5b905f918015612143575b600160ff1b81106121305750565b61213d9060011b92611d77565b91612122565b506101009150565b823b612159575b5050505050565b604051630a85bd0160e11b81526001600160a01b0391821660048201529181166024830152604482019390935260806064820152911691602090829081906121a5906084830190611a3c565b03815f865af15f9181612215575b506121e157506121c1611d85565b805190816121dc5782633250574960e11b5f5260045260245ffd5b602001fd5b6001600160e01b03191663757a42ff60e11b0161220357505f80808080612152565b633250574960e11b5f5260045260245ffd5b9091506020813d602011612252575b8161223160209383611ad5565b8101031261030357516001600160e01b03198116810361030357905f6121b3565b3d915061222456fed7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb5a2646970667358221220b0127c9eee0fb1819c76cc0d075136ab26a8451f931527014e128306d799e3fc64736f6c634300081c00330000000000000000000000000988d5b7042a65c7ef4e3631700fb0f108d85fc6","recompiledBytecode":"0x60806040523461040057604051601f61272238819003918201601f19168301916001600160401b038311848410176103335780849260209460405283398101031261040057516001600160a01b038116908190036104005761005f610404565b90600782526643484153544c4560c81b602083015261007c610404565b600781526643484153544c4560c81b602082015282519091906001600160401b038111610333576100ad5f54610423565b601f81116103b3575b506020601f821160011461035257819293945f92610347575b50508160011b915f199060031b1c1916175f555b81516001600160401b038111610333576100fe600154610423565b601f81116102da575b50602092601f821160011461027957928192935f9261026e575b50508160011b915f199060031b1c1916176001555b801561025b57600880546001600160a01b03198116831790915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3600980546001600160a81b031916740160b9262456de011f7d15a54cdd8c48baaa8b022f179055600c805460ff19169055600d546101bc90610423565b601f811161021d575b507f697066733a2f2f43484153544c455f4d455441444154415f424153452f00003a600d556101f460206101f7610404565b83815201526001600160a01b0316607d60a21b176006556040516122b090816104728239f35b600d5f5261025590601f0160051c7fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb59081019061045b565b5f6101c5565b631e4fbdf760e01b5f525f60045260245ffd5b015190505f80610121565b601f1982169360015f52805f20915f5b8681106102c257508360019596106102aa575b505050811b01600155610136565b01515f1960f88460031b161c191690555f808061029c565b91926020600181928685015181550194019201610289565b60015f52610323907fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6601f840160051c81019160208510610329575b601f0160051c019061045b565b5f610107565b9091508190610316565b634e487b7160e01b5f52604160045260245ffd5b015190505f806100cf565b601f198216905f8052805f20915f5b81811061039b57509583600195969710610383575b505050811b015f556100e3565b01515f1960f88460031b161c191690555f8080610376565b9192602060018192868b015181550194019201610361565b5f80526103fa907f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563601f840160051c8101916020851061032957601f0160051c019061045b565b5f6100b6565b5f80fd5b60408051919082016001600160401b0381118382101761033357604052565b90600182811c92168015610451575b602083101461043d57565b634e487b7160e01b5f52602260045260245ffd5b91607f1691610432565b818110610466575050565b5f815560010161045b56fe6080806040526004361015610012575f80fd5b5f3560e01c90816301ffc9a7146119b75750806306fdde0314611915578063081812fc146118d9578063095ea7b3146117ef5780630d1cfcae146117c75780630f2cdd6c146117ac57806313f9dcf414611790578063149b8885146116dd57806318160ddd146108c55780631b47ec3a146116c05780631ec5ae53146116a55780632238c8ac1461168a57806323b872dd1461167357806324bbd049146116515780632a55205a146115c65780632bddfe6f146115aa57806332cb6b0c1461158e578063379607f51461105c5780633ccfd60b14610fa55780633ce1650314610f895780633cef28d214610f5157806342842e0e14610f225780634324aa2114610eeb5780634590027914610ecf5780634753600b14610eaa5780634eab3ef214610e7d578063519d6d7e14610e6257806355f804b314610c6d5780635a781a6b14610c1c5780636352211e14610bec578063645bbbb914610bd25780636c0360eb14610bb757806370a0823114610b66578063715018a614610b0b57806374799bcc14610af05780637a06fff714610ad4578063867b817a14610ab15780638da5cb5b14610a895780639530895214610a6057806395d89b4114610996578063a22cb465146108e2578063a2309ff8146108c5578063b17e0eb5146108aa578063b45c6f2114610888578063b52f2c331461085d578063b58bdab5146107cb578063b7a3538e146107a2578063b88d4fde1461070c578063bc034ea5146106d8578063c37b8362146106b7578063c87b56dd146104c1578063caa1bb2d1461048d578063d309161514610472578063e62a1f2d14610452578063e985e9c5146103fb578063ef0e0157146103cf578063f2fde38b14610349578063f319428d146103075763f8004d31146102a5575f80fd5b34610303576020366003190112610303577fa9f739ee29a6336acdfe5b044a6dce0d70579031be6dbdece2ac0848d8c2a08060206102e1611a8c565b6102e96120f1565b151560ff19600c541660ff821617600c55604051908152a1005b5f80fd5b346103035760203660031901126103035760043560ff811681036103035761033161034591611fed565b604051918291602083526020830190611a3c565b0390f35b3461030357602036600319011261030357610362611a60565b61036a6120f1565b6001600160a01b031680156103bc57600880546001600160a01b0319811683179091556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3005b631e4fbdf760e01b5f525f60045260245ffd5b3461030357602036600319011261030357600435600581101561030357602090600e0154604051908152f35b3461030357604036600319011261030357610414611a60565b61041c611a76565b9060018060a01b03165f52600560205260405f209060018060a01b03165f52602052602060ff60405f2054166040519015158152f35b34610303575f36600319011261030357602060405165b5e620f480008152f35b34610303575f36600319011261030357602060405160188152f35b34610303576020366003190112610303576004356104aa816120bd565b505f526015602052602060405f2054604051908152f35b34610303576020366003190112610303576004356104de816120bd565b506104e7611b4b565b80519091901561069c575f818072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b811015610676575b50806d04ee2d6d415b85acef8100000000600a92101561065b575b662386f26fc10000811015610647575b6305f5e100811015610636575b612710811015610627575b6064811015610619575b1015610611575b6001810191600a602161059261057c86611af7565b9561058a6040519788611ad5565b808752611af7565b602086019490601f19013686378501015b5f1901916f181899199a1a9b1b9c1cb0b131b232b360811b8282061a8353049081156105d157600a906105a3565b50506103459260206103319281946040519584879551918291018587015e840190838201905f8252519283915e01015f815203601f198101835282611ad5565b600101610567565b606460029104920191610560565b61271060049104920191610556565b6305f5e1006008910492019161054b565b662386f26fc100006010910492019161053e565b6d04ee2d6d415b85acef81000000006020910492019161052e565b6040925072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b90049050600a610513565b50506103456040516106af602082611ad5565b5f8152610331565b34610303575f36600319011261030357602060405166016bcc41e900008152f35b34610303576020366003190112610303576004356106f5816120bd565b505f526014602052602060405f2054604051908152f35b3461030357608036600319011261030357610725611a60565b61072d611a76565b906044356064359267ffffffffffffffff841161030357366023850112156103035783600401359261075e84611af7565b9361076c6040519586611ad5565b8085523660248288010111610303576020815f9260246107a09901838901378601015261079a838383611bef565b3361214b565b005b346103035760203660031901126103035760206107c0600435611faf565b60ff60405191168152f35b346103035760e03660031901126103035736606312156103035760405160a0810181811067ffffffffffffffff82111761084957604052803660e411610303576044905b60e4821061083957604061082884602435600435611f17565b60ff83519216825215156020820152f35b813581526020918201910161080f565b634e487b7160e01b5f52604160045260245ffd5b3461030357602036600319011261030357602061088061087b611a60565b611ec6565b604051908152f35b34610303575f3660031901126103035760206103e8600a541015604051908152f35b34610303575f36600319011261030357602060405160288152f35b34610303575f366003190112610303576020600a54604051908152f35b34610303576040366003190112610303576108fb611a60565b60243590811515809203610303573315610983576001600160a01b031690811561097057335f52600560205260405f20825f5260205260405f2060ff1981541660ff83161790556040519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b50630b61174360e31b5f5260045260245ffd5b63a9fbf51f60e01b5f525f60045260245ffd5b34610303575f366003190112610303576040515f6001546109b681611b13565b8084529060018116908115610a3c57506001146109de575b6103458361033181850382611ad5565b60015f9081527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6939250905b808210610a22575090915081016020016103316109ce565b919260018160209254838588010152019101909291610a0a565b60ff191660208086019190915291151560051b8401909101915061033190506109ce565b346103035760203660031901126103035760043560ff8116810361030357610880602091611e87565b34610303575f366003190112610303576008546040516001600160a01b039091168152602090f35b34610303576020366003190112610303576020610880610acf611a60565b611e41565b34610303575f3660031901126103035760206040516103e88152f35b34610303575f36600319011261030357602060405160248152f35b34610303575f36600319011261030357610b236120f1565b600880546001600160a01b031981169091555f906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b34610303576020366003190112610303576001600160a01b03610b87611a60565b168015610ba4575f526003602052602060405f2054604051908152f35b6322718ad960e21b5f525f60045260245ffd5b34610303575f36600319011261030357610345610331611b4b565b34610303575f366003190112610303576020604051818152f35b34610303576020366003190112610303576020610c0a6004356120bd565b6040516001600160a01b039091168152f35b34610303575f36600319011261030357600b546107d08110610c44575060205f604051908152f35b6107d0036107d08111610c5957602090610880565b634e487b7160e01b5f52601160045260245ffd5b346103035760203660031901126103035760043567ffffffffffffffff8111610303573660238201121561030357806004013567ffffffffffffffff811161030357366024828401011161030357610cc36120f1565b610cce600d54611b13565b601f8111610dfa575b505f601f8211600114610d60577f5411e8ebf1636d9e83d5fc4900bf80cbac82e8790da2a4c94db4895e889eedf692826024936040935f91610d53575b508160011b905f198360031b1c191617600d555b8083519485936020855282602086015201848401375f828201840152601f01601f19168101030190a1005b8591508301013586610d14565b601f19821690600d5f525f51602061225b5f395f51905f52915f5b818110610ddf5750926040927f5411e8ebf1636d9e83d5fc4900bf80cbac82e8790da2a4c94db4895e889eedf695928260249610610dc4575b5050600181811b01600d55610d28565b83018501355f19600384901b60f8161c191690558580610db4565b91926020600181926024878a01013581550194019201610d7b565b600d5f52601f820160051c5f51602061225b5f395f51905f52019060208310610e4d575b601f0160051c5f51602061225b5f395f51905f5201905b818110610e425750610cd7565b5f8155600101610e35565b5f51602061225b5f395f51905f529150610e1e565b34610303575f36600319011261030357602060405160fa8152f35b34610303576020366003190112610303576020610ea0610e9b611a60565b611db4565b6040519015158152f35b34610303575f36600319011261030357602060ff60095460a01c166040519015158152f35b34610303575f3660031901126103035760206040516109c48152f35b3461030357602036600319011261030357600435610f08816120bd565b505f526013602052602060ff60405f205416604051908152f35b34610303576107a0610f3336611a9b565b9060405192610f43602085611ad5565b5f845261079a838383611bef565b34610303576020366003190112610303576001600160a01b03610f72611a60565b165f526016602052602060405f2054604051908152f35b34610303575f3660031901126103035760206040516107d08152f35b34610303575f36600319011261030357610fbd6120f1565b478015611021576008545f918291829182916001600160a01b03165af1610fe2611d85565b5015610fea57005b60405162461bcd60e51b815260206004820152600f60248201526e1dda5d1a191c985dc819985a5b1959608a1b6044820152606490fd5b60405162461bcd60e51b81526020600482015260136024820152726e6f7468696e6720746f20776974686472617760681b6044820152606490fd5b60203660031901126103035760ff600c5416156115585761107c33611db4565b1561151f57335f526016602052600a60405f205410156114eb57600a546113888110156114bb576110ac33611e41565b80340361148a576110bc33611ec6565b604051602081019182526004356040820152604081526110dd606082611ad5565b519020906110ea82612118565b926018841061145457604051600e5f825b6005821061143e575050508061111560a061111c93611ad5565b8286611f17565b929092156113ee5765b5e620f48000146113d4575b61113a90611d77565b9182600a5560058210156113c05781600e0180549060018201809211610c595755825f52601360205260ff60405f209216918260ff19825416179055825f5260146020528360405f2055825f52601560205260405f2055335f52601660205260405f2080549060018201809211610c5957556020926040516111bc8582611ad5565b5f815233156113ad575f8481526002865260409020546001600160a01b0316801515908161137c575b335f8181526003895260408082208054600101905588825260028a52812080546001600160a01b0319168317905587919083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9080a45061136957333b61127b575b50836040519283528201527fdeec4c70f5cd118981863a7abd648939032c7622cd6b55c633423285cbf2d3c060403392a3005b846112b49160405180938192630a85bd0160e11b83523360048401525f6024840152886044840152608060648401526084830190611a3c565b03815f335af15f9181611329575b506112ef57846112d0611d85565b80519190826112ec57633250574960e11b5f523360045260245ffd5b01fd5b929391929091906001600160e01b03191663757a42ff60e11b016113165792919084611248565b633250574960e11b5f523360045260245ffd5b9091508581813d8311611362575b6113418183611ad5565b8101031261030357516001600160e01b0319811681036103035790866112c2565b503d611337565b6339e3563760e11b5f525f60045260245ffd5b5f8681526004602052604080822080546001600160a01b031916905582825260038952902080545f190190556111e5565b633250574960e11b5f525f60045260245ffd5b634e487b7160e01b5f52603260045260245ffd5b600b549060018201809211610c5957600b91909155611131565b60405162461bcd60e51b815260206004820152602260248201527f72616e6b2066756c6c202d206772696e642061207374726f6e6765722070726f60448201526137b360f11b6064820152608490fd5b60016020819285548152019301910190916110fb565b60405162461bcd60e51b815260206004820152600e60248201526d70726f6f6620746f6f207765616b60901b6044820152606490fd5b60405162461bcd60e51b815260206004820152600960248201526877726f6e672066656560b81b6044820152606490fd5b60405162461bcd60e51b81526020600482015260086024820152671cdbdb19081bdd5d60c21b6044820152606490fd5b60405162461bcd60e51b815260206004820152600c60248201526b1dd85b1b195d081b1a5b5a5d60a21b6044820152606490fd5b60405162461bcd60e51b81526020600482015260116024820152701059d95b9d081251081c995c5d5a5c9959607a1b6044820152606490fd5b60405162461bcd60e51b815260206004820152600e60248201526d1b5a5b9d081a5cc818db1bdcd95960921b6044820152606490fd5b34610303575f3660031901126103035760206040516113888152f35b34610303575f3660031901126103035760206040516105dc8152f35b34610303576040366003190112610303576004355f90815260076020526040902054602435906001600160a01b0381169060a01c8115611639575b6001600160601b031691828102928184041490151715610c5957604080516001600160a01b0390921682526127109092046020820152f35b50506006546001600160a01b0381169060a01c611601565b34610303575f36600319011261030357602060ff600c54166040519015158152f35b34610303576107a061168436611a9b565b91611bef565b34610303575f36600319011261030357602060405160328152f35b34610303575f366003190112610303576020604051601c8152f35b34610303575f366003190112610303576020600b54604051908152f35b34610303576040366003190112610303577fb63421408d6b6f7e6fbc43340faaef44856b54d08fc7b3d82a59185fce4c9c126040611719611a8c565b611721611a76565b9061172a6120f1565b6009805460ff60a01b19811692151560a081901b60ff60a01b1693841790925590926001600160a01b0316919082611779575b505060095483519283526001600160a01b0316602083015250a1005b6001600160a81b031916171760095583808061175d565b34610303575f3660031901126103035760206040516102bc8152f35b34610303575f366003190112610303576020604051600a8152f35b34610303575f366003190112610303576009546040516001600160a01b039091168152602090f35b3461030357604036600319011261030357611808611a60565b602435611814816120bd565b331515806118c6575b80611899575b6118865781906001600160a01b0384811691167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9255f80a45f90815260046020526040902080546001600160a01b0319166001600160a01b03909216919091179055005b63a9fbf51f60e01b5f523360045260245ffd5b506001600160a01b0381165f90815260056020908152604080832033845290915290205460ff1615611823565b506001600160a01b03811633141561181d565b34610303576020366003190112610303576004356118f6816120bd565b505f526004602052602060018060a01b0360405f205416604051908152f35b34610303575f366003190112610303576040515f5f5461193481611b13565b8084529060018116908115610a3c575060011461195b576103458361033181850382611ad5565b5f8080527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563939250905b80821061199d575090915081016020016103316109ce565b919260018160209254838588010152019101909291611985565b34610303576020366003190112610303576004359063ffffffff60e01b82168092036103035760209163152a902d60e11b81149081156119f9575b5015158152f35b6380ac58cd60e01b811491508115611a2b575b8115611a1a575b50836119f2565b6301ffc9a760e01b14905083611a13565b635b5e139f60e01b81149150611a0c565b805180835260209291819084018484015e5f828201840152601f01601f1916010190565b600435906001600160a01b038216820361030357565b602435906001600160a01b038216820361030357565b60043590811515820361030357565b6060906003190112610303576004356001600160a01b038116810361030357906024356001600160a01b0381168103610303579060443590565b90601f8019910116810190811067ffffffffffffffff82111761084957604052565b67ffffffffffffffff811161084957601f01601f191660200190565b90600182811c92168015611b41575b6020831014611b2d57565b634e487b7160e01b5f52602260045260245ffd5b91607f1691611b22565b604051905f82600d5491611b5e83611b13565b8083529260018116908115611bd05750600114611b84575b611b8292500383611ad5565b565b50600d5f90815290915f51602061225b5f395f51905f525b818310611bb4575050906020611b8292820101611b76565b6020919350806001915483858901015201910190918492611b9c565b60209250611b8294915060ff191682840152151560051b820101611b76565b6001600160a01b03909116919082156113ad575f828152600260205260409020546001600160a01b031692829033151580611ce2575b5084611caf575b805f52600360205260405f2060018154019055815f52600260205260405f20816001600160601b0360a01b825416179055847fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a46001600160a01b0316808303611c9757505050565b6364283d7b60e01b5f5260045260245260445260645ffd5b5f82815260046020526040902080546001600160a01b0319169055845f52600360205260405f205f198154019055611c2c565b90915080611d26575b15611cf85782905f611c25565b8284611d1057637e27328960e01b5f5260045260245ffd5b63177e802f60e01b5f523360045260245260445ffd5b503384148015611d55575b80611ceb57505f838152600460205260409020546001600160a01b03163314611ceb565b505f84815260056020908152604080832033845290915290205460ff16611d31565b5f198114610c595760010190565b3d15611daf573d90611d9682611af7565b91611da46040519384611ad5565b82523d5f602084013e565b606090565b6009549060ff8260a01c1615611e3a576040516370a0823160e01b81526001600160a01b0391821660048201529160209183916024918391165afa5f9181611e06575b50611e0157505f90565b151590565b9091506020813d602011611e32575b81611e2260209383611ad5565b810103126103035751905f611df7565b3d9150611e15565b5050600190565b6001600160a01b03165f9081526016602052604090205460021180611e7a575b611e705766016bcc41e9000090565b65b5e620f4800090565b506107d0600b5410611e61565b60ff168015611ebf5760018114611eb85760028114611eb157600314611eac57603290565b60fa90565b506102bc90565b506105dc90565b506109c490565b60018060a01b0381165f52601660205260405f20546040519060208201923060601b84526001600160601b03199060601b166034830152604882015260488152611f11606882611ad5565b51902090565b611f249093929193611faf565b92600460ff8516149081611fa3575b50611f9a575b915b60ff811660058110156113c057611fe08260051b16840151611f5c83611e87565b11611f925715611f8a5760ff5f1991160160ff811115611f3b57634e487b7160e01b5f52601160045260245ffd5b505f91508190565b509150600190565b60039250611f39565b6103e89150105f611f33565b6028811015611fe7576024811015611fe1576020811015611fdb57601c1115611fd6575f90565b600190565b50600290565b50600390565b50600490565b60ff16801561209a576001811461207757600281146120525760031461202f5760405161201b604082611ad5565b60048152634b696e6760e01b602082015290565b60405161203d604082611ad5565b600581526428bab2b2b760d91b602082015290565b50604051612061604082611ad5565b600681526512db9a59da1d60d21b602082015290565b50604051612086604082611ad5565b6004815263526f6f6b60e01b602082015290565b506040516120a9604082611ad5565b60048152632830bbb760e11b602082015290565b5f818152600260205260409020546001600160a01b03169081156120df575090565b637e27328960e01b5f5260045260245ffd5b6008546001600160a01b0316330361210557565b63118cdaa760e01b5f523360045260245ffd5b905f918015612143575b600160ff1b81106121305750565b61213d9060011b92611d77565b91612122565b506101009150565b823b612159575b5050505050565b604051630a85bd0160e11b81526001600160a01b0391821660048201529181166024830152604482019390935260806064820152911691602090829081906121a5906084830190611a3c565b03815f865af15f9181612215575b506121e157506121c1611d85565b805190816121dc5782633250574960e11b5f5260045260245ffd5b602001fd5b6001600160e01b03191663757a42ff60e11b0161220357505f80808080612152565b633250574960e11b5f5260045260245ffd5b9091506020813d602011612252575b8161223160209383611ad5565b8101031261030357516001600160e01b03198116810361030357905f6121b3565b3d915061222456fed7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb5a2646970667358221220b0127c9eee0fb1819c76cc0d075136ab26a8451f931527014e128306d799e3fc64736f6c634300081c0033","sourceMap":"2637:10201:18:-:0;;;;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;-1:-1:-1;;;;;2637:10201:18;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2637:10201:18;;;;;;;;;;:::i;:::-;;;;;-1:-1:-1;;;2637:10201:18;;;;;;:::i;:::-;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;-1:-1:-1;;;;;2637:10201:18;;;;;-1:-1:-1;2637:10201:18;;:::i;:::-;;;;;;-1:-1:-1;2637:10201:18;;;;;;;;;;;;;-1:-1:-1;2637:10201:18;;;;;;;;;;;;;;;;;;;-1:-1:-1;2637:10201:18;;;;-1:-1:-1;;;;;2637:10201:18;;;;;1469:17:3;2637:10201:18;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2637:10201:18;;;;;;;1469:17:3;2637:10201:18;;;;;;;;;;;1469:17:3;2637:10201:18;;1273:26:0;;1269:95;;3004:6;2637:10201:18;;-1:-1:-1;;;;;;2637:10201:18;;;;;;;;;-1:-1:-1;;;;;2637:10201:18;3052:40:0;-1:-1:-1;;3052:40:0;3767:42:18;2637:10201;;-1:-1:-1;;;;;;2637:10201:18;;;;;4086:5;2637:10201;;-1:-1:-1;;2637:10201:18;;;4267:31;2637:10201;;;;:::i;:::-;;;;;;;-1:-1:-1;2637:10201:18;4267:31;2637:10201;5427:3;2637:10201;;;:::i;:::-;;;;4083:35:8;2637:10201:18;-1:-1:-1;;;;;2637:10201:18;-1:-1:-1;;;2637:10201:18;4061:57:8;2637:10201:18;;;;;;;;;;;4267:31;-1:-1:-1;2637:10201:18;;;;;;;;;;;;;:::i;:::-;;;;1269:95:0;1322:31;;;-1:-1:-1;1322:31:0;-1:-1:-1;1322:31:0;2637:10201:18;;-1:-1:-1;1322:31:0;2637:10201:18;;;;-1:-1:-1;2637:10201:18;;;;;;;;;;1469:17:3;-1:-1:-1;2637:10201:18;;-1:-1:-1;2637:10201:18;;-1:-1:-1;2637:10201:18;;;;;;;;1469:17:3;2637:10201:18;;;;;;;;;;;;1469:17:3;2637:10201:18;;;;;;;;;;;;;;;;;;;;;;;;;;;1469:17:3;2637:10201:18;;;;;;;;;;;;;;;;1469:17:3;-1:-1:-1;2637:10201:18;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;2637:10201:18;;;;;;;;-1:-1:-1;2637:10201:18;;;;;-1:-1:-1;2637:10201:18;;;;;-1:-1:-1;2637:10201:18;;;;;;;;;;-1:-1:-1;2637:10201:18;;;-1:-1:-1;2637:10201:18;;-1:-1:-1;2637:10201:18;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2637:10201:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2637:10201:18;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;-1:-1:-1;2637:10201:18;;;;;;;;;;-1:-1:-1;;;;;2637:10201:18;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;","linkReferences":{},"cborAuxdata":{"1":{"value":"0xa2646970667358221220b0127c9eee0fb1819c76cc0d075136ab26a8451f931527014e128306d799e3fc64736f6c634300081c0033","offset":9965}},"transformations":[{"type":"insert","offset":10018,"reason":"constructorArguments"}],"transformationValues":{"constructorArguments":"0x0000000000000000000000000988d5b7042a65c7ef4e3631700fb0f108d85fc6"}},"runtimeBytecode":{"onchainBytecode":"0x6080806040526004361015610012575f80fd5b5f3560e01c90816301ffc9a7146119b75750806306fdde0314611915578063081812fc146118d9578063095ea7b3146117ef5780630d1cfcae146117c75780630f2cdd6c146117ac57806313f9dcf414611790578063149b8885146116dd57806318160ddd146108c55780631b47ec3a146116c05780631ec5ae53146116a55780632238c8ac1461168a57806323b872dd1461167357806324bbd049146116515780632a55205a146115c65780632bddfe6f146115aa57806332cb6b0c1461158e578063379607f51461105c5780633ccfd60b14610fa55780633ce1650314610f895780633cef28d214610f5157806342842e0e14610f225780634324aa2114610eeb5780634590027914610ecf5780634753600b14610eaa5780634eab3ef214610e7d578063519d6d7e14610e6257806355f804b314610c6d5780635a781a6b14610c1c5780636352211e14610bec578063645bbbb914610bd25780636c0360eb14610bb757806370a0823114610b66578063715018a614610b0b57806374799bcc14610af05780637a06fff714610ad4578063867b817a14610ab15780638da5cb5b14610a895780639530895214610a6057806395d89b4114610996578063a22cb465146108e2578063a2309ff8146108c5578063b17e0eb5146108aa578063b45c6f2114610888578063b52f2c331461085d578063b58bdab5146107cb578063b7a3538e146107a2578063b88d4fde1461070c578063bc034ea5146106d8578063c37b8362146106b7578063c87b56dd146104c1578063caa1bb2d1461048d578063d309161514610472578063e62a1f2d14610452578063e985e9c5146103fb578063ef0e0157146103cf578063f2fde38b14610349578063f319428d146103075763f8004d31146102a5575f80fd5b34610303576020366003190112610303577fa9f739ee29a6336acdfe5b044a6dce0d70579031be6dbdece2ac0848d8c2a08060206102e1611a8c565b6102e96120f1565b151560ff19600c541660ff821617600c55604051908152a1005b5f80fd5b346103035760203660031901126103035760043560ff811681036103035761033161034591611fed565b604051918291602083526020830190611a3c565b0390f35b3461030357602036600319011261030357610362611a60565b61036a6120f1565b6001600160a01b031680156103bc57600880546001600160a01b0319811683179091556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3005b631e4fbdf760e01b5f525f60045260245ffd5b3461030357602036600319011261030357600435600581101561030357602090600e0154604051908152f35b3461030357604036600319011261030357610414611a60565b61041c611a76565b9060018060a01b03165f52600560205260405f209060018060a01b03165f52602052602060ff60405f2054166040519015158152f35b34610303575f36600319011261030357602060405165b5e620f480008152f35b34610303575f36600319011261030357602060405160188152f35b34610303576020366003190112610303576004356104aa816120bd565b505f526015602052602060405f2054604051908152f35b34610303576020366003190112610303576004356104de816120bd565b506104e7611b4b565b80519091901561069c575f818072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b811015610676575b50806d04ee2d6d415b85acef8100000000600a92101561065b575b662386f26fc10000811015610647575b6305f5e100811015610636575b612710811015610627575b6064811015610619575b1015610611575b6001810191600a602161059261057c86611af7565b9561058a6040519788611ad5565b808752611af7565b602086019490601f19013686378501015b5f1901916f181899199a1a9b1b9c1cb0b131b232b360811b8282061a8353049081156105d157600a906105a3565b50506103459260206103319281946040519584879551918291018587015e840190838201905f8252519283915e01015f815203601f198101835282611ad5565b600101610567565b606460029104920191610560565b61271060049104920191610556565b6305f5e1006008910492019161054b565b662386f26fc100006010910492019161053e565b6d04ee2d6d415b85acef81000000006020910492019161052e565b6040925072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b90049050600a610513565b50506103456040516106af602082611ad5565b5f8152610331565b34610303575f36600319011261030357602060405166016bcc41e900008152f35b34610303576020366003190112610303576004356106f5816120bd565b505f526014602052602060405f2054604051908152f35b3461030357608036600319011261030357610725611a60565b61072d611a76565b906044356064359267ffffffffffffffff841161030357366023850112156103035783600401359261075e84611af7565b9361076c6040519586611ad5565b8085523660248288010111610303576020815f9260246107a09901838901378601015261079a838383611bef565b3361214b565b005b346103035760203660031901126103035760206107c0600435611faf565b60ff60405191168152f35b346103035760e03660031901126103035736606312156103035760405160a0810181811067ffffffffffffffff82111761084957604052803660e411610303576044905b60e4821061083957604061082884602435600435611f17565b60ff83519216825215156020820152f35b813581526020918201910161080f565b634e487b7160e01b5f52604160045260245ffd5b3461030357602036600319011261030357602061088061087b611a60565b611ec6565b604051908152f35b34610303575f3660031901126103035760206103e8600a541015604051908152f35b34610303575f36600319011261030357602060405160288152f35b34610303575f366003190112610303576020600a54604051908152f35b34610303576040366003190112610303576108fb611a60565b60243590811515809203610303573315610983576001600160a01b031690811561097057335f52600560205260405f20825f5260205260405f2060ff1981541660ff83161790556040519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b50630b61174360e31b5f5260045260245ffd5b63a9fbf51f60e01b5f525f60045260245ffd5b34610303575f366003190112610303576040515f6001546109b681611b13565b8084529060018116908115610a3c57506001146109de575b6103458361033181850382611ad5565b60015f9081527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6939250905b808210610a22575090915081016020016103316109ce565b919260018160209254838588010152019101909291610a0a565b60ff191660208086019190915291151560051b8401909101915061033190506109ce565b346103035760203660031901126103035760043560ff8116810361030357610880602091611e87565b34610303575f366003190112610303576008546040516001600160a01b039091168152602090f35b34610303576020366003190112610303576020610880610acf611a60565b611e41565b34610303575f3660031901126103035760206040516103e88152f35b34610303575f36600319011261030357602060405160248152f35b34610303575f36600319011261030357610b236120f1565b600880546001600160a01b031981169091555f906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b34610303576020366003190112610303576001600160a01b03610b87611a60565b168015610ba4575f526003602052602060405f2054604051908152f35b6322718ad960e21b5f525f60045260245ffd5b34610303575f36600319011261030357610345610331611b4b565b34610303575f366003190112610303576020604051818152f35b34610303576020366003190112610303576020610c0a6004356120bd565b6040516001600160a01b039091168152f35b34610303575f36600319011261030357600b546107d08110610c44575060205f604051908152f35b6107d0036107d08111610c5957602090610880565b634e487b7160e01b5f52601160045260245ffd5b346103035760203660031901126103035760043567ffffffffffffffff8111610303573660238201121561030357806004013567ffffffffffffffff811161030357366024828401011161030357610cc36120f1565b610cce600d54611b13565b601f8111610dfa575b505f601f8211600114610d60577f5411e8ebf1636d9e83d5fc4900bf80cbac82e8790da2a4c94db4895e889eedf692826024936040935f91610d53575b508160011b905f198360031b1c191617600d555b8083519485936020855282602086015201848401375f828201840152601f01601f19168101030190a1005b8591508301013586610d14565b601f19821690600d5f525f51602061225b5f395f51905f52915f5b818110610ddf5750926040927f5411e8ebf1636d9e83d5fc4900bf80cbac82e8790da2a4c94db4895e889eedf695928260249610610dc4575b5050600181811b01600d55610d28565b83018501355f19600384901b60f8161c191690558580610db4565b91926020600181926024878a01013581550194019201610d7b565b600d5f52601f820160051c5f51602061225b5f395f51905f52019060208310610e4d575b601f0160051c5f51602061225b5f395f51905f5201905b818110610e425750610cd7565b5f8155600101610e35565b5f51602061225b5f395f51905f529150610e1e565b34610303575f36600319011261030357602060405160fa8152f35b34610303576020366003190112610303576020610ea0610e9b611a60565b611db4565b6040519015158152f35b34610303575f36600319011261030357602060ff60095460a01c166040519015158152f35b34610303575f3660031901126103035760206040516109c48152f35b3461030357602036600319011261030357600435610f08816120bd565b505f526013602052602060ff60405f205416604051908152f35b34610303576107a0610f3336611a9b565b9060405192610f43602085611ad5565b5f845261079a838383611bef565b34610303576020366003190112610303576001600160a01b03610f72611a60565b165f526016602052602060405f2054604051908152f35b34610303575f3660031901126103035760206040516107d08152f35b34610303575f36600319011261030357610fbd6120f1565b478015611021576008545f918291829182916001600160a01b03165af1610fe2611d85565b5015610fea57005b60405162461bcd60e51b815260206004820152600f60248201526e1dda5d1a191c985dc819985a5b1959608a1b6044820152606490fd5b60405162461bcd60e51b81526020600482015260136024820152726e6f7468696e6720746f20776974686472617760681b6044820152606490fd5b60203660031901126103035760ff600c5416156115585761107c33611db4565b1561151f57335f526016602052600a60405f205410156114eb57600a546113888110156114bb576110ac33611e41565b80340361148a576110bc33611ec6565b604051602081019182526004356040820152604081526110dd606082611ad5565b519020906110ea82612118565b926018841061145457604051600e5f825b6005821061143e575050508061111560a061111c93611ad5565b8286611f17565b929092156113ee5765b5e620f48000146113d4575b61113a90611d77565b9182600a5560058210156113c05781600e0180549060018201809211610c595755825f52601360205260ff60405f209216918260ff19825416179055825f5260146020528360405f2055825f52601560205260405f2055335f52601660205260405f2080549060018201809211610c5957556020926040516111bc8582611ad5565b5f815233156113ad575f8481526002865260409020546001600160a01b0316801515908161137c575b335f8181526003895260408082208054600101905588825260028a52812080546001600160a01b0319168317905587919083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9080a45061136957333b61127b575b50836040519283528201527fdeec4c70f5cd118981863a7abd648939032c7622cd6b55c633423285cbf2d3c060403392a3005b846112b49160405180938192630a85bd0160e11b83523360048401525f6024840152886044840152608060648401526084830190611a3c565b03815f335af15f9181611329575b506112ef57846112d0611d85565b80519190826112ec57633250574960e11b5f523360045260245ffd5b01fd5b929391929091906001600160e01b03191663757a42ff60e11b016113165792919084611248565b633250574960e11b5f523360045260245ffd5b9091508581813d8311611362575b6113418183611ad5565b8101031261030357516001600160e01b0319811681036103035790866112c2565b503d611337565b6339e3563760e11b5f525f60045260245ffd5b5f8681526004602052604080822080546001600160a01b031916905582825260038952902080545f190190556111e5565b633250574960e11b5f525f60045260245ffd5b634e487b7160e01b5f52603260045260245ffd5b600b549060018201809211610c5957600b91909155611131565b60405162461bcd60e51b815260206004820152602260248201527f72616e6b2066756c6c202d206772696e642061207374726f6e6765722070726f60448201526137b360f11b6064820152608490fd5b60016020819285548152019301910190916110fb565b60405162461bcd60e51b815260206004820152600e60248201526d70726f6f6620746f6f207765616b60901b6044820152606490fd5b60405162461bcd60e51b815260206004820152600960248201526877726f6e672066656560b81b6044820152606490fd5b60405162461bcd60e51b81526020600482015260086024820152671cdbdb19081bdd5d60c21b6044820152606490fd5b60405162461bcd60e51b815260206004820152600c60248201526b1dd85b1b195d081b1a5b5a5d60a21b6044820152606490fd5b60405162461bcd60e51b81526020600482015260116024820152701059d95b9d081251081c995c5d5a5c9959607a1b6044820152606490fd5b60405162461bcd60e51b815260206004820152600e60248201526d1b5a5b9d081a5cc818db1bdcd95960921b6044820152606490fd5b34610303575f3660031901126103035760206040516113888152f35b34610303575f3660031901126103035760206040516105dc8152f35b34610303576040366003190112610303576004355f90815260076020526040902054602435906001600160a01b0381169060a01c8115611639575b6001600160601b031691828102928184041490151715610c5957604080516001600160a01b0390921682526127109092046020820152f35b50506006546001600160a01b0381169060a01c611601565b34610303575f36600319011261030357602060ff600c54166040519015158152f35b34610303576107a061168436611a9b565b91611bef565b34610303575f36600319011261030357602060405160328152f35b34610303575f366003190112610303576020604051601c8152f35b34610303575f366003190112610303576020600b54604051908152f35b34610303576040366003190112610303577fb63421408d6b6f7e6fbc43340faaef44856b54d08fc7b3d82a59185fce4c9c126040611719611a8c565b611721611a76565b9061172a6120f1565b6009805460ff60a01b19811692151560a081901b60ff60a01b1693841790925590926001600160a01b0316919082611779575b505060095483519283526001600160a01b0316602083015250a1005b6001600160a81b031916171760095583808061175d565b34610303575f3660031901126103035760206040516102bc8152f35b34610303575f366003190112610303576020604051600a8152f35b34610303575f366003190112610303576009546040516001600160a01b039091168152602090f35b3461030357604036600319011261030357611808611a60565b602435611814816120bd565b331515806118c6575b80611899575b6118865781906001600160a01b0384811691167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9255f80a45f90815260046020526040902080546001600160a01b0319166001600160a01b03909216919091179055005b63a9fbf51f60e01b5f523360045260245ffd5b506001600160a01b0381165f90815260056020908152604080832033845290915290205460ff1615611823565b506001600160a01b03811633141561181d565b34610303576020366003190112610303576004356118f6816120bd565b505f526004602052602060018060a01b0360405f205416604051908152f35b34610303575f366003190112610303576040515f5f5461193481611b13565b8084529060018116908115610a3c575060011461195b576103458361033181850382611ad5565b5f8080527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563939250905b80821061199d575090915081016020016103316109ce565b919260018160209254838588010152019101909291611985565b34610303576020366003190112610303576004359063ffffffff60e01b82168092036103035760209163152a902d60e11b81149081156119f9575b5015158152f35b6380ac58cd60e01b811491508115611a2b575b8115611a1a575b50836119f2565b6301ffc9a760e01b14905083611a13565b635b5e139f60e01b81149150611a0c565b805180835260209291819084018484015e5f828201840152601f01601f1916010190565b600435906001600160a01b038216820361030357565b602435906001600160a01b038216820361030357565b60043590811515820361030357565b6060906003190112610303576004356001600160a01b038116810361030357906024356001600160a01b0381168103610303579060443590565b90601f8019910116810190811067ffffffffffffffff82111761084957604052565b67ffffffffffffffff811161084957601f01601f191660200190565b90600182811c92168015611b41575b6020831014611b2d57565b634e487b7160e01b5f52602260045260245ffd5b91607f1691611b22565b604051905f82600d5491611b5e83611b13565b8083529260018116908115611bd05750600114611b84575b611b8292500383611ad5565b565b50600d5f90815290915f51602061225b5f395f51905f525b818310611bb4575050906020611b8292820101611b76565b6020919350806001915483858901015201910190918492611b9c565b60209250611b8294915060ff191682840152151560051b820101611b76565b6001600160a01b03909116919082156113ad575f828152600260205260409020546001600160a01b031692829033151580611ce2575b5084611caf575b805f52600360205260405f2060018154019055815f52600260205260405f20816001600160601b0360a01b825416179055847fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a46001600160a01b0316808303611c9757505050565b6364283d7b60e01b5f5260045260245260445260645ffd5b5f82815260046020526040902080546001600160a01b0319169055845f52600360205260405f205f198154019055611c2c565b90915080611d26575b15611cf85782905f611c25565b8284611d1057637e27328960e01b5f5260045260245ffd5b63177e802f60e01b5f523360045260245260445ffd5b503384148015611d55575b80611ceb57505f838152600460205260409020546001600160a01b03163314611ceb565b505f84815260056020908152604080832033845290915290205460ff16611d31565b5f198114610c595760010190565b3d15611daf573d90611d9682611af7565b91611da46040519384611ad5565b82523d5f602084013e565b606090565b6009549060ff8260a01c1615611e3a576040516370a0823160e01b81526001600160a01b0391821660048201529160209183916024918391165afa5f9181611e06575b50611e0157505f90565b151590565b9091506020813d602011611e32575b81611e2260209383611ad5565b810103126103035751905f611df7565b3d9150611e15565b5050600190565b6001600160a01b03165f9081526016602052604090205460021180611e7a575b611e705766016bcc41e9000090565b65b5e620f4800090565b506107d0600b5410611e61565b60ff168015611ebf5760018114611eb85760028114611eb157600314611eac57603290565b60fa90565b506102bc90565b506105dc90565b506109c490565b60018060a01b0381165f52601660205260405f20546040519060208201923060601b84526001600160601b03199060601b166034830152604882015260488152611f11606882611ad5565b51902090565b611f249093929193611faf565b92600460ff8516149081611fa3575b50611f9a575b915b60ff811660058110156113c057611fe08260051b16840151611f5c83611e87565b11611f925715611f8a5760ff5f1991160160ff811115611f3b57634e487b7160e01b5f52601160045260245ffd5b505f91508190565b509150600190565b60039250611f39565b6103e89150105f611f33565b6028811015611fe7576024811015611fe1576020811015611fdb57601c1115611fd6575f90565b600190565b50600290565b50600390565b50600490565b60ff16801561209a576001811461207757600281146120525760031461202f5760405161201b604082611ad5565b60048152634b696e6760e01b602082015290565b60405161203d604082611ad5565b600581526428bab2b2b760d91b602082015290565b50604051612061604082611ad5565b600681526512db9a59da1d60d21b602082015290565b50604051612086604082611ad5565b6004815263526f6f6b60e01b602082015290565b506040516120a9604082611ad5565b60048152632830bbb760e11b602082015290565b5f818152600260205260409020546001600160a01b03169081156120df575090565b637e27328960e01b5f5260045260245ffd5b6008546001600160a01b0316330361210557565b63118cdaa760e01b5f523360045260245ffd5b905f918015612143575b600160ff1b81106121305750565b61213d9060011b92611d77565b91612122565b506101009150565b823b612159575b5050505050565b604051630a85bd0160e11b81526001600160a01b0391821660048201529181166024830152604482019390935260806064820152911691602090829081906121a5906084830190611a3c565b03815f865af15f9181612215575b506121e157506121c1611d85565b805190816121dc5782633250574960e11b5f5260045260245ffd5b602001fd5b6001600160e01b03191663757a42ff60e11b0161220357505f80808080612152565b633250574960e11b5f5260045260245ffd5b9091506020813d602011612252575b8161223160209383611ad5565b8101031261030357516001600160e01b03198116810361030357905f6121b3565b3d915061222456fed7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb5a2646970667358221220b0127c9eee0fb1819c76cc0d075136ab26a8451f931527014e128306d799e3fc64736f6c634300081c0033","recompiledBytecode":"0x6080806040526004361015610012575f80fd5b5f3560e01c90816301ffc9a7146119b75750806306fdde0314611915578063081812fc146118d9578063095ea7b3146117ef5780630d1cfcae146117c75780630f2cdd6c146117ac57806313f9dcf414611790578063149b8885146116dd57806318160ddd146108c55780631b47ec3a146116c05780631ec5ae53146116a55780632238c8ac1461168a57806323b872dd1461167357806324bbd049146116515780632a55205a146115c65780632bddfe6f146115aa57806332cb6b0c1461158e578063379607f51461105c5780633ccfd60b14610fa55780633ce1650314610f895780633cef28d214610f5157806342842e0e14610f225780634324aa2114610eeb5780634590027914610ecf5780634753600b14610eaa5780634eab3ef214610e7d578063519d6d7e14610e6257806355f804b314610c6d5780635a781a6b14610c1c5780636352211e14610bec578063645bbbb914610bd25780636c0360eb14610bb757806370a0823114610b66578063715018a614610b0b57806374799bcc14610af05780637a06fff714610ad4578063867b817a14610ab15780638da5cb5b14610a895780639530895214610a6057806395d89b4114610996578063a22cb465146108e2578063a2309ff8146108c5578063b17e0eb5146108aa578063b45c6f2114610888578063b52f2c331461085d578063b58bdab5146107cb578063b7a3538e146107a2578063b88d4fde1461070c578063bc034ea5146106d8578063c37b8362146106b7578063c87b56dd146104c1578063caa1bb2d1461048d578063d309161514610472578063e62a1f2d14610452578063e985e9c5146103fb578063ef0e0157146103cf578063f2fde38b14610349578063f319428d146103075763f8004d31146102a5575f80fd5b34610303576020366003190112610303577fa9f739ee29a6336acdfe5b044a6dce0d70579031be6dbdece2ac0848d8c2a08060206102e1611a8c565b6102e96120f1565b151560ff19600c541660ff821617600c55604051908152a1005b5f80fd5b346103035760203660031901126103035760043560ff811681036103035761033161034591611fed565b604051918291602083526020830190611a3c565b0390f35b3461030357602036600319011261030357610362611a60565b61036a6120f1565b6001600160a01b031680156103bc57600880546001600160a01b0319811683179091556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3005b631e4fbdf760e01b5f525f60045260245ffd5b3461030357602036600319011261030357600435600581101561030357602090600e0154604051908152f35b3461030357604036600319011261030357610414611a60565b61041c611a76565b9060018060a01b03165f52600560205260405f209060018060a01b03165f52602052602060ff60405f2054166040519015158152f35b34610303575f36600319011261030357602060405165b5e620f480008152f35b34610303575f36600319011261030357602060405160188152f35b34610303576020366003190112610303576004356104aa816120bd565b505f526015602052602060405f2054604051908152f35b34610303576020366003190112610303576004356104de816120bd565b506104e7611b4b565b80519091901561069c575f818072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b811015610676575b50806d04ee2d6d415b85acef8100000000600a92101561065b575b662386f26fc10000811015610647575b6305f5e100811015610636575b612710811015610627575b6064811015610619575b1015610611575b6001810191600a602161059261057c86611af7565b9561058a6040519788611ad5565b808752611af7565b602086019490601f19013686378501015b5f1901916f181899199a1a9b1b9c1cb0b131b232b360811b8282061a8353049081156105d157600a906105a3565b50506103459260206103319281946040519584879551918291018587015e840190838201905f8252519283915e01015f815203601f198101835282611ad5565b600101610567565b606460029104920191610560565b61271060049104920191610556565b6305f5e1006008910492019161054b565b662386f26fc100006010910492019161053e565b6d04ee2d6d415b85acef81000000006020910492019161052e565b6040925072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b90049050600a610513565b50506103456040516106af602082611ad5565b5f8152610331565b34610303575f36600319011261030357602060405166016bcc41e900008152f35b34610303576020366003190112610303576004356106f5816120bd565b505f526014602052602060405f2054604051908152f35b3461030357608036600319011261030357610725611a60565b61072d611a76565b906044356064359267ffffffffffffffff841161030357366023850112156103035783600401359261075e84611af7565b9361076c6040519586611ad5565b8085523660248288010111610303576020815f9260246107a09901838901378601015261079a838383611bef565b3361214b565b005b346103035760203660031901126103035760206107c0600435611faf565b60ff60405191168152f35b346103035760e03660031901126103035736606312156103035760405160a0810181811067ffffffffffffffff82111761084957604052803660e411610303576044905b60e4821061083957604061082884602435600435611f17565b60ff83519216825215156020820152f35b813581526020918201910161080f565b634e487b7160e01b5f52604160045260245ffd5b3461030357602036600319011261030357602061088061087b611a60565b611ec6565b604051908152f35b34610303575f3660031901126103035760206103e8600a541015604051908152f35b34610303575f36600319011261030357602060405160288152f35b34610303575f366003190112610303576020600a54604051908152f35b34610303576040366003190112610303576108fb611a60565b60243590811515809203610303573315610983576001600160a01b031690811561097057335f52600560205260405f20825f5260205260405f2060ff1981541660ff83161790556040519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b50630b61174360e31b5f5260045260245ffd5b63a9fbf51f60e01b5f525f60045260245ffd5b34610303575f366003190112610303576040515f6001546109b681611b13565b8084529060018116908115610a3c57506001146109de575b6103458361033181850382611ad5565b60015f9081527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6939250905b808210610a22575090915081016020016103316109ce565b919260018160209254838588010152019101909291610a0a565b60ff191660208086019190915291151560051b8401909101915061033190506109ce565b346103035760203660031901126103035760043560ff8116810361030357610880602091611e87565b34610303575f366003190112610303576008546040516001600160a01b039091168152602090f35b34610303576020366003190112610303576020610880610acf611a60565b611e41565b34610303575f3660031901126103035760206040516103e88152f35b34610303575f36600319011261030357602060405160248152f35b34610303575f36600319011261030357610b236120f1565b600880546001600160a01b031981169091555f906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b34610303576020366003190112610303576001600160a01b03610b87611a60565b168015610ba4575f526003602052602060405f2054604051908152f35b6322718ad960e21b5f525f60045260245ffd5b34610303575f36600319011261030357610345610331611b4b565b34610303575f366003190112610303576020604051818152f35b34610303576020366003190112610303576020610c0a6004356120bd565b6040516001600160a01b039091168152f35b34610303575f36600319011261030357600b546107d08110610c44575060205f604051908152f35b6107d0036107d08111610c5957602090610880565b634e487b7160e01b5f52601160045260245ffd5b346103035760203660031901126103035760043567ffffffffffffffff8111610303573660238201121561030357806004013567ffffffffffffffff811161030357366024828401011161030357610cc36120f1565b610cce600d54611b13565b601f8111610dfa575b505f601f8211600114610d60577f5411e8ebf1636d9e83d5fc4900bf80cbac82e8790da2a4c94db4895e889eedf692826024936040935f91610d53575b508160011b905f198360031b1c191617600d555b8083519485936020855282602086015201848401375f828201840152601f01601f19168101030190a1005b8591508301013586610d14565b601f19821690600d5f525f51602061225b5f395f51905f52915f5b818110610ddf5750926040927f5411e8ebf1636d9e83d5fc4900bf80cbac82e8790da2a4c94db4895e889eedf695928260249610610dc4575b5050600181811b01600d55610d28565b83018501355f19600384901b60f8161c191690558580610db4565b91926020600181926024878a01013581550194019201610d7b565b600d5f52601f820160051c5f51602061225b5f395f51905f52019060208310610e4d575b601f0160051c5f51602061225b5f395f51905f5201905b818110610e425750610cd7565b5f8155600101610e35565b5f51602061225b5f395f51905f529150610e1e565b34610303575f36600319011261030357602060405160fa8152f35b34610303576020366003190112610303576020610ea0610e9b611a60565b611db4565b6040519015158152f35b34610303575f36600319011261030357602060ff60095460a01c166040519015158152f35b34610303575f3660031901126103035760206040516109c48152f35b3461030357602036600319011261030357600435610f08816120bd565b505f526013602052602060ff60405f205416604051908152f35b34610303576107a0610f3336611a9b565b9060405192610f43602085611ad5565b5f845261079a838383611bef565b34610303576020366003190112610303576001600160a01b03610f72611a60565b165f526016602052602060405f2054604051908152f35b34610303575f3660031901126103035760206040516107d08152f35b34610303575f36600319011261030357610fbd6120f1565b478015611021576008545f918291829182916001600160a01b03165af1610fe2611d85565b5015610fea57005b60405162461bcd60e51b815260206004820152600f60248201526e1dda5d1a191c985dc819985a5b1959608a1b6044820152606490fd5b60405162461bcd60e51b81526020600482015260136024820152726e6f7468696e6720746f20776974686472617760681b6044820152606490fd5b60203660031901126103035760ff600c5416156115585761107c33611db4565b1561151f57335f526016602052600a60405f205410156114eb57600a546113888110156114bb576110ac33611e41565b80340361148a576110bc33611ec6565b604051602081019182526004356040820152604081526110dd606082611ad5565b519020906110ea82612118565b926018841061145457604051600e5f825b6005821061143e575050508061111560a061111c93611ad5565b8286611f17565b929092156113ee5765b5e620f48000146113d4575b61113a90611d77565b9182600a5560058210156113c05781600e0180549060018201809211610c595755825f52601360205260ff60405f209216918260ff19825416179055825f5260146020528360405f2055825f52601560205260405f2055335f52601660205260405f2080549060018201809211610c5957556020926040516111bc8582611ad5565b5f815233156113ad575f8481526002865260409020546001600160a01b0316801515908161137c575b335f8181526003895260408082208054600101905588825260028a52812080546001600160a01b0319168317905587919083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9080a45061136957333b61127b575b50836040519283528201527fdeec4c70f5cd118981863a7abd648939032c7622cd6b55c633423285cbf2d3c060403392a3005b846112b49160405180938192630a85bd0160e11b83523360048401525f6024840152886044840152608060648401526084830190611a3c565b03815f335af15f9181611329575b506112ef57846112d0611d85565b80519190826112ec57633250574960e11b5f523360045260245ffd5b01fd5b929391929091906001600160e01b03191663757a42ff60e11b016113165792919084611248565b633250574960e11b5f523360045260245ffd5b9091508581813d8311611362575b6113418183611ad5565b8101031261030357516001600160e01b0319811681036103035790866112c2565b503d611337565b6339e3563760e11b5f525f60045260245ffd5b5f8681526004602052604080822080546001600160a01b031916905582825260038952902080545f190190556111e5565b633250574960e11b5f525f60045260245ffd5b634e487b7160e01b5f52603260045260245ffd5b600b549060018201809211610c5957600b91909155611131565b60405162461bcd60e51b815260206004820152602260248201527f72616e6b2066756c6c202d206772696e642061207374726f6e6765722070726f60448201526137b360f11b6064820152608490fd5b60016020819285548152019301910190916110fb565b60405162461bcd60e51b815260206004820152600e60248201526d70726f6f6620746f6f207765616b60901b6044820152606490fd5b60405162461bcd60e51b815260206004820152600960248201526877726f6e672066656560b81b6044820152606490fd5b60405162461bcd60e51b81526020600482015260086024820152671cdbdb19081bdd5d60c21b6044820152606490fd5b60405162461bcd60e51b815260206004820152600c60248201526b1dd85b1b195d081b1a5b5a5d60a21b6044820152606490fd5b60405162461bcd60e51b81526020600482015260116024820152701059d95b9d081251081c995c5d5a5c9959607a1b6044820152606490fd5b60405162461bcd60e51b815260206004820152600e60248201526d1b5a5b9d081a5cc818db1bdcd95960921b6044820152606490fd5b34610303575f3660031901126103035760206040516113888152f35b34610303575f3660031901126103035760206040516105dc8152f35b34610303576040366003190112610303576004355f90815260076020526040902054602435906001600160a01b0381169060a01c8115611639575b6001600160601b031691828102928184041490151715610c5957604080516001600160a01b0390921682526127109092046020820152f35b50506006546001600160a01b0381169060a01c611601565b34610303575f36600319011261030357602060ff600c54166040519015158152f35b34610303576107a061168436611a9b565b91611bef565b34610303575f36600319011261030357602060405160328152f35b34610303575f366003190112610303576020604051601c8152f35b34610303575f366003190112610303576020600b54604051908152f35b34610303576040366003190112610303577fb63421408d6b6f7e6fbc43340faaef44856b54d08fc7b3d82a59185fce4c9c126040611719611a8c565b611721611a76565b9061172a6120f1565b6009805460ff60a01b19811692151560a081901b60ff60a01b1693841790925590926001600160a01b0316919082611779575b505060095483519283526001600160a01b0316602083015250a1005b6001600160a81b031916171760095583808061175d565b34610303575f3660031901126103035760206040516102bc8152f35b34610303575f366003190112610303576020604051600a8152f35b34610303575f366003190112610303576009546040516001600160a01b039091168152602090f35b3461030357604036600319011261030357611808611a60565b602435611814816120bd565b331515806118c6575b80611899575b6118865781906001600160a01b0384811691167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9255f80a45f90815260046020526040902080546001600160a01b0319166001600160a01b03909216919091179055005b63a9fbf51f60e01b5f523360045260245ffd5b506001600160a01b0381165f90815260056020908152604080832033845290915290205460ff1615611823565b506001600160a01b03811633141561181d565b34610303576020366003190112610303576004356118f6816120bd565b505f526004602052602060018060a01b0360405f205416604051908152f35b34610303575f366003190112610303576040515f5f5461193481611b13565b8084529060018116908115610a3c575060011461195b576103458361033181850382611ad5565b5f8080527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563939250905b80821061199d575090915081016020016103316109ce565b919260018160209254838588010152019101909291611985565b34610303576020366003190112610303576004359063ffffffff60e01b82168092036103035760209163152a902d60e11b81149081156119f9575b5015158152f35b6380ac58cd60e01b811491508115611a2b575b8115611a1a575b50836119f2565b6301ffc9a760e01b14905083611a13565b635b5e139f60e01b81149150611a0c565b805180835260209291819084018484015e5f828201840152601f01601f1916010190565b600435906001600160a01b038216820361030357565b602435906001600160a01b038216820361030357565b60043590811515820361030357565b6060906003190112610303576004356001600160a01b038116810361030357906024356001600160a01b0381168103610303579060443590565b90601f8019910116810190811067ffffffffffffffff82111761084957604052565b67ffffffffffffffff811161084957601f01601f191660200190565b90600182811c92168015611b41575b6020831014611b2d57565b634e487b7160e01b5f52602260045260245ffd5b91607f1691611b22565b604051905f82600d5491611b5e83611b13565b8083529260018116908115611bd05750600114611b84575b611b8292500383611ad5565b565b50600d5f90815290915f51602061225b5f395f51905f525b818310611bb4575050906020611b8292820101611b76565b6020919350806001915483858901015201910190918492611b9c565b60209250611b8294915060ff191682840152151560051b820101611b76565b6001600160a01b03909116919082156113ad575f828152600260205260409020546001600160a01b031692829033151580611ce2575b5084611caf575b805f52600360205260405f2060018154019055815f52600260205260405f20816001600160601b0360a01b825416179055847fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a46001600160a01b0316808303611c9757505050565b6364283d7b60e01b5f5260045260245260445260645ffd5b5f82815260046020526040902080546001600160a01b0319169055845f52600360205260405f205f198154019055611c2c565b90915080611d26575b15611cf85782905f611c25565b8284611d1057637e27328960e01b5f5260045260245ffd5b63177e802f60e01b5f523360045260245260445ffd5b503384148015611d55575b80611ceb57505f838152600460205260409020546001600160a01b03163314611ceb565b505f84815260056020908152604080832033845290915290205460ff16611d31565b5f198114610c595760010190565b3d15611daf573d90611d9682611af7565b91611da46040519384611ad5565b82523d5f602084013e565b606090565b6009549060ff8260a01c1615611e3a576040516370a0823160e01b81526001600160a01b0391821660048201529160209183916024918391165afa5f9181611e06575b50611e0157505f90565b151590565b9091506020813d602011611e32575b81611e2260209383611ad5565b810103126103035751905f611df7565b3d9150611e15565b5050600190565b6001600160a01b03165f9081526016602052604090205460021180611e7a575b611e705766016bcc41e9000090565b65b5e620f4800090565b506107d0600b5410611e61565b60ff168015611ebf5760018114611eb85760028114611eb157600314611eac57603290565b60fa90565b506102bc90565b506105dc90565b506109c490565b60018060a01b0381165f52601660205260405f20546040519060208201923060601b84526001600160601b03199060601b166034830152604882015260488152611f11606882611ad5565b51902090565b611f249093929193611faf565b92600460ff8516149081611fa3575b50611f9a575b915b60ff811660058110156113c057611fe08260051b16840151611f5c83611e87565b11611f925715611f8a5760ff5f1991160160ff811115611f3b57634e487b7160e01b5f52601160045260245ffd5b505f91508190565b509150600190565b60039250611f39565b6103e89150105f611f33565b6028811015611fe7576024811015611fe1576020811015611fdb57601c1115611fd6575f90565b600190565b50600290565b50600390565b50600490565b60ff16801561209a576001811461207757600281146120525760031461202f5760405161201b604082611ad5565b60048152634b696e6760e01b602082015290565b60405161203d604082611ad5565b600581526428bab2b2b760d91b602082015290565b50604051612061604082611ad5565b600681526512db9a59da1d60d21b602082015290565b50604051612086604082611ad5565b6004815263526f6f6b60e01b602082015290565b506040516120a9604082611ad5565b60048152632830bbb760e11b602082015290565b5f818152600260205260409020546001600160a01b03169081156120df575090565b637e27328960e01b5f5260045260245ffd5b6008546001600160a01b0316330361210557565b63118cdaa760e01b5f523360045260245ffd5b905f918015612143575b600160ff1b81106121305750565b61213d9060011b92611d77565b91612122565b506101009150565b823b612159575b5050505050565b604051630a85bd0160e11b81526001600160a01b0391821660048201529181166024830152604482019390935260806064820152911691602090829081906121a5906084830190611a3c565b03815f865af15f9181612215575b506121e157506121c1611d85565b805190816121dc5782633250574960e11b5f5260045260245ffd5b602001fd5b6001600160e01b03191663757a42ff60e11b0161220357505f80808080612152565b633250574960e11b5f5260045260245ffd5b9091506020813d602011612252575b8161223160209383611ad5565b8101031261030357516001600160e01b03198116810361030357905f6121b3565b3d915061222456fed7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb5a2646970667358221220b0127c9eee0fb1819c76cc0d075136ab26a8451f931527014e128306d799e3fc64736f6c634300081c0033","sourceMap":"2637:10201:18:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3201:2;2637:10201;3201:2;;;2637:10201;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;11688:21;2637:10201;;;:::i;:::-;1500:62:0;;:::i;:::-;2637:10201:18;;;;11658:15;2637:10201;;;;;;11658:15;2637:10201;;;;;;11688:21;2637:10201;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;:::i;:::-;1500:62:0;;:::i;:::-;-1:-1:-1;;;;;2637:10201:18;2627:22:0;;2623:91;;3004:6;2637:10201:18;;-1:-1:-1;;;;;;2637:10201:18;;;;;;;-1:-1:-1;;;;;2637:10201:18;3052:40:0;-1:-1:-1;;3052:40:0;2637:10201:18;2623:91:0;2672:31;;;2637:10201:18;2672:31:0;2637:10201:18;;;;;2672:31:0;2637:10201:18;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;4305:28;;;;;2637:10201;;4305:28;2637:10201;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;:::i;:::-;;;:::i;:::-;;;;;;;;;;3776:18:3;2637:10201:18;;;;;3776:35:3;2637:10201:18;;;;;;-1:-1:-1;2637:10201:18;;;;;;-1:-1:-1;2637:10201:18;;;;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;2868:12;2637:10201;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;3097:2;2637:10201;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;11219:22;;;:::i;:::-;;2637:10201;;11258:10;2637:10201;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;2618:22:3;;;:::i;:::-;;2637:10201:18;;:::i;:::-;;;;;;2702:25:3;:75;;2637:10201:18;2753:18:3;;-1:-1:-1;;;29599:17:15;;;29595:103;;2702:75:3;29715:17:15;;29724:8;30295:7;29715:17;;;29711:103;;2702:75:3;29840:8:15;29831:17;;;29827:103;;2702:75:3;29956:7:15;29947:16;;;29943:100;;2702:75:3;30069:7:15;30060:16;;;30056:100;;2702:75:3;30182:7:15;30173:16;;;30169:100;;2702:75:3;30286:16:15;;30282:66;;2702:75:3;2637:10201:18;;;;30295:7:15;1488:94:12;2637:10201:18;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;:::i;:::-;;;;;;-1:-1:-1;;2637:10201:18;;;;1488:94:12;;;1595:247;-1:-1:-1;;2637:10201:18;;-1:-1:-1;;;1649:111:12;;;;2637:10201:18;1649:111:12;2637:10201:18;1810:10:12;;;1806:21;;30295:7:15;;1595:247:12;;1806:21;1822:5;;2637:10201:18;1822:5:12;2637:10201:18;;1822:5:12;;;2637:10201:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;30282:66:15:-;2637:10201:18;;30282:66:15;;30169:100;30182:7;30253:1;2637:10201:18;;;;30169:100:15;;;30056;30069:7;2637:10201:18;;;;;30056:100:15;;;29943;29956:7;30027:1;2637:10201:18;;;;29943:100:15;;;29827:103;29840:8;29913:2;2637:10201:18;;;;29827:103:15;;;29711;29724:8;2637:10201:18;;;;;29711:103:15;;;29595;2637:10201:18;;-1:-1:-1;;;;2637:10201:18;;;-1:-1:-1;30295:7:15;29595:103;;2702:75:3;2637:10201:18;;;;;;;;;:::i;:::-;;;;2702:75:3;;2637:10201:18;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;2923:12;2637:10201;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;11070:22;;;:::i;:::-;;2637:10201;;11109:10;2637:10201;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;:::i;:::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;4851:4:3;2637:10201:18;;;;;;;;;;4766:7:3;;;;;:::i;:::-;735:10:10;4851:4:3;:::i;:::-;2637:10201:18;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;2985:4;9714:11;2637:10201;9714:32;;2637:10201;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;3290:2;2637:10201;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;3857:26;2637:10201;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;:::i;:::-;;;;;;;;;;;;735:10:10;15418:19:3;15414:90;;-1:-1:-1;;;;;2637:10201:18;;15517:22:3;;15513:91;;735:10:10;2637:10201:18;;15613:18:3;2637:10201:18;;;;;;-1:-1:-1;2637:10201:18;;;;-1:-1:-1;2637:10201:18;;;;;;;;;;;;;;;;;15674:41:3;2637:10201:18;735:10:10;15674:41:3;;2637:10201:18;15513:91:3;15562:31;;;;2637:10201:18;15562:31:3;2637:10201:18;;;;15562:31:3;15414:90;14909:27;;;2637:10201:18;15460:33:3;2637:10201:18;;;;;15460:33:3;2637:10201:18;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;2473:7:3;2637:10201:18;;;;:::i;:::-;;;;;2473:7:3;2637:10201:18;;;2473:7:3;;;;2637:10201:18;;;;;;;;;;;;;;:::i;:::-;2473:7:3;2637:10201:18;;;;;;;-1:-1:-1;2637:10201:18;;;;;;;-1:-1:-1;2637:10201:18;;-1:-1:-1;2637:10201:18;;;;;;;;;;2473:7:3;2637:10201:18;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2637:10201:18;;-1:-1:-1;2637:10201:18;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;-1:-1:-1;;2637:10201:18;;;;1710:6:0;2637:10201:18;;;-1:-1:-1;;;;;2637:10201:18;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;2985:4;2637:10201;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;3246:2;2637:10201;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;1500:62:0;;:::i;:::-;3004:6;2637:10201:18;;-1:-1:-1;;;;;;2637:10201:18;;;;;;;-1:-1:-1;;;;;2637:10201:18;3052:40:0;2637:10201:18;;3052:40:0;2637:10201:18;;;;;;;-1:-1:-1;;2637:10201:18;;;;-1:-1:-1;;;;;2637:10201:18;;:::i;:::-;;1947:19:3;;1943:87;;2637:10201:18;;2046:9:3;2637:10201:18;;;;;;;;;;;;;1943:87:3;1989:30;;;2637:10201:18;1989:30:3;2637:10201:18;;;;;1989:30:3;2637:10201:18;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;:::i;:::-;;;;;;-1:-1:-1;;2637:10201:18;;;;3201:2;2637:10201;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;2192:22:3;2637:10201:18;;2192:22:3;:::i;:::-;2637:10201:18;;-1:-1:-1;;;;;2637:10201:18;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;9890:11;2637:10201;2821:4;9890:25;;2821:4;;9890:56;2637:10201;;;;;;;;9890:56;2821:4;2637:10201;2821:4;2637:10201;;;;;9890:56;;;2637:10201;;;;;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1500:62:0;;:::i;:::-;2637:10201:18;11799:26;2637:10201;;:::i;:::-;;;;;;;;;;;;;;;;11840:26;2637:10201;;;;;;;;;;;;;;;;;;;;;;;;;11799:26;2637:10201;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;11840:26;;;;2637:10201;;;;;;;;;;;;;;;;;;11799:26;2637:10201;;-1:-1:-1;;;;;;;;;;;2637:10201:18;;;;;;;;;;;;11840:26;2637:10201;;;;;;;;;;;;;;;;11799:26;2637:10201;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11799:26;2637:10201;;;;;;;-1:-1:-1;;;;;;;;;;;2637:10201:18;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2637:10201:18;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2637:10201:18;-1:-1:-1;2637:10201:18;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;3606:3;2637:10201;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;3815:35;2637:10201;;;;;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;3463:4;2637:10201;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;10597:22;;;:::i;:::-;;2637:10201;;10636:8;2637:10201;;;;;;;;;;;;;;;;;;;4851:4:3;2637:10201:18;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;4766:7:3;;;;;:::i;2637:10201:18:-;;;;;;-1:-1:-1;;2637:10201:18;;;;-1:-1:-1;;;;;2637:10201:18;;:::i;:::-;;;;4636:43;2637:10201;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;2821:4;2637:10201;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;1500:62:0;;:::i;:::-;12456:21:18;12495:7;;2637:10201;;1710:6:0;2637:10201:18;;;;;;;;;-1:-1:-1;;;;;2637:10201:18;12550:37;;;;:::i;:::-;;2637:10201;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;7093:8;2637:10201;;;;;7138:22;7149:10;7138:22;:::i;:::-;2637:10201;;;7149:10;2637:10201;;7200:8;2637:10201;;2776:2;2637:10201;;;;7200:37;2637:10201;;;2776:2;2637:10201;2725:4;7272:24;;2637:10201;;;7335:22;7149:10;7335:22;:::i;:::-;7375:9;;:18;2637:10201;;7460:24;7149:10;7460:24;:::i;:::-;2637:10201;;;7443:49;;2637:10201;;;;;;;;;;7443:49;;;;;;:::i;:::-;2637:10201;7433:60;;7518:22;;;;:::i;:::-;7558:16;3097:2;7558:16;;2637:10201;;;;7662:10;2637:10201;;;;;;;;;;;;;;7631:42;2637:10201;;:::i;:::-;7631:42;;;:::i;:::-;2637:10201;;;;;;2868:12;7751:19;7747:41;;2637:10201;7816:13;;;:::i;:::-;2637:10201;;2776:2;2637:10201;;;;;;;;7662:10;2637:10201;;;;;;;;;;;;;;;;7869:8;2637:10201;;;;;;;;;;;;;;;;;;;;;7902:10;2637:10201;;;;;;;;;;7938:10;2637:10201;;;;;;7149:10;2637:10201;;7200:8;2637:10201;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;7149:10;9691:16:3;9687:87;;2637:10201:18;;;;5470:7:3;2637:10201:18;;;;;;-1:-1:-1;;;;;2637:10201:18;8830:18:3;;;;;8826:256;;2637:10201:18;7149:10;2637:10201;;;;;;;;;;;;;;;;;;;;5470:7:3;2637:10201:18;;;;;;-1:-1:-1;;;;;;2637:10201:18;;;;;;;7149:10;9246:27:3;;;;2637:10201:18;9246:27:3;9849:96;;;7149:10:18;1174:14:7;1170:744;;2637:10201:18;;;;;;;;;;;8055:43;2637:10201;7149:10;8055:43;;2637:10201;1170:744:7;2637:10201:18;;;;;;;;;;;;1212:67:7;;7149:10:18;2637:10201;1212:67:7;;2637:10201:18;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1212:67:7;7149:10:18;2637:10201;7149:10;1212:67:7;;2637:10201:18;;1212:67:7;;;1170:744;-1:-1:-1;1208:696:7;;1519:385;;;:::i;:::-;2637:10201:18;;;;1569:18:7;;;9730:33:3;;;2637:10201:18;1673:39:7;7149:10:18;2637:10201;;;;1673:39:7;1565:325;1759:113;;1208:696;2637:10201:18;;;;;;;-1:-1:-1;;;;;;2637:10201:18;-1:-1:-1;;;1326:51:7;1322:182;;1170:744;;;;;;1322:182;9730:33:3;;;2637:10201:18;1446:39:7;7149:10:18;2637:10201;;;;1446:39:7;1212:67;;;;;;;;;;;;;;;;;:::i;:::-;;;2637:10201:18;;;;;-1:-1:-1;;;;;;2637:10201:18;;;;;;1212:67:7;;;;;;;;;9849:96:3;9903:31;;;2637:10201:18;9903:31:3;2637:10201:18;;;;;9903:31:3;8826:256;2637:10201:18;;;;15066:15:3;2637:10201:18;;;;;;;;-1:-1:-1;;;;;;2637:10201:18;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;8826:256:3;;9687:87;9730:33;;;2637:10201:18;9730:33:3;2637:10201:18;;;;;9730:33:3;2637:10201:18;;;;;;;;;;;;7747:41;7772:16;2637:10201;;;;;;;;;;7772:16;2637:10201;;;;7747:41;;2637:10201;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;7093:8;2637:10201;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;2725:4;2637:10201;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;3510:4;2637:10201;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;;;;2517:17:8;2637:10201:18;;;;;;;;;-1:-1:-1;;;;;2637:10201:18;;;;;2678:29:8;;2674:173;;2637:10201:18;-1:-1:-1;;;;;2637:10201:18;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2637:10201:18;;;;;;;;;;;;;;2674:173:8;-1:-1:-1;;2741:19:8;2637:10201:18;-1:-1:-1;;;;;2637:10201:18;;;;;2674:173:8;;2637:10201:18;;;;;;-1:-1:-1;;2637:10201:18;;;;;;4063:28;2637:10201;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::i;:::-;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;3652:2;2637:10201;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;3155:2;2637:10201;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;3889:26;2637:10201;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;12207:40;2637:10201;;;:::i;:::-;;;:::i;:::-;1500:62:0;;;:::i;:::-;12104:26:18;2637:10201;;-1:-1:-1;;;;2637:10201:18;;;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;-1:-1:-1;;;;;2637:10201:18;;;;12140:52;;2637:10201;-1:-1:-1;;12104:26:18;2637:10201;;;;;;-1:-1:-1;;;;;2637:10201:18;;;;;-1:-1:-1;12207:40:18;2637:10201;12140:52;-1:-1:-1;;;;;;2637:10201:18;;;12104:26;2637:10201;12140:52;;;;;2637:10201;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;3559:3;2637:10201;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;2776:2;2637:10201;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;3736:73;2637:10201;;;-1:-1:-1;;;;;2637:10201:18;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;:::i;:::-;;;14663:22:3;;;:::i;:::-;735:10:10;14813:18:3;;:35;;;2637:10201:18;14813:69:3;;;2637:10201:18;14809:142:3;;2637:10201:18;;-1:-1:-1;;;;;2637:10201:18;;;;;15003:28:3;2637:10201:18;;15003:28:3;2637:10201:18;;;;;;;;;;;;-1:-1:-1;;;;;;2637:10201:18;-1:-1:-1;;;;;2637:10201:18;;;;;;;;;;14809:142:3;14909:27;;;2637:10201:18;14909:27:3;735:10:10;2637:10201:18;;;;14909:27:3;14813:69;-1:-1:-1;;;;;;2637:10201:18;;;;;;3776:18:3;2637:10201:18;;;;;;;;735:10:10;2637:10201:18;;;;;;;;;;14852:30:3;14813:69;;:35;-1:-1:-1;;;;;;2637:10201:18;;735:10:10;14835:13:3;;14813:35;;2637:10201:18;;;;;;-1:-1:-1;;2637:10201:18;;;;;;3385:22:3;;;:::i;:::-;;2637:10201:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;-1:-1:-1;2637:10201:18;;;;;;;-1:-1:-1;2637:10201:18;;-1:-1:-1;2637:10201:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2207:41:8;;;:81;;;;2637:10201:18;;;;;;;2207:81:8;-1:-1:-1;;;1664:40:3;;;-1:-1:-1;1664:104:3;;;;2207:81:8;1664:156:3;;;;2207:81:8;;;;;1664:156:3;-1:-1:-1;;;829:40:13;;-1:-1:-1;1664:156:3;;;:104;-1:-1:-1;;;1720:48:3;;;-1:-1:-1;1664:104:3;;2637:10201:18;;;;;;;;;;;;;;;;;-1:-1:-1;2637:10201:18;;;;;;;;-1:-1:-1;;2637:10201:18;;;;:::o;:::-;;;;-1:-1:-1;;;;;2637:10201:18;;;;;;:::o;:::-;;;;-1:-1:-1;;;;;2637:10201:18;;;;;;:::o;:::-;;;;;;;;;;;:::o;:::-;;;;;;;;;;;-1:-1:-1;;;;;2637:10201:18;;;;;;;;;-1:-1:-1;;;;;2637:10201:18;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;-1:-1:-1;;2637:10201:18;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2637:10201:18;11413:13;2637:10201;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:::o;:::-;-1:-1:-1;11413:13:18;-1:-1:-1;2637:10201:18;;;;;-1:-1:-1;;;;;;;;;;;2637:10201:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3852:578:3;-1:-1:-1;;;;;2637:10201:18;;;;3852:578:3;3946:16;;3942:87;;3960:1;2637:10201:18;;;5470:7:3;2637:10201:18;;;;;;-1:-1:-1;;;;;2637:10201:18;;;;735:10:10;8704:18:3;;;8700:86;;3852:578;8830:18;;8826:256;;3852:578;2637:10201:18;3960:1:3;2637:10201:18;9156:9:3;2637:10201:18;;;3960:1:3;2637:10201:18;9096:16:3;2637:10201:18;;;;;;3960:1:3;2637:10201:18;5470:7:3;2637:10201:18;;;3960:1:3;2637:10201:18;;-1:-1:-1;;;;;2637:10201:18;;;;;;;;9246:27:3;;3960:1;9246:27;;-1:-1:-1;;;;;2637:10201:18;4319:21:3;;;4315:109;;3852:578;;;:::o;4315:109::-;4363:50;;;3960:1;4363:50;;2637:10201:18;;;;;;3960:1:3;4363:50;8826:256;2637:10201:18;;;;15066:15:3;2637:10201:18;;;;;;;-1:-1:-1;;;;;;2637:10201:18;;;;3960:1:3;2637:10201:18;9037:9:3;2637:10201:18;;;3960:1:3;2637:10201:18;;;;;;;;8826:256:3;;8700:86;6185:127;;-1:-1:-1;6185:127:3;;;8700:86;6862:39;6858:255;;8700:86;;;;;6858:255;6921:19;;2637:10201:18;;6967:31:3;;;3960:1;6967:31;;2637:10201:18;;3960:1:3;6967:31;6917:186;7044:44;;;3960:1;7044:44;735:10:10;7044:44:3;2637:10201:18;;;;3960:1:3;7044:44;6185:127;735:10:10;;6223:16:3;;:52;;;;6185:127;6223:88;6185:127;6223:88;-1:-1:-1;3960:1:3;2637:10201:18;;;5705:15:3;2637:10201:18;;;;;;-1:-1:-1;;;;;2637:10201:18;735:10:10;6279:32:3;6185:127;;6223:52;-1:-1:-1;3960:1:3;2637:10201:18;;;3776:18:3;2637:10201:18;;;;;;;;735:10:10;2637:10201:18;;;;;;;;;;6223:52:3;;2637:10201:18;-1:-1:-1;;2637:10201:18;;;;;;;:::o;:::-;;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;-1:-1:-1;2637:10201:18;;;;:::o;:::-;;;:::o;6424:280::-;6502:16;2637:10201;;;;;;;6501:17;6497:34;;2637:10201;;-1:-1:-1;;;6545:47:18;;-1:-1:-1;;;;;2637:10201:18;;;6545:47;;;2637:10201;;;;;;6545:47;;2637:10201;;;6545:47;;2637:10201;;6545:47;;;6424:280;-1:-1:-1;6541:157:18;;6675:12;2637:10201;6675:12;:::o;6541:157::-;6636:7;;6629:14;:::o;6545:47::-;;;;2637:10201;6545:47;;2637:10201;6545:47;;;;;;2637:10201;6545:47;;;:::i;:::-;;;2637:10201;;;;;6545:47;;;;;;;-1:-1:-1;6545:47:18;;6497:34;6520:11;;6527:4;6520:11;:::o;6109:181::-;-1:-1:-1;;;;;2637:10201:18;;;;;6189:8;2637:10201;;;;;;6208:1;-1:-1:-1;6189:20:18;:48;;6109:181;6185:71;;2923:12;6109:181;:::o;6185:71::-;2868:12;6239:17;:::o;6189:48::-;2637:10201;2821:4;6213:11;2637:10201;6213:24;6189:48;;8548:259;2637:10201;;8620:8;;8616:31;;8668:1;8661:8;;8657:31;;8709:1;8702:8;;8698:33;;8752:1;8745:8;8741:32;;3652:2;8548:259;:::o;8741:32::-;3606:3;8755:18;:::o;8698:33::-;8712:19;3559:3;8712:19;:::o;8657:31::-;8671:17;3510:4;8671:17;:::o;8616:31::-;8630:17;3463:4;8630:17;:::o;5760:160::-;2637:10201;;;;;;;-1:-1:-1;2637:10201:18;5895:8;2637:10201;;;-1:-1:-1;2637:10201:18;;;;5855:57;2637:10201;5855:57;;5880:4;;2637:10201;;;;-1:-1:-1;;;;;2637:10201:18;;;;;;;;;;;;;;5855:57;;;;;;:::i;:::-;2637:10201;5845:68;;5760:160;:::o;9157:409::-;9326:18;9157:409;;;;;9326:18;:::i;:::-;2637:10201;9365:1;2637:10201;;;9358:8;:41;;;;9157:409;9354:54;;;9157:409;9418:114;;2637:10201;;;;;;;;;;;;;;;;;9440:12;;;:::i;:::-;-1:-1:-1;9425:27:18;;9472:8;9468:31;;2637:10201;;;;;;;;;;9418:114;2637:10201;;;;;;;9365:1;2637:10201;;;;9468:31;-1:-1:-1;2637:10201:18;;-1:-1:-1;2637:10201:18;;9482:17::o;9425:27::-;-1:-1:-1;9425:27:18;-1:-1:-1;9520:1:18;;9157:409::o;9354:54::-;9407:1;;-1:-1:-1;9354:54:18;;9358:41;2985:4;9370:29;;;9358:41;;;8248:256;3290:2;8326:17;;;8322:31;;3246:2;8367:18;;;8363:32;;3201:2;8409:19;;;8405:33;;3155:2;-1:-1:-1;8452:17:18;8448:31;;2637:10201;8248:256;:::o;8448:31::-;8478:1;8471:8;:::o;8405:33::-;8430:8;8437:1;8430:8;:::o;8363:32::-;8387:8;8394:1;8387:8;:::o;8322:31::-;8345:8;8352:1;8345:8;:::o;10666:247::-;2637:10201;;10746:8;;10742:27;;10790:1;10783:8;;10779:27;;10827:1;10820:8;;10816:29;;10866:1;10859:8;10855:28;;2637:10201;;;;;;:::i;:::-;;;;-1:-1:-1;;;2637:10201:18;;;;10666:247;:::o;10855:28::-;2637:10201;;;;;;:::i;:::-;;;;-1:-1:-1;;;2637:10201:18;;;;10869:14;:::o;10816:29::-;2637:10201;;;;;;;:::i;:::-;;;;-1:-1:-1;;;2637:10201:18;;;;10830:15;:::o;10779:27::-;2637:10201;;;;;;;:::i;:::-;;;;-1:-1:-1;;;2637:10201:18;;;;10793:13;:::o;10742:27::-;2637:10201;;;;;;;:::i;:::-;;;;-1:-1:-1;;;2637:10201:18;;;;10756:13;:::o;15957:241:3:-;-1:-1:-1;2637:10201:18;;;5470:7:3;2637:10201:18;;;;;;-1:-1:-1;;;;;2637:10201:18;;16086:19:3;;16082:88;;16179:12;15957:241;:::o;16082:88::-;6967:31;;;-1:-1:-1;16128:31:3;;2637:10201:18;;-1:-1:-1;16128:31:3;1796:162:0;1710:6;2637:10201:18;-1:-1:-1;;;;;2637:10201:18;735:10:10;1855:23:0;1851:101;;1796:162::o;1851:101::-;1901:40;;;-1:-1:-1;1901:40:0;735:10:10;1901:40:0;2637:10201:18;;-1:-1:-1;1901:40:0;9959:223:18;;2637:10201;10040:22;;10076:6;10072:22;;10111:14;-1:-1:-1;;;10111:14:18;;;;9959:223;:::o;10104:72::-;10162:3;2637:10201;10147:1;2637:10201;10162:3;;:::i;:::-;10104:72;;;10072:22;-1:-1:-1;10091:3:18;;-1:-1:-1;10084:10:18:o;994:926:7:-;1174:14;;1170:744;;994:926;;;;;;:::o;1170:744::-;2637:10201:18;;-1:-1:-1;;;1212:67:7;;-1:-1:-1;;;;;2637:10201:18;;;1212:67:7;;;2637:10201:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1212:67:7;;1191:1;1212:67;;;1191:1;;1212:67;;;1170:744;-1:-1:-1;1208:696:7;;1519:385;;;:::i;:::-;2637:10201:18;;;1569:18:7;;;9730:33:3;;;;1191:1:7;1673:39;1212:67;2637:10201:18;;1191:1:7;1673:39;1565:325;2637:10201:18;1759:113:7;;1208:696;-1:-1:-1;;;;;;2637:10201:18;-1:-1:-1;;;1326:51:7;1322:182;;1208:696;1170:744;;;;;;;1322:182;9730:33:3;;;1191:1:7;1446:39;1212:67;2637:10201:18;;1191:1:7;1446:39;1212:67;;;;2637:10201:18;1212:67:7;;2637:10201:18;1212:67:7;;;;;;2637:10201:18;1212:67:7;;;:::i;:::-;;;2637:10201:18;;;;;-1:-1:-1;;;;;;2637:10201:18;;;;;;1212:67:7;;;;;;;-1:-1:-1;1212:67:7;","linkReferences":{},"cborAuxdata":{"1":{"value":"0xa2646970667358221220b0127c9eee0fb1819c76cc0d075136ab26a8451f931527014e128306d799e3fc64736f6c634300081c0033","offset":8827}},"immutableReferences":{},"transformations":[],"transformationValues":{}},"deployment":{"transactionHash":"0x32574105bbeaa660a7e886458d443dcb159a26a7c4bad191fd48190b261a5ed5","blockNumber":"131671276","transactionIndex":"35","deployer":"0x0988d5B7042A65c7ef4e3631700fB0F108D85fc6"},"sources":{"npm/@openzeppelin/contracts@5.6.1/access/Ownable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../utils/Context.sol\";\n\n/**\n * @dev Contract module which provides a basic access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * The initial owner is set to the address provided by the deployer. This can\n * later be changed with {transferOwnership}.\n *\n * This module is used through inheritance. It will make available the modifier\n * `onlyOwner`, which can be applied to your functions to restrict their use to\n * the owner.\n */\nabstract contract Ownable is Context {\n    address private _owner;\n\n    /**\n     * @dev The caller account is not authorized to perform an operation.\n     */\n    error OwnableUnauthorizedAccount(address account);\n\n    /**\n     * @dev The owner is not a valid owner account. (eg. `address(0)`)\n     */\n    error OwnableInvalidOwner(address owner);\n\n    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n    /**\n     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n     */\n    constructor(address initialOwner) {\n        if (initialOwner == address(0)) {\n            revert OwnableInvalidOwner(address(0));\n        }\n        _transferOwnership(initialOwner);\n    }\n\n    /**\n     * @dev Throws if called by any account other than the owner.\n     */\n    modifier onlyOwner() {\n        _checkOwner();\n        _;\n    }\n\n    /**\n     * @dev Returns the address of the current owner.\n     */\n    function owner() public view virtual returns (address) {\n        return _owner;\n    }\n\n    /**\n     * @dev Throws if the sender is not the owner.\n     */\n    function _checkOwner() internal view virtual {\n        if (owner() != _msgSender()) {\n            revert OwnableUnauthorizedAccount(_msgSender());\n        }\n    }\n\n    /**\n     * @dev Leaves the contract without owner. It will not be possible to call\n     * `onlyOwner` functions. Can only be called by the current owner.\n     *\n     * NOTE: Renouncing ownership will leave the contract without an owner,\n     * thereby disabling any functionality that is only available to the owner.\n     */\n    function renounceOwnership() public virtual onlyOwner {\n        _transferOwnership(address(0));\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\n     * Can only be called by the current owner.\n     */\n    function transferOwnership(address newOwner) public virtual onlyOwner {\n        if (newOwner == address(0)) {\n            revert OwnableInvalidOwner(address(0));\n        }\n        _transferOwnership(newOwner);\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\n     * Internal function without access restriction.\n     */\n    function _transferOwnership(address newOwner) internal virtual {\n        address oldOwner = _owner;\n        _owner = newOwner;\n        emit OwnershipTransferred(oldOwner, newOwner);\n    }\n}\n"},"npm/@openzeppelin/contracts@5.6.1/interfaces/draft-IERC6093.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.5.0) (interfaces/draft-IERC6093.sol)\n\npragma solidity >=0.8.4;\n\n/**\n * @dev Standard ERC-20 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.\n */\ninterface IERC20Errors {\n    /**\n     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     * @param balance Current balance for the interacting account.\n     * @param needed Minimum amount required to perform a transfer.\n     */\n    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);\n\n    /**\n     * @dev Indicates a failure with the token `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     */\n    error ERC20InvalidSender(address sender);\n\n    /**\n     * @dev Indicates a failure with the token `receiver`. Used in transfers.\n     * @param receiver Address to which tokens are being transferred.\n     */\n    error ERC20InvalidReceiver(address receiver);\n\n    /**\n     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.\n     * @param spender Address that may be allowed to operate on tokens without being their owner.\n     * @param allowance Amount of tokens a `spender` is allowed to operate with.\n     * @param needed Minimum amount required to perform a transfer.\n     */\n    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);\n\n    /**\n     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n     * @param approver Address initiating an approval operation.\n     */\n    error ERC20InvalidApprover(address approver);\n\n    /**\n     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.\n     * @param spender Address that may be allowed to operate on tokens without being their owner.\n     */\n    error ERC20InvalidSpender(address spender);\n}\n\n/**\n * @dev Standard ERC-721 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens.\n */\ninterface IERC721Errors {\n    /**\n     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-721.\n     * Used in balance queries.\n     * @param owner Address of the current owner of a token.\n     */\n    error ERC721InvalidOwner(address owner);\n\n    /**\n     * @dev Indicates a `tokenId` whose `owner` is the zero address.\n     * @param tokenId Identifier number of a token.\n     */\n    error ERC721NonexistentToken(uint256 tokenId);\n\n    /**\n     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     * @param tokenId Identifier number of a token.\n     * @param owner Address of the current owner of a token.\n     */\n    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);\n\n    /**\n     * @dev Indicates a failure with the token `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     */\n    error ERC721InvalidSender(address sender);\n\n    /**\n     * @dev Indicates a failure with the token `receiver`. Used in transfers.\n     * @param receiver Address to which tokens are being transferred.\n     */\n    error ERC721InvalidReceiver(address receiver);\n\n    /**\n     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     * @param tokenId Identifier number of a token.\n     */\n    error ERC721InsufficientApproval(address operator, uint256 tokenId);\n\n    /**\n     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n     * @param approver Address initiating an approval operation.\n     */\n    error ERC721InvalidApprover(address approver);\n\n    /**\n     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     */\n    error ERC721InvalidOperator(address operator);\n}\n\n/**\n * @dev Standard ERC-1155 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens.\n */\ninterface IERC1155Errors {\n    /**\n     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     * @param balance Current balance for the interacting account.\n     * @param needed Minimum amount required to perform a transfer.\n     * @param tokenId Identifier number of a token.\n     */\n    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);\n\n    /**\n     * @dev Indicates a failure with the token `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     */\n    error ERC1155InvalidSender(address sender);\n\n    /**\n     * @dev Indicates a failure with the token `receiver`. Used in transfers.\n     * @param receiver Address to which tokens are being transferred.\n     */\n    error ERC1155InvalidReceiver(address receiver);\n\n    /**\n     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     * @param owner Address of the current owner of a token.\n     */\n    error ERC1155MissingApprovalForAll(address operator, address owner);\n\n    /**\n     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n     * @param approver Address initiating an approval operation.\n     */\n    error ERC1155InvalidApprover(address approver);\n\n    /**\n     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     */\n    error ERC1155InvalidOperator(address operator);\n\n    /**\n     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.\n     * Used in batch transfers.\n     * @param idsLength Length of the array of token identifiers\n     * @param valuesLength Length of the array of token amounts\n     */\n    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);\n}\n"},"npm/@openzeppelin/contracts@5.6.1/interfaces/IERC2981.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC2981.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n\n/**\n * @dev Interface for the NFT Royalty Standard.\n *\n * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal\n * support for royalty payments across all NFT marketplaces and ecosystem participants.\n */\ninterface IERC2981 is IERC165 {\n    /**\n     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of\n     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.\n     *\n     * NOTE: ERC-2981 allows setting the royalty to 100% of the price. In that case all the price would be sent to the\n     * royalty receiver and 0 tokens to the seller. Contracts dealing with royalty should consider empty transfers.\n     */\n    function royaltyInfo(\n        uint256 tokenId,\n        uint256 salePrice\n    ) external view returns (address receiver, uint256 royaltyAmount);\n}\n"},"npm/@openzeppelin/contracts@5.6.1/token/common/ERC2981.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/common/ERC2981.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC2981} from \"../../interfaces/IERC2981.sol\";\nimport {IERC165, ERC165} from \"../../utils/introspection/ERC165.sol\";\n\n/**\n * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.\n *\n * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for\n * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.\n *\n * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the\n * fee is specified in basis points by default.\n *\n * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See\n * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the ERC. Marketplaces are expected to\n * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.\n */\nabstract contract ERC2981 is IERC2981, ERC165 {\n    struct RoyaltyInfo {\n        address receiver;\n        uint96 royaltyFraction;\n    }\n\n    RoyaltyInfo private _defaultRoyaltyInfo;\n    mapping(uint256 tokenId => RoyaltyInfo) private _tokenRoyaltyInfo;\n\n    /**\n     * @dev The default royalty set is invalid (eg. (numerator / denominator) >= 1).\n     */\n    error ERC2981InvalidDefaultRoyalty(uint256 numerator, uint256 denominator);\n\n    /**\n     * @dev The default royalty receiver is invalid.\n     */\n    error ERC2981InvalidDefaultRoyaltyReceiver(address receiver);\n\n    /**\n     * @dev The royalty set for a specific `tokenId` is invalid (eg. (numerator / denominator) >= 1).\n     */\n    error ERC2981InvalidTokenRoyalty(uint256 tokenId, uint256 numerator, uint256 denominator);\n\n    /**\n     * @dev The royalty receiver for `tokenId` is invalid.\n     */\n    error ERC2981InvalidTokenRoyaltyReceiver(uint256 tokenId, address receiver);\n\n    /// @inheritdoc IERC165\n    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) {\n        return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId);\n    }\n\n    /// @inheritdoc IERC2981\n    function royaltyInfo(\n        uint256 tokenId,\n        uint256 salePrice\n    ) public view virtual returns (address receiver, uint256 amount) {\n        RoyaltyInfo storage _royaltyInfo = _tokenRoyaltyInfo[tokenId];\n        address royaltyReceiver = _royaltyInfo.receiver;\n        uint96 royaltyFraction = _royaltyInfo.royaltyFraction;\n\n        if (royaltyReceiver == address(0)) {\n            royaltyReceiver = _defaultRoyaltyInfo.receiver;\n            royaltyFraction = _defaultRoyaltyInfo.royaltyFraction;\n        }\n\n        uint256 royaltyAmount = (salePrice * royaltyFraction) / _feeDenominator();\n\n        return (royaltyReceiver, royaltyAmount);\n    }\n\n    /**\n     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a\n     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an\n     * override.\n     */\n    function _feeDenominator() internal pure virtual returns (uint96) {\n        return 10000;\n    }\n\n    /**\n     * @dev Sets the royalty information that all ids in this contract will default to.\n     *\n     * Requirements:\n     *\n     * - `receiver` cannot be the zero address.\n     * - `feeNumerator` cannot be greater than the fee denominator.\n     */\n    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {\n        uint256 denominator = _feeDenominator();\n        if (feeNumerator > denominator) {\n            // Royalty fee will exceed the sale price\n            revert ERC2981InvalidDefaultRoyalty(feeNumerator, denominator);\n        }\n        if (receiver == address(0)) {\n            revert ERC2981InvalidDefaultRoyaltyReceiver(address(0));\n        }\n\n        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);\n    }\n\n    /**\n     * @dev Removes default royalty information.\n     */\n    function _deleteDefaultRoyalty() internal virtual {\n        delete _defaultRoyaltyInfo;\n    }\n\n    /**\n     * @dev Sets the royalty information for a specific token id, overriding the global default.\n     *\n     * Requirements:\n     *\n     * - `receiver` cannot be the zero address.\n     * - `feeNumerator` cannot be greater than the fee denominator.\n     */\n    function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual {\n        uint256 denominator = _feeDenominator();\n        if (feeNumerator > denominator) {\n            // Royalty fee will exceed the sale price\n            revert ERC2981InvalidTokenRoyalty(tokenId, feeNumerator, denominator);\n        }\n        if (receiver == address(0)) {\n            revert ERC2981InvalidTokenRoyaltyReceiver(tokenId, address(0));\n        }\n\n        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);\n    }\n\n    /**\n     * @dev Resets royalty information for the token id back to the global default.\n     */\n    function _resetTokenRoyalty(uint256 tokenId) internal virtual {\n        delete _tokenRoyaltyInfo[tokenId];\n    }\n}\n"},"npm/@openzeppelin/contracts@5.6.1/token/ERC721/ERC721.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.6.0) (token/ERC721/ERC721.sol)\n\npragma solidity ^0.8.24;\n\nimport {IERC721} from \"./IERC721.sol\";\nimport {IERC721Metadata} from \"./extensions/IERC721Metadata.sol\";\nimport {ERC721Utils} from \"./utils/ERC721Utils.sol\";\nimport {Context} from \"../../utils/Context.sol\";\nimport {Strings} from \"../../utils/Strings.sol\";\nimport {IERC165, ERC165} from \"../../utils/introspection/ERC165.sol\";\nimport {IERC721Errors} from \"../../interfaces/draft-IERC6093.sol\";\n\n/**\n * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC-721] Non-Fungible Token Standard, including\n * the Metadata extension, but not including the Enumerable extension, which is available separately as\n * {ERC721Enumerable}.\n */\nabstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Errors {\n    using Strings for uint256;\n\n    // Token name\n    string private _name;\n\n    // Token symbol\n    string private _symbol;\n\n    mapping(uint256 tokenId => address) private _owners;\n\n    mapping(address owner => uint256) private _balances;\n\n    mapping(uint256 tokenId => address) private _tokenApprovals;\n\n    mapping(address owner => mapping(address operator => bool)) private _operatorApprovals;\n\n    /**\n     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.\n     */\n    constructor(string memory name_, string memory symbol_) {\n        _name = name_;\n        _symbol = symbol_;\n    }\n\n    /// @inheritdoc IERC165\n    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {\n        return\n            interfaceId == type(IERC721).interfaceId ||\n            interfaceId == type(IERC721Metadata).interfaceId ||\n            super.supportsInterface(interfaceId);\n    }\n\n    /// @inheritdoc IERC721\n    function balanceOf(address owner) public view virtual returns (uint256) {\n        if (owner == address(0)) {\n            revert ERC721InvalidOwner(address(0));\n        }\n        return _balances[owner];\n    }\n\n    /// @inheritdoc IERC721\n    function ownerOf(uint256 tokenId) public view virtual returns (address) {\n        return _requireOwned(tokenId);\n    }\n\n    /// @inheritdoc IERC721Metadata\n    function name() public view virtual returns (string memory) {\n        return _name;\n    }\n\n    /// @inheritdoc IERC721Metadata\n    function symbol() public view virtual returns (string memory) {\n        return _symbol;\n    }\n\n    /// @inheritdoc IERC721Metadata\n    function tokenURI(uint256 tokenId) public view virtual returns (string memory) {\n        _requireOwned(tokenId);\n\n        string memory baseURI = _baseURI();\n        return bytes(baseURI).length > 0 ? string.concat(baseURI, tokenId.toString()) : \"\";\n    }\n\n    /**\n     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each\n     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty\n     * by default, can be overridden in child contracts.\n     */\n    function _baseURI() internal view virtual returns (string memory) {\n        return \"\";\n    }\n\n    /// @inheritdoc IERC721\n    function approve(address to, uint256 tokenId) public virtual {\n        _approve(to, tokenId, _msgSender());\n    }\n\n    /// @inheritdoc IERC721\n    function getApproved(uint256 tokenId) public view virtual returns (address) {\n        _requireOwned(tokenId);\n\n        return _getApproved(tokenId);\n    }\n\n    /// @inheritdoc IERC721\n    function setApprovalForAll(address operator, bool approved) public virtual {\n        _setApprovalForAll(_msgSender(), operator, approved);\n    }\n\n    /// @inheritdoc IERC721\n    function isApprovedForAll(address owner, address operator) public view virtual returns (bool) {\n        return _operatorApprovals[owner][operator];\n    }\n\n    /// @inheritdoc IERC721\n    function transferFrom(address from, address to, uint256 tokenId) public virtual {\n        if (to == address(0)) {\n            revert ERC721InvalidReceiver(address(0));\n        }\n        // Setting an \"auth\" arguments enables the `_isAuthorized` check which verifies that the token exists\n        // (from != 0). Therefore, it is not needed to verify that the return value is not 0 here.\n        address previousOwner = _update(to, tokenId, _msgSender());\n        if (previousOwner != from) {\n            revert ERC721IncorrectOwner(from, tokenId, previousOwner);\n        }\n    }\n\n    /// @inheritdoc IERC721\n    function safeTransferFrom(address from, address to, uint256 tokenId) public {\n        safeTransferFrom(from, to, tokenId, \"\");\n    }\n\n    /// @inheritdoc IERC721\n    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual {\n        transferFrom(from, to, tokenId);\n        ERC721Utils.checkOnERC721Received(_msgSender(), from, to, tokenId, data);\n    }\n\n    /**\n     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist\n     *\n     * IMPORTANT: Any overrides to this function that add ownership of tokens not tracked by the\n     * core ERC-721 logic MUST be matched with the use of {_increaseBalance} to keep balances\n     * consistent with ownership. The invariant to preserve is that for any address `a` the value returned by\n     * `balanceOf(a)` must be equal to the number of tokens such that `_ownerOf(tokenId)` is `a`.\n     */\n    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {\n        return _owners[tokenId];\n    }\n\n    /**\n     * @dev Returns the approved address for `tokenId`. Returns 0 if `tokenId` is not minted.\n     */\n    function _getApproved(uint256 tokenId) internal view virtual returns (address) {\n        return _tokenApprovals[tokenId];\n    }\n\n    /**\n     * @dev Returns whether `spender` is allowed to manage `owner`'s tokens, or `tokenId` in\n     * particular (ignoring whether it is owned by `owner`).\n     *\n     * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this\n     * assumption.\n     */\n    function _isAuthorized(address owner, address spender, uint256 tokenId) internal view virtual returns (bool) {\n        return\n            spender != address(0) &&\n            (owner == spender || isApprovedForAll(owner, spender) || _getApproved(tokenId) == spender);\n    }\n\n    /**\n     * @dev Checks if `spender` can operate on `tokenId`, assuming the provided `owner` is the actual owner.\n     * Reverts if:\n     * - `spender` does not have approval from `owner` for `tokenId`.\n     * - `spender` does not have approval to manage all of `owner`'s assets.\n     *\n     * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this\n     * assumption.\n     */\n    function _checkAuthorized(address owner, address spender, uint256 tokenId) internal view virtual {\n        if (!_isAuthorized(owner, spender, tokenId)) {\n            if (owner == address(0)) {\n                revert ERC721NonexistentToken(tokenId);\n            } else {\n                revert ERC721InsufficientApproval(spender, tokenId);\n            }\n        }\n    }\n\n    /**\n     * @dev Unsafe write access to the balances, used by extensions that \"mint\" tokens using an {ownerOf} override.\n     *\n     * NOTE: the value is limited to type(uint128).max. This protect against _balance overflow. It is unrealistic that\n     * a uint256 would ever overflow from increments when these increments are bounded to uint128 values.\n     *\n     * WARNING: Increasing an account's balance using this function tends to be paired with an override of the\n     * {_ownerOf} function to resolve the ownership of the corresponding tokens so that balances and ownership\n     * remain consistent with one another.\n     */\n    function _increaseBalance(address account, uint128 value) internal virtual {\n        unchecked {\n            _balances[account] += value;\n        }\n    }\n\n    /**\n     * @dev Transfers `tokenId` from its current owner to `to`, or alternatively mints (or burns) if the current owner\n     * (or `to`) is the zero address. Returns the owner of the `tokenId` before the update.\n     *\n     * The `auth` argument is optional. If the value passed is non 0, then this function will check that\n     * `auth` is either the owner of the token, or approved to operate on the token (by the owner).\n     *\n     * Emits a {Transfer} event.\n     *\n     * NOTE: If overriding this function in a way that tracks balances, see also {_increaseBalance}.\n     */\n    function _update(address to, uint256 tokenId, address auth) internal virtual returns (address) {\n        address from = _ownerOf(tokenId);\n\n        // Perform (optional) operator check\n        if (auth != address(0)) {\n            _checkAuthorized(from, auth, tokenId);\n        }\n\n        // Execute the update\n        if (from != address(0)) {\n            // Clear approval. No need to re-authorize or emit the Approval event\n            _approve(address(0), tokenId, address(0), false);\n\n            unchecked {\n                _balances[from] -= 1;\n            }\n        }\n\n        if (to != address(0)) {\n            unchecked {\n                _balances[to] += 1;\n            }\n        }\n\n        _owners[tokenId] = to;\n\n        emit Transfer(from, to, tokenId);\n\n        return from;\n    }\n\n    /**\n     * @dev Mints `tokenId` and transfers it to `to`.\n     *\n     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible\n     *\n     * Requirements:\n     *\n     * - `tokenId` must not exist.\n     * - `to` cannot be the zero address.\n     *\n     * Emits a {Transfer} event.\n     */\n    function _mint(address to, uint256 tokenId) internal {\n        if (to == address(0)) {\n            revert ERC721InvalidReceiver(address(0));\n        }\n        address previousOwner = _update(to, tokenId, address(0));\n        if (previousOwner != address(0)) {\n            revert ERC721InvalidSender(address(0));\n        }\n    }\n\n    /**\n     * @dev Mints `tokenId`, transfers it to `to` and checks for `to` acceptance.\n     *\n     * Requirements:\n     *\n     * - `tokenId` must not exist.\n     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n     *\n     * Emits a {Transfer} event.\n     */\n    function _safeMint(address to, uint256 tokenId) internal {\n        _safeMint(to, tokenId, \"\");\n    }\n\n    /**\n     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is\n     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.\n     */\n    function _safeMint(address to, uint256 tokenId, bytes memory data) internal virtual {\n        _mint(to, tokenId);\n        ERC721Utils.checkOnERC721Received(_msgSender(), address(0), to, tokenId, data);\n    }\n\n    /**\n     * @dev Destroys `tokenId`.\n     * The approval is cleared when the token is burned.\n     * This is an internal function that does not check if the sender is authorized to operate on the token.\n     *\n     * Requirements:\n     *\n     * - `tokenId` must exist.\n     *\n     * Emits a {Transfer} event.\n     */\n    function _burn(uint256 tokenId) internal {\n        address previousOwner = _update(address(0), tokenId, address(0));\n        if (previousOwner == address(0)) {\n            revert ERC721NonexistentToken(tokenId);\n        }\n    }\n\n    /**\n     * @dev Transfers `tokenId` from `from` to `to`.\n     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.\n     *\n     * Requirements:\n     *\n     * - `to` cannot be the zero address.\n     * - `tokenId` token must be owned by `from`.\n     *\n     * Emits a {Transfer} event.\n     */\n    function _transfer(address from, address to, uint256 tokenId) internal {\n        if (to == address(0)) {\n            revert ERC721InvalidReceiver(address(0));\n        }\n        address previousOwner = _update(to, tokenId, address(0));\n        if (previousOwner == address(0)) {\n            revert ERC721NonexistentToken(tokenId);\n        } else if (previousOwner != from) {\n            revert ERC721IncorrectOwner(from, tokenId, previousOwner);\n        }\n    }\n\n    /**\n     * @dev Safely transfers `tokenId` token from `from` to `to`, checking that contract recipients\n     * are aware of the ERC-721 standard to prevent tokens from being forever locked.\n     *\n     * `data` is additional data, it has no specified format and it is sent in call to `to`.\n     *\n     * This internal function is like {safeTransferFrom} in the sense that it invokes\n     * {IERC721Receiver-onERC721Received} on the receiver, and can be used to e.g.\n     * implement alternative mechanisms to perform token transfer, such as signature-based.\n     *\n     * Requirements:\n     *\n     * - `tokenId` token must exist and be owned by `from`.\n     * - `to` cannot be the zero address.\n     * - `from` cannot be the zero address.\n     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n     *\n     * Emits a {Transfer} event.\n     */\n    function _safeTransfer(address from, address to, uint256 tokenId) internal {\n        _safeTransfer(from, to, tokenId, \"\");\n    }\n\n    /**\n     * @dev Same as {xref-ERC721-_safeTransfer-address-address-uint256-}[`_safeTransfer`], with an additional `data` parameter which is\n     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.\n     */\n    function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual {\n        _transfer(from, to, tokenId);\n        ERC721Utils.checkOnERC721Received(_msgSender(), from, to, tokenId, data);\n    }\n\n    /**\n     * @dev Approve `to` to operate on `tokenId`\n     *\n     * The `auth` argument is optional. If the value passed is non 0, then this function will check that `auth` is\n     * either the owner of the token, or approved to operate on all tokens held by this owner.\n     *\n     * Emits an {Approval} event.\n     *\n     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.\n     */\n    function _approve(address to, uint256 tokenId, address auth) internal {\n        _approve(to, tokenId, auth, true);\n    }\n\n    /**\n     * @dev Variant of `_approve` with an optional flag to enable or disable the {Approval} event. The event is not\n     * emitted in the context of transfers.\n     */\n    function _approve(address to, uint256 tokenId, address auth, bool emitEvent) internal virtual {\n        // Avoid reading the owner unless necessary\n        if (emitEvent || auth != address(0)) {\n            address owner = _requireOwned(tokenId);\n\n            // We do not use _isAuthorized because single-token approvals should not be able to call approve\n            if (auth != address(0) && owner != auth && !isApprovedForAll(owner, auth)) {\n                revert ERC721InvalidApprover(auth);\n            }\n\n            if (emitEvent) {\n                emit Approval(owner, to, tokenId);\n            }\n        }\n\n        _tokenApprovals[tokenId] = to;\n    }\n\n    /**\n     * @dev Approve `operator` to operate on all of `owner` tokens\n     *\n     * Requirements:\n     * - operator can't be the address zero.\n     *\n     * Emits an {ApprovalForAll} event.\n     */\n    function _setApprovalForAll(address owner, address operator, bool approved) internal virtual {\n        if (owner == address(0)) {\n            revert ERC721InvalidApprover(address(0));\n        }\n        if (operator == address(0)) {\n            revert ERC721InvalidOperator(operator);\n        }\n        _operatorApprovals[owner][operator] = approved;\n        emit ApprovalForAll(owner, operator, approved);\n    }\n\n    /**\n     * @dev Reverts if the `tokenId` doesn't have a current owner (it hasn't been minted, or it has been burned).\n     * Returns the owner.\n     *\n     * Overrides to ownership logic should be done to {_ownerOf}.\n     */\n    function _requireOwned(uint256 tokenId) internal view returns (address) {\n        address owner = _ownerOf(tokenId);\n        if (owner == address(0)) {\n            revert ERC721NonexistentToken(tokenId);\n        }\n        return owner;\n    }\n}\n"},"npm/@openzeppelin/contracts@5.6.1/token/ERC721/extensions/IERC721Metadata.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC721/extensions/IERC721Metadata.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC721} from \"../IERC721.sol\";\n\n/**\n * @title ERC-721 Non-Fungible Token Standard, optional metadata extension\n * @dev See https://eips.ethereum.org/EIPS/eip-721\n */\ninterface IERC721Metadata is IERC721 {\n    /**\n     * @dev Returns the token collection name.\n     */\n    function name() external view returns (string memory);\n\n    /**\n     * @dev Returns the token collection symbol.\n     */\n    function symbol() external view returns (string memory);\n\n    /**\n     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.\n     */\n    function tokenURI(uint256 tokenId) external view returns (string memory);\n}\n"},"npm/@openzeppelin/contracts@5.6.1/token/ERC721/IERC721.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC721/IERC721.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC165} from \"../../utils/introspection/IERC165.sol\";\n\n/**\n * @dev Required interface of an ERC-721 compliant contract.\n */\ninterface IERC721 is IERC165 {\n    /**\n     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.\n     */\n    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);\n\n    /**\n     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.\n     */\n    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);\n\n    /**\n     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.\n     */\n    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);\n\n    /**\n     * @dev Returns the number of tokens in ``owner``'s account.\n     */\n    function balanceOf(address owner) external view returns (uint256 balance);\n\n    /**\n     * @dev Returns the owner of the `tokenId` token.\n     *\n     * Requirements:\n     *\n     * - `tokenId` must exist.\n     */\n    function ownerOf(uint256 tokenId) external view returns (address owner);\n\n    /**\n     * @dev Safely transfers `tokenId` token from `from` to `to`.\n     *\n     * Requirements:\n     *\n     * - `from` cannot be the zero address.\n     * - `to` cannot be the zero address.\n     * - `tokenId` token must exist and be owned by `from`.\n     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\n     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon\n     *   a safe transfer.\n     *\n     * Emits a {Transfer} event.\n     */\n    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;\n\n    /**\n     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients\n     * are aware of the ERC-721 protocol to prevent tokens from being forever locked.\n     *\n     * Requirements:\n     *\n     * - `from` cannot be the zero address.\n     * - `to` cannot be the zero address.\n     * - `tokenId` token must exist and be owned by `from`.\n     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or\n     *   {setApprovalForAll}.\n     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon\n     *   a safe transfer.\n     *\n     * Emits a {Transfer} event.\n     */\n    function safeTransferFrom(address from, address to, uint256 tokenId) external;\n\n    /**\n     * @dev Transfers `tokenId` token from `from` to `to`.\n     *\n     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC-721\n     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must\n     * understand this adds an external call which potentially creates a reentrancy vulnerability.\n     *\n     * Requirements:\n     *\n     * - `from` cannot be the zero address.\n     * - `to` cannot be the zero address.\n     * - `tokenId` token must be owned by `from`.\n     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transferFrom(address from, address to, uint256 tokenId) external;\n\n    /**\n     * @dev Gives permission to `to` to transfer `tokenId` token to another account.\n     * The approval is cleared when the token is transferred.\n     *\n     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.\n     *\n     * Requirements:\n     *\n     * - The caller must own the token or be an approved operator.\n     * - `tokenId` must exist.\n     *\n     * Emits an {Approval} event.\n     */\n    function approve(address to, uint256 tokenId) external;\n\n    /**\n     * @dev Approve or remove `operator` as an operator for the caller.\n     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.\n     *\n     * Requirements:\n     *\n     * - The `operator` cannot be the address zero.\n     *\n     * Emits an {ApprovalForAll} event.\n     */\n    function setApprovalForAll(address operator, bool approved) external;\n\n    /**\n     * @dev Returns the account approved for `tokenId` token.\n     *\n     * Requirements:\n     *\n     * - `tokenId` must exist.\n     */\n    function getApproved(uint256 tokenId) external view returns (address operator);\n\n    /**\n     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.\n     *\n     * See {setApprovalForAll}\n     */\n    function isApprovedForAll(address owner, address operator) external view returns (bool);\n}\n"},"npm/@openzeppelin/contracts@5.6.1/token/ERC721/IERC721Receiver.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC721/IERC721Receiver.sol)\n\npragma solidity >=0.5.0;\n\n/**\n * @title ERC-721 token receiver interface\n * @dev Interface for any contract that wants to support safeTransfers\n * from ERC-721 asset contracts.\n */\ninterface IERC721Receiver {\n    /**\n     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}\n     * by `operator` from `from`, this function is called.\n     *\n     * It must return its Solidity selector to confirm the token transfer.\n     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be\n     * reverted.\n     *\n     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.\n     */\n    function onERC721Received(\n        address operator,\n        address from,\n        uint256 tokenId,\n        bytes calldata data\n    ) external returns (bytes4);\n}\n"},"npm/@openzeppelin/contracts@5.6.1/token/ERC721/utils/ERC721Utils.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.5.0) (token/ERC721/utils/ERC721Utils.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC721Receiver} from \"../IERC721Receiver.sol\";\nimport {IERC721Errors} from \"../../../interfaces/draft-IERC6093.sol\";\n\n/**\n * @dev Library that provides common ERC-721 utility functions.\n *\n * See https://eips.ethereum.org/EIPS/eip-721[ERC-721].\n *\n * _Available since v5.1._\n */\nlibrary ERC721Utils {\n    /**\n     * @dev Performs an acceptance check for the provided `operator` by calling {IERC721Receiver-onERC721Received}\n     * on the `to` address. The `operator` is generally the address that initiated the token transfer (i.e. `msg.sender`).\n     *\n     * The acceptance call is not executed and treated as a no-op if the target address doesn't contain code (i.e. an EOA).\n     * Otherwise, the recipient must implement {IERC721Receiver-onERC721Received} and return the acceptance magic value to accept\n     * the transfer.\n     */\n    function checkOnERC721Received(\n        address operator,\n        address from,\n        address to,\n        uint256 tokenId,\n        bytes memory data\n    ) internal {\n        if (to.code.length > 0) {\n            try IERC721Receiver(to).onERC721Received(operator, from, tokenId, data) returns (bytes4 retval) {\n                if (retval != IERC721Receiver.onERC721Received.selector) {\n                    // Token rejected\n                    revert IERC721Errors.ERC721InvalidReceiver(to);\n                }\n            } catch (bytes memory reason) {\n                if (reason.length == 0) {\n                    // non-IERC721Receiver implementer\n                    revert IERC721Errors.ERC721InvalidReceiver(to);\n                } else {\n                    assembly (\"memory-safe\") {\n                        revert(add(reason, 0x20), mload(reason))\n                    }\n                }\n            }\n        }\n    }\n}\n"},"npm/@openzeppelin/contracts@5.6.1/utils/Bytes.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.6.0) (utils/Bytes.sol)\n\npragma solidity ^0.8.24;\n\nimport {Math} from \"./math/Math.sol\";\n\n/**\n * @dev Bytes operations.\n */\nlibrary Bytes {\n    /**\n     * @dev Forward search for `s` in `buffer`\n     * * If `s` is present in the buffer, returns the index of the first instance\n     * * If `s` is not present in the buffer, returns type(uint256).max\n     *\n     * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf[Javascript's `Array.indexOf`]\n     */\n    function indexOf(bytes memory buffer, bytes1 s) internal pure returns (uint256) {\n        return indexOf(buffer, s, 0);\n    }\n\n    /**\n     * @dev Forward search for `s` in `buffer` starting at position `pos`\n     * * If `s` is present in the buffer (at or after `pos`), returns the index of the next instance\n     * * If `s` is not present in the buffer (at or after `pos`), returns type(uint256).max\n     *\n     * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf[Javascript's `Array.indexOf`]\n     */\n    function indexOf(bytes memory buffer, bytes1 s, uint256 pos) internal pure returns (uint256) {\n        uint256 length = buffer.length;\n        for (uint256 i = pos; i < length; ++i) {\n            if (bytes1(_unsafeReadBytesOffset(buffer, i)) == s) {\n                return i;\n            }\n        }\n        return type(uint256).max;\n    }\n\n    /**\n     * @dev Backward search for `s` in `buffer`\n     * * If `s` is present in the buffer, returns the index of the last instance\n     * * If `s` is not present in the buffer, returns type(uint256).max\n     *\n     * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/lastIndexOf[Javascript's `Array.lastIndexOf`]\n     */\n    function lastIndexOf(bytes memory buffer, bytes1 s) internal pure returns (uint256) {\n        return lastIndexOf(buffer, s, type(uint256).max);\n    }\n\n    /**\n     * @dev Backward search for `s` in `buffer` starting at position `pos`\n     * * If `s` is present in the buffer (at or before `pos`), returns the index of the previous instance\n     * * If `s` is not present in the buffer (at or before `pos`), returns type(uint256).max\n     *\n     * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/lastIndexOf[Javascript's `Array.lastIndexOf`]\n     */\n    function lastIndexOf(bytes memory buffer, bytes1 s, uint256 pos) internal pure returns (uint256) {\n        unchecked {\n            uint256 length = buffer.length;\n            for (uint256 i = Math.min(Math.saturatingAdd(pos, 1), length); i > 0; --i) {\n                if (bytes1(_unsafeReadBytesOffset(buffer, i - 1)) == s) {\n                    return i - 1;\n                }\n            }\n            return type(uint256).max;\n        }\n    }\n\n    /**\n     * @dev Copies the content of `buffer`, from `start` (included) to the end of `buffer` into a new bytes object in\n     * memory.\n     *\n     * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice[Javascript's `Array.slice`]\n     */\n    function slice(bytes memory buffer, uint256 start) internal pure returns (bytes memory) {\n        return slice(buffer, start, buffer.length);\n    }\n\n    /**\n     * @dev Copies the content of `buffer`, from `start` (included) to `end` (excluded) into a new bytes object in\n     * memory. The `end` argument is truncated to the length of the `buffer`.\n     *\n     * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice[Javascript's `Array.slice`]\n     */\n    function slice(bytes memory buffer, uint256 start, uint256 end) internal pure returns (bytes memory) {\n        // sanitize\n        end = Math.min(end, buffer.length);\n        start = Math.min(start, end);\n\n        // allocate and copy\n        bytes memory result = new bytes(end - start);\n        assembly (\"memory-safe\") {\n            mcopy(add(result, 0x20), add(add(buffer, 0x20), start), sub(end, start))\n        }\n\n        return result;\n    }\n\n    /**\n     * @dev Moves the content of `buffer`, from `start` (included) to the end of `buffer` to the start of that buffer,\n     * and shrinks the buffer length accordingly, effectively overriding the content of buffer with buffer[start:].\n     *\n     * NOTE: This function modifies the provided buffer in place. If you need to preserve the original buffer, use {slice} instead\n     */\n    function splice(bytes memory buffer, uint256 start) internal pure returns (bytes memory) {\n        return splice(buffer, start, buffer.length);\n    }\n\n    /**\n     * @dev Moves the content of `buffer`, from `start` (included) to `end` (excluded) to the start of that buffer,\n     * and shrinks the buffer length accordingly, effectively overriding the content of buffer with buffer[start:end].\n     * The `end` argument is truncated to the length of the `buffer`.\n     *\n     * NOTE: This function modifies the provided buffer in place. If you need to preserve the original buffer, use {slice} instead\n     */\n    function splice(bytes memory buffer, uint256 start, uint256 end) internal pure returns (bytes memory) {\n        // sanitize\n        end = Math.min(end, buffer.length);\n        start = Math.min(start, end);\n\n        // move and resize\n        assembly (\"memory-safe\") {\n            mcopy(add(buffer, 0x20), add(add(buffer, 0x20), start), sub(end, start))\n            mstore(buffer, sub(end, start))\n        }\n\n        return buffer;\n    }\n\n    /**\n     * @dev Replaces bytes in `buffer` starting at `pos` with all bytes from `replacement`.\n     *\n     * Parameters are clamped to valid ranges (i.e. `pos` is clamped to `[0, buffer.length]`).\n     * If `pos >= buffer.length`, no replacement occurs and the buffer is returned unchanged.\n     *\n     * NOTE: This function modifies the provided buffer in place.\n     */\n    function replace(bytes memory buffer, uint256 pos, bytes memory replacement) internal pure returns (bytes memory) {\n        return replace(buffer, pos, replacement, 0, replacement.length);\n    }\n\n    /**\n     * @dev Replaces bytes in `buffer` starting at `pos` with bytes from `replacement` starting at `offset`.\n     * Copies at most `length` bytes from `replacement` to `buffer`.\n     *\n     * Parameters are clamped to valid ranges (i.e. `pos` is clamped to `[0, buffer.length]`, `offset` is\n     * clamped to `[0, replacement.length]`, and `length` is clamped to `min(length, replacement.length - offset,\n     * buffer.length - pos))`. If `pos >= buffer.length` or `offset >= replacement.length`, no replacement occurs\n     * and the buffer is returned unchanged.\n     *\n     * NOTE: This function modifies the provided buffer in place.\n     */\n    function replace(\n        bytes memory buffer,\n        uint256 pos,\n        bytes memory replacement,\n        uint256 offset,\n        uint256 length\n    ) internal pure returns (bytes memory) {\n        // sanitize\n        pos = Math.min(pos, buffer.length);\n        offset = Math.min(offset, replacement.length);\n        length = Math.min(length, Math.min(replacement.length - offset, buffer.length - pos));\n\n        // replace\n        assembly (\"memory-safe\") {\n            mcopy(add(add(buffer, 0x20), pos), add(add(replacement, 0x20), offset), length)\n        }\n\n        return buffer;\n    }\n\n    /**\n     * @dev Concatenate an array of bytes into a single bytes object.\n     *\n     * For fixed bytes types, we recommend using the solidity built-in `bytes.concat` or (equivalent)\n     * `abi.encodePacked`.\n     *\n     * NOTE: this could be done in assembly with a single loop that expands starting at the FMP, but that would be\n     * significantly less readable. It might be worth benchmarking the savings of the full-assembly approach.\n     */\n    function concat(bytes[] memory buffers) internal pure returns (bytes memory) {\n        uint256 length = 0;\n        for (uint256 i = 0; i < buffers.length; ++i) {\n            length += buffers[i].length;\n        }\n\n        bytes memory result = new bytes(length);\n\n        uint256 offset = 0x20;\n        for (uint256 i = 0; i < buffers.length; ++i) {\n            bytes memory input = buffers[i];\n            assembly (\"memory-safe\") {\n                mcopy(add(result, offset), add(input, 0x20), mload(input))\n            }\n            unchecked {\n                offset += input.length;\n            }\n        }\n\n        return result;\n    }\n\n    /**\n     * @dev Split each byte in `input` into two nibbles (4 bits each)\n     *\n     * Example: hex\"01234567\" → hex\"0001020304050607\"\n     */\n    function toNibbles(bytes memory input) internal pure returns (bytes memory output) {\n        assembly (\"memory-safe\") {\n            let length := mload(input)\n            output := mload(0x40)\n            mstore(0x40, add(add(output, 0x20), mul(length, 2)))\n            mstore(output, mul(length, 2))\n            for {\n                let i := 0\n            } lt(i, length) {\n                i := add(i, 0x10)\n            } {\n                let chunk := shr(128, mload(add(add(input, 0x20), i)))\n                chunk := and(\n                    0x0000000000000000ffffffffffffffff0000000000000000ffffffffffffffff,\n                    or(shl(64, chunk), chunk)\n                )\n                chunk := and(\n                    0x00000000ffffffff00000000ffffffff00000000ffffffff00000000ffffffff,\n                    or(shl(32, chunk), chunk)\n                )\n                chunk := and(\n                    0x0000ffff0000ffff0000ffff0000ffff0000ffff0000ffff0000ffff0000ffff,\n                    or(shl(16, chunk), chunk)\n                )\n                chunk := and(\n                    0x00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff,\n                    or(shl(8, chunk), chunk)\n                )\n                chunk := and(\n                    0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f,\n                    or(shl(4, chunk), chunk)\n                )\n                mstore(add(add(output, 0x20), mul(i, 2)), chunk)\n            }\n        }\n    }\n\n    /**\n     * @dev Returns true if the two byte buffers are equal.\n     */\n    function equal(bytes memory a, bytes memory b) internal pure returns (bool) {\n        return a.length == b.length && keccak256(a) == keccak256(b);\n    }\n\n    /**\n     * @dev Reverses the byte order of a bytes32 value, converting between little-endian and big-endian.\n     * Inspired by https://graphics.stanford.edu/~seander/bithacks.html#ReverseParallel[Reverse Parallel]\n     */\n    function reverseBytes32(bytes32 value) internal pure returns (bytes32) {\n        value = // swap bytes\n            ((value >> 8) & 0x00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF) |\n            ((value & 0x00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF) << 8);\n        value = // swap 2-byte long pairs\n            ((value >> 16) & 0x0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF) |\n            ((value & 0x0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF) << 16);\n        value = // swap 4-byte long pairs\n            ((value >> 32) & 0x00000000FFFFFFFF00000000FFFFFFFF00000000FFFFFFFF00000000FFFFFFFF) |\n            ((value & 0x00000000FFFFFFFF00000000FFFFFFFF00000000FFFFFFFF00000000FFFFFFFF) << 32);\n        value = // swap 8-byte long pairs\n            ((value >> 64) & 0x0000000000000000FFFFFFFFFFFFFFFF0000000000000000FFFFFFFFFFFFFFFF) |\n            ((value & 0x0000000000000000FFFFFFFFFFFFFFFF0000000000000000FFFFFFFFFFFFFFFF) << 64);\n        return (value >> 128) | (value << 128); // swap 16-byte long pairs\n    }\n\n    /// @dev Same as {reverseBytes32} but optimized for 128-bit values.\n    function reverseBytes16(bytes16 value) internal pure returns (bytes16) {\n        value = // swap bytes\n            ((value & 0xFF00FF00FF00FF00FF00FF00FF00FF00) >> 8) |\n            ((value & 0x00FF00FF00FF00FF00FF00FF00FF00FF) << 8);\n        value = // swap 2-byte long pairs\n            ((value & 0xFFFF0000FFFF0000FFFF0000FFFF0000) >> 16) |\n            ((value & 0x0000FFFF0000FFFF0000FFFF0000FFFF) << 16);\n        value = // swap 4-byte long pairs\n            ((value & 0xFFFFFFFF00000000FFFFFFFF00000000) >> 32) |\n            ((value & 0x00000000FFFFFFFF00000000FFFFFFFF) << 32);\n        return (value >> 64) | (value << 64); // swap 8-byte long pairs\n    }\n\n    /// @dev Same as {reverseBytes32} but optimized for 64-bit values.\n    function reverseBytes8(bytes8 value) internal pure returns (bytes8) {\n        value = ((value & 0xFF00FF00FF00FF00) >> 8) | ((value & 0x00FF00FF00FF00FF) << 8); // swap bytes\n        value = ((value & 0xFFFF0000FFFF0000) >> 16) | ((value & 0x0000FFFF0000FFFF) << 16); // swap 2-byte long pairs\n        return (value >> 32) | (value << 32); // swap 4-byte long pairs\n    }\n\n    /// @dev Same as {reverseBytes32} but optimized for 32-bit values.\n    function reverseBytes4(bytes4 value) internal pure returns (bytes4) {\n        value = ((value & 0xFF00FF00) >> 8) | ((value & 0x00FF00FF) << 8); // swap bytes\n        return (value >> 16) | (value << 16); // swap 2-byte long pairs\n    }\n\n    /// @dev Same as {reverseBytes32} but optimized for 16-bit values.\n    function reverseBytes2(bytes2 value) internal pure returns (bytes2) {\n        return (value >> 8) | (value << 8);\n    }\n\n    /**\n     * @dev Counts the number of leading zero bits a bytes array. Returns `8 * buffer.length`\n     * if the buffer is all zeros.\n     */\n    function clz(bytes memory buffer) internal pure returns (uint256) {\n        for (uint256 i = 0; i < buffer.length; i += 0x20) {\n            bytes32 chunk = _unsafeReadBytesOffset(buffer, i);\n            if (chunk != bytes32(0)) {\n                return Math.min(8 * i + Math.clz(uint256(chunk)), 8 * buffer.length);\n            }\n        }\n        return 8 * buffer.length;\n    }\n\n    /**\n     * @dev Reads a bytes32 from a bytes array without bounds checking.\n     *\n     * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n     * assembly block as such would prevent some optimizations.\n     */\n    function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n        // This is not memory safe in the general case, but all calls to this private function are within bounds.\n        assembly (\"memory-safe\") {\n            value := mload(add(add(buffer, 0x20), offset))\n        }\n    }\n}\n"},"npm/@openzeppelin/contracts@5.6.1/utils/Context.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n    function _msgSender() internal view virtual returns (address) {\n        return msg.sender;\n    }\n\n    function _msgData() internal view virtual returns (bytes calldata) {\n        return msg.data;\n    }\n\n    function _contextSuffixLength() internal view virtual returns (uint256) {\n        return 0;\n    }\n}\n"},"npm/@openzeppelin/contracts@5.6.1/utils/introspection/ERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/ERC165.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @dev Implementation of the {IERC165} interface.\n *\n * Contracts that want to implement ERC-165 should inherit from this contract and override {supportsInterface} to check\n * for the additional interface id that will be supported. For example:\n *\n * ```solidity\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\n * }\n * ```\n */\nabstract contract ERC165 is IERC165 {\n    /// @inheritdoc IERC165\n    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {\n        return interfaceId == type(IERC165).interfaceId;\n    }\n}\n"},"npm/@openzeppelin/contracts@5.6.1/utils/introspection/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n    /**\n     * @dev Returns true if this contract implements the interface defined by\n     * `interfaceId`. See the corresponding\n     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]\n     * to learn more about how these ids are created.\n     *\n     * This function call must use less than 30 000 gas.\n     */\n    function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n"},"npm/@openzeppelin/contracts@5.6.1/utils/math/Math.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.6.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.20;\n\nimport {Panic} from \"../Panic.sol\";\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n    enum Rounding {\n        Floor, // Toward negative infinity\n        Ceil, // Toward positive infinity\n        Trunc, // Toward zero\n        Expand // Away from zero\n    }\n\n    /**\n     * @dev Return the 512-bit addition of two uint256.\n     *\n     * The result is stored in two 256 variables such that sum = high * 2²⁵⁶ + low.\n     */\n    function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n        assembly (\"memory-safe\") {\n            low := add(a, b)\n            high := lt(low, a)\n        }\n    }\n\n    /**\n     * @dev Return the 512-bit multiplication of two uint256.\n     *\n     * The result is stored in two 256 variables such that product = high * 2²⁵⁶ + low.\n     */\n    function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n        // 512-bit multiply [high low] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use\n        // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n        // variables such that product = high * 2²⁵⁶ + low.\n        assembly (\"memory-safe\") {\n            let mm := mulmod(a, b, not(0))\n            low := mul(a, b)\n            high := sub(sub(mm, low), lt(mm, low))\n        }\n    }\n\n    /**\n     * @dev Returns the addition of two unsigned integers, with a success flag (no overflow).\n     */\n    function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            uint256 c = a + b;\n            success = c >= a;\n            result = c * SafeCast.toUint(success);\n        }\n    }\n\n    /**\n     * @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow).\n     */\n    function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            uint256 c = a - b;\n            success = c <= a;\n            result = c * SafeCast.toUint(success);\n        }\n    }\n\n    /**\n     * @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow).\n     */\n    function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            uint256 c = a * b;\n            assembly (\"memory-safe\") {\n                // Only true when the multiplication doesn't overflow\n                // (c / a == b) || (a == 0)\n                success := or(eq(div(c, a), b), iszero(a))\n            }\n            // equivalent to: success ? c : 0\n            result = c * SafeCast.toUint(success);\n        }\n    }\n\n    /**\n     * @dev Returns the division of two unsigned integers, with a success flag (no division by zero).\n     */\n    function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            success = b > 0;\n            assembly (\"memory-safe\") {\n                // The `DIV` opcode returns zero when the denominator is 0.\n                result := div(a, b)\n            }\n        }\n    }\n\n    /**\n     * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).\n     */\n    function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            success = b > 0;\n            assembly (\"memory-safe\") {\n                // The `MOD` opcode returns zero when the denominator is 0.\n                result := mod(a, b)\n            }\n        }\n    }\n\n    /**\n     * @dev Unsigned saturating addition, bounds to `2²⁵⁶ - 1` instead of overflowing.\n     */\n    function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) {\n        (bool success, uint256 result) = tryAdd(a, b);\n        return ternary(success, result, type(uint256).max);\n    }\n\n    /**\n     * @dev Unsigned saturating subtraction, bounds to zero instead of overflowing.\n     */\n    function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) {\n        (, uint256 result) = trySub(a, b);\n        return result;\n    }\n\n    /**\n     * @dev Unsigned saturating multiplication, bounds to `2²⁵⁶ - 1` instead of overflowing.\n     */\n    function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) {\n        (bool success, uint256 result) = tryMul(a, b);\n        return ternary(success, result, type(uint256).max);\n    }\n\n    /**\n     * @dev Branchless ternary evaluation for `condition ? a : b`. Gas costs are constant.\n     *\n     * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n     * However, the compiler may optimize Solidity ternary operations (i.e. `condition ? a : b`) to only compute\n     * one branch when needed, making this function more expensive.\n     */\n    function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {\n        unchecked {\n            // branchless ternary works because:\n            // b ^ (a ^ b) == a\n            // b ^ 0 == b\n            return b ^ ((a ^ b) * SafeCast.toUint(condition));\n        }\n    }\n\n    /**\n     * @dev Returns the largest of two numbers.\n     */\n    function max(uint256 a, uint256 b) internal pure returns (uint256) {\n        return ternary(a > b, a, b);\n    }\n\n    /**\n     * @dev Returns the smallest of two numbers.\n     */\n    function min(uint256 a, uint256 b) internal pure returns (uint256) {\n        return ternary(a < b, a, b);\n    }\n\n    /**\n     * @dev Returns the average of two numbers. The result is rounded towards\n     * zero.\n     */\n    function average(uint256 a, uint256 b) internal pure returns (uint256) {\n        unchecked {\n            // (a + b) / 2 can overflow.\n            return (a & b) + (a ^ b) / 2;\n        }\n    }\n\n    /**\n     * @dev Returns the ceiling of the division of two numbers.\n     *\n     * This differs from standard division with `/` in that it rounds towards infinity instead\n     * of rounding towards zero.\n     */\n    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n        if (b == 0) {\n            // Guarantee the same behavior as in a regular Solidity division.\n            Panic.panic(Panic.DIVISION_BY_ZERO);\n        }\n\n        // The following calculation ensures accurate ceiling division without overflow.\n        // Since a is non-zero, (a - 1) / b will not overflow.\n        // The largest possible result occurs when (a - 1) / b is type(uint256).max,\n        // but the largest value we can obtain is type(uint256).max - 1, which happens\n        // when a = type(uint256).max and b = 1.\n        unchecked {\n            return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);\n        }\n    }\n\n    /**\n     * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n     * denominator == 0.\n     *\n     * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n     * Uniswap Labs also under MIT license.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n        unchecked {\n            (uint256 high, uint256 low) = mul512(x, y);\n\n            // Handle non-overflow cases, 256 by 256 division.\n            if (high == 0) {\n                // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n                // The surrounding unchecked block does not change this fact.\n                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n                return low / denominator;\n            }\n\n            // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.\n            if (denominator <= high) {\n                Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));\n            }\n\n            ///////////////////////////////////////////////\n            // 512 by 256 division.\n            ///////////////////////////////////////////////\n\n            // Make division exact by subtracting the remainder from [high low].\n            uint256 remainder;\n            assembly (\"memory-safe\") {\n                // Compute remainder using mulmod.\n                remainder := mulmod(x, y, denominator)\n\n                // Subtract 256 bit number from 512 bit number.\n                high := sub(high, gt(remainder, low))\n                low := sub(low, remainder)\n            }\n\n            // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n            // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n            uint256 twos = denominator & (0 - denominator);\n            assembly (\"memory-safe\") {\n                // Divide denominator by twos.\n                denominator := div(denominator, twos)\n\n                // Divide [high low] by twos.\n                low := div(low, twos)\n\n                // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one.\n                twos := add(div(sub(0, twos), twos), 1)\n            }\n\n            // Shift in bits from high into low.\n            low |= high * twos;\n\n            // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such\n            // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for\n            // four bits. That is, denominator * inv ≡ 1 mod 2⁴.\n            uint256 inverse = (3 * denominator) ^ 2;\n\n            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n            // works in modular arithmetic, doubling the correct bits in each step.\n            inverse *= 2 - denominator * inverse; // inverse mod 2⁸\n            inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶\n            inverse *= 2 - denominator * inverse; // inverse mod 2³²\n            inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴\n            inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸\n            inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶\n\n            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n            // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is\n            // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and high\n            // is no longer required.\n            result = low * inverse;\n            return result;\n        }\n    }\n\n    /**\n     * @dev Calculates x * y / denominator with full precision, following the selected rounding direction.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n        return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);\n    }\n\n    /**\n     * @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256.\n     */\n    function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) {\n        unchecked {\n            (uint256 high, uint256 low) = mul512(x, y);\n            if (high >= 1 << n) {\n                Panic.panic(Panic.UNDER_OVERFLOW);\n            }\n            return (high << (256 - n)) | (low >> n);\n        }\n    }\n\n    /**\n     * @dev Calculates x * y >> n with full precision, following the selected rounding direction.\n     */\n    function mulShr(uint256 x, uint256 y, uint8 n, Rounding rounding) internal pure returns (uint256) {\n        return mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0);\n    }\n\n    /**\n     * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.\n     *\n     * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.\n     * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.\n     *\n     * If the input value is not inversible, 0 is returned.\n     *\n     * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the\n     * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.\n     */\n    function invMod(uint256 a, uint256 n) internal pure returns (uint256) {\n        unchecked {\n            if (n == 0) return 0;\n\n            // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)\n            // Used to compute integers x and y such that: ax + ny = gcd(a, n).\n            // When the gcd is 1, then the inverse of a modulo n exists and it's x.\n            // ax + ny = 1\n            // ax = 1 + (-y)n\n            // ax ≡ 1 (mod n) # x is the inverse of a modulo n\n\n            // If the remainder is 0 the gcd is n right away.\n            uint256 remainder = a % n;\n            uint256 gcd = n;\n\n            // Therefore the initial coefficients are:\n            // ax + ny = gcd(a, n) = n\n            // 0a + 1n = n\n            int256 x = 0;\n            int256 y = 1;\n\n            while (remainder != 0) {\n                uint256 quotient = gcd / remainder;\n\n                (gcd, remainder) = (\n                    // The old remainder is the next gcd to try.\n                    remainder,\n                    // Compute the next remainder.\n                    // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd\n                    // where gcd is at most n (capped to type(uint256).max)\n                    gcd - remainder * quotient\n                );\n\n                (x, y) = (\n                    // Increment the coefficient of a.\n                    y,\n                    // Decrement the coefficient of n.\n                    // Can overflow, but the result is casted to uint256 so that the\n                    // next value of y is \"wrapped around\" to a value between 0 and n - 1.\n                    x - y * int256(quotient)\n                );\n            }\n\n            if (gcd != 1) return 0; // No inverse exists.\n            return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.\n        }\n    }\n\n    /**\n     * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.\n     *\n     * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is\n     * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that\n     * `a**(p-2)` is the modular multiplicative inverse of a in Fp.\n     *\n     * NOTE: this function does NOT check that `p` is a prime greater than `2`.\n     */\n    function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {\n        unchecked {\n            return Math.modExp(a, p - 2, p);\n        }\n    }\n\n    /**\n     * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)\n     *\n     * Requirements:\n     * - modulus can't be zero\n     * - underlying staticcall to precompile must succeed\n     *\n     * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make\n     * sure the chain you're using it on supports the precompiled contract for modular exponentiation\n     * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,\n     * the underlying function will succeed given the lack of a revert, but the result may be incorrectly\n     * interpreted as 0.\n     */\n    function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {\n        (bool success, uint256 result) = tryModExp(b, e, m);\n        if (!success) {\n            Panic.panic(Panic.DIVISION_BY_ZERO);\n        }\n        return result;\n    }\n\n    /**\n     * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).\n     * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying\n     * to operate modulo 0 or if the underlying precompile reverted.\n     *\n     * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain\n     * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in\n     * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack\n     * of a revert, but the result may be incorrectly interpreted as 0.\n     */\n    function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {\n        if (m == 0) return (false, 0);\n        assembly (\"memory-safe\") {\n            let ptr := mload(0x40)\n            // | Offset    | Content    | Content (Hex)                                                      |\n            // |-----------|------------|--------------------------------------------------------------------|\n            // | 0x00:0x1f | size of b  | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n            // | 0x20:0x3f | size of e  | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n            // | 0x40:0x5f | size of m  | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n            // | 0x60:0x7f | value of b | 0x<.............................................................b> |\n            // | 0x80:0x9f | value of e | 0x<.............................................................e> |\n            // | 0xa0:0xbf | value of m | 0x<.............................................................m> |\n            mstore(ptr, 0x20)\n            mstore(add(ptr, 0x20), 0x20)\n            mstore(add(ptr, 0x40), 0x20)\n            mstore(add(ptr, 0x60), b)\n            mstore(add(ptr, 0x80), e)\n            mstore(add(ptr, 0xa0), m)\n\n            // Given the result < m, it's guaranteed to fit in 32 bytes,\n            // so we can use the memory scratch space located at offset 0.\n            success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)\n            result := mload(0x00)\n        }\n    }\n\n    /**\n     * @dev Variant of {modExp} that supports inputs of arbitrary length.\n     */\n    function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {\n        (bool success, bytes memory result) = tryModExp(b, e, m);\n        if (!success) {\n            Panic.panic(Panic.DIVISION_BY_ZERO);\n        }\n        return result;\n    }\n\n    /**\n     * @dev Variant of {tryModExp} that supports inputs of arbitrary length.\n     */\n    function tryModExp(\n        bytes memory b,\n        bytes memory e,\n        bytes memory m\n    ) internal view returns (bool success, bytes memory result) {\n        if (_zeroBytes(m)) return (false, new bytes(0));\n\n        uint256 mLen = m.length;\n\n        // Encode call args in result and move the free memory pointer\n        result = abi.encodePacked(b.length, e.length, mLen, b, e, m);\n\n        assembly (\"memory-safe\") {\n            let dataPtr := add(result, 0x20)\n            // Write result on top of args to avoid allocating extra memory.\n            success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)\n            // Overwrite the length.\n            // result.length > returndatasize() is guaranteed because returndatasize() == m.length\n            mstore(result, mLen)\n            // Set the memory pointer after the returned data.\n            mstore(0x40, add(dataPtr, mLen))\n        }\n    }\n\n    /**\n     * @dev Returns whether the provided byte array is zero.\n     */\n    function _zeroBytes(bytes memory buffer) private pure returns (bool) {\n        uint256 chunk;\n        for (uint256 i = 0; i < buffer.length; i += 0x20) {\n            // See _unsafeReadBytesOffset from utils/Bytes.sol\n            assembly (\"memory-safe\") {\n                chunk := mload(add(add(buffer, 0x20), i))\n            }\n            if (chunk >> (8 * saturatingSub(i + 0x20, buffer.length)) != 0) {\n                return false;\n            }\n        }\n        return true;\n    }\n\n    /**\n     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n     * towards zero.\n     *\n     * This method is based on Newton's method for computing square roots; the algorithm is restricted to only\n     * using integer operations.\n     */\n    function sqrt(uint256 a) internal pure returns (uint256) {\n        unchecked {\n            // Take care of easy edge cases when a == 0 or a == 1\n            if (a <= 1) {\n                return a;\n            }\n\n            // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a\n            // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between\n            // the current value as `ε_n = | x_n - sqrt(a) |`.\n            //\n            // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root\n            // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is\n            // bigger than any uint256.\n            //\n            // By noticing that\n            // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`\n            // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar\n            // to the msb function.\n            uint256 aa = a;\n            uint256 xn = 1;\n\n            if (aa >= (1 << 128)) {\n                aa >>= 128;\n                xn <<= 64;\n            }\n            if (aa >= (1 << 64)) {\n                aa >>= 64;\n                xn <<= 32;\n            }\n            if (aa >= (1 << 32)) {\n                aa >>= 32;\n                xn <<= 16;\n            }\n            if (aa >= (1 << 16)) {\n                aa >>= 16;\n                xn <<= 8;\n            }\n            if (aa >= (1 << 8)) {\n                aa >>= 8;\n                xn <<= 4;\n            }\n            if (aa >= (1 << 4)) {\n                aa >>= 4;\n                xn <<= 2;\n            }\n            if (aa >= (1 << 2)) {\n                xn <<= 1;\n            }\n\n            // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).\n            //\n            // We can refine our estimation by noticing that the middle of that interval minimizes the error.\n            // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).\n            // This is going to be our x_0 (and ε_0)\n            xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)\n\n            // From here, Newton's method give us:\n            // x_{n+1} = (x_n + a / x_n) / 2\n            //\n            // One should note that:\n            // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a\n            //              = ((x_n² + a) / (2 * x_n))² - a\n            //              = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a\n            //              = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)\n            //              = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)\n            //              = (x_n² - a)² / (2 * x_n)²\n            //              = ((x_n² - a) / (2 * x_n))²\n            //              ≥ 0\n            // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n\n            //\n            // This gives us the proof of quadratic convergence of the sequence:\n            // ε_{n+1} = | x_{n+1} - sqrt(a) |\n            //         = | (x_n + a / x_n) / 2 - sqrt(a) |\n            //         = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |\n            //         = | (x_n - sqrt(a))² / (2 * x_n) |\n            //         = | ε_n² / (2 * x_n) |\n            //         = ε_n² / | (2 * x_n) |\n            //\n            // For the first iteration, we have a special case where x_0 is known:\n            // ε_1 = ε_0² / | (2 * x_0) |\n            //     ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))\n            //     ≤ 2**(2*e-4) / (3 * 2**(e-1))\n            //     ≤ 2**(e-3) / 3\n            //     ≤ 2**(e-3-log2(3))\n            //     ≤ 2**(e-4.5)\n            //\n            // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:\n            // ε_{n+1} = ε_n² / | (2 * x_n) |\n            //         ≤ (2**(e-k))² / (2 * 2**(e-1))\n            //         ≤ 2**(2*e-2*k) / 2**e\n            //         ≤ 2**(e-2*k)\n            xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5)  -- special case, see above\n            xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9)    -- general case with k = 4.5\n            xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18)   -- general case with k = 9\n            xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36)   -- general case with k = 18\n            xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72)   -- general case with k = 36\n            xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144)  -- general case with k = 72\n\n            // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision\n            // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either\n            // sqrt(a) or sqrt(a) + 1.\n            return xn - SafeCast.toUint(xn > a / xn);\n        }\n    }\n\n    /**\n     * @dev Calculates sqrt(a), following the selected rounding direction.\n     */\n    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = sqrt(a);\n            return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 2 of a positive value rounded towards zero.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 x) internal pure returns (uint256 r) {\n        // If value has upper 128 bits set, log2 result is at least 128\n        r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n        // If upper 64 bits of 128-bit half set, add 64 to result\n        r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n        // If upper 32 bits of 64-bit half set, add 32 to result\n        r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n        // If upper 16 bits of 32-bit half set, add 16 to result\n        r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n        // If upper 8 bits of 16-bit half set, add 8 to result\n        r |= SafeCast.toUint((x >> r) > 0xff) << 3;\n        // If upper 4 bits of 8-bit half set, add 4 to result\n        r |= SafeCast.toUint((x >> r) > 0xf) << 2;\n\n        // Shifts value right by the current result and use it as an index into this lookup table:\n        //\n        // | x (4 bits) |  index  | table[index] = MSB position |\n        // |------------|---------|-----------------------------|\n        // |    0000    |    0    |        table[0] = 0         |\n        // |    0001    |    1    |        table[1] = 0         |\n        // |    0010    |    2    |        table[2] = 1         |\n        // |    0011    |    3    |        table[3] = 1         |\n        // |    0100    |    4    |        table[4] = 2         |\n        // |    0101    |    5    |        table[5] = 2         |\n        // |    0110    |    6    |        table[6] = 2         |\n        // |    0111    |    7    |        table[7] = 2         |\n        // |    1000    |    8    |        table[8] = 3         |\n        // |    1001    |    9    |        table[9] = 3         |\n        // |    1010    |   10    |        table[10] = 3        |\n        // |    1011    |   11    |        table[11] = 3        |\n        // |    1100    |   12    |        table[12] = 3        |\n        // |    1101    |   13    |        table[13] = 3        |\n        // |    1110    |   14    |        table[14] = 3        |\n        // |    1111    |   15    |        table[15] = 3        |\n        //\n        // The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the first 16 bytes (most significant half).\n        assembly (\"memory-safe\") {\n            r := or(r, byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000))\n        }\n    }\n\n    /**\n     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log2(value);\n            return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 10 of a positive value rounded towards zero.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >= 10 ** 64) {\n                value /= 10 ** 64;\n                result += 64;\n            }\n            if (value >= 10 ** 32) {\n                value /= 10 ** 32;\n                result += 32;\n            }\n            if (value >= 10 ** 16) {\n                value /= 10 ** 16;\n                result += 16;\n            }\n            if (value >= 10 ** 8) {\n                value /= 10 ** 8;\n                result += 8;\n            }\n            if (value >= 10 ** 4) {\n                value /= 10 ** 4;\n                result += 4;\n            }\n            if (value >= 10 ** 2) {\n                value /= 10 ** 2;\n                result += 2;\n            }\n            if (value >= 10 ** 1) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log10(value);\n            return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 256 of a positive value rounded towards zero.\n     * Returns 0 if given 0.\n     *\n     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n     */\n    function log256(uint256 x) internal pure returns (uint256 r) {\n        // If value has upper 128 bits set, log2 result is at least 128\n        r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n        // If upper 64 bits of 128-bit half set, add 64 to result\n        r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n        // If upper 32 bits of 64-bit half set, add 32 to result\n        r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n        // If upper 16 bits of 32-bit half set, add 16 to result\n        r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n        // Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8\n        return (r >> 3) | SafeCast.toUint((x >> r) > 0xff);\n    }\n\n    /**\n     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log256(value);\n            return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);\n        }\n    }\n\n    /**\n     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n     */\n    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n        return uint8(rounding) % 2 == 1;\n    }\n\n    /**\n     * @dev Counts the number of leading zero bits in a uint256.\n     */\n    function clz(uint256 x) internal pure returns (uint256) {\n        return ternary(x == 0, 256, 255 - log2(x));\n    }\n}\n"},"npm/@openzeppelin/contracts@5.6.1/utils/math/SafeCast.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.6.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX/bool casting operators with added overflow\n * checks.\n *\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\n * easily result in undesired exploitation or bugs, since developers usually\n * assume that overflows raise errors. `SafeCast` restores this intuition by\n * reverting the transaction when such an operation overflows.\n *\n * Using this library instead of the unchecked operations eliminates an entire\n * class of bugs, so it's recommended to use it always.\n */\nlibrary SafeCast {\n    /**\n     * @dev Value doesn't fit in a uint of `bits` size.\n     */\n    error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\n\n    /**\n     * @dev An int value doesn't fit in a uint of `bits` size.\n     */\n    error SafeCastOverflowedIntToUint(int256 value);\n\n    /**\n     * @dev Value doesn't fit in an int of `bits` size.\n     */\n    error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\n\n    /**\n     * @dev A uint value doesn't fit in an int of `bits` size.\n     */\n    error SafeCastOverflowedUintToInt(uint256 value);\n\n    /**\n     * @dev Returns the downcasted uint248 from uint256, reverting on\n     * overflow (when the input is greater than largest uint248).\n     *\n     * Counterpart to Solidity's `uint248` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 248 bits\n     */\n    function toUint248(uint256 value) internal pure returns (uint248) {\n        if (value > type(uint248).max) {\n            revert SafeCastOverflowedUintDowncast(248, value);\n        }\n        return uint248(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint240 from uint256, reverting on\n     * overflow (when the input is greater than largest uint240).\n     *\n     * Counterpart to Solidity's `uint240` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 240 bits\n     */\n    function toUint240(uint256 value) internal pure returns (uint240) {\n        if (value > type(uint240).max) {\n            revert SafeCastOverflowedUintDowncast(240, value);\n        }\n        return uint240(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint232 from uint256, reverting on\n     * overflow (when the input is greater than largest uint232).\n     *\n     * Counterpart to Solidity's `uint232` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 232 bits\n     */\n    function toUint232(uint256 value) internal pure returns (uint232) {\n        if (value > type(uint232).max) {\n            revert SafeCastOverflowedUintDowncast(232, value);\n        }\n        return uint232(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint224 from uint256, reverting on\n     * overflow (when the input is greater than largest uint224).\n     *\n     * Counterpart to Solidity's `uint224` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 224 bits\n     */\n    function toUint224(uint256 value) internal pure returns (uint224) {\n        if (value > type(uint224).max) {\n            revert SafeCastOverflowedUintDowncast(224, value);\n        }\n        return uint224(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint216 from uint256, reverting on\n     * overflow (when the input is greater than largest uint216).\n     *\n     * Counterpart to Solidity's `uint216` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 216 bits\n     */\n    function toUint216(uint256 value) internal pure returns (uint216) {\n        if (value > type(uint216).max) {\n            revert SafeCastOverflowedUintDowncast(216, value);\n        }\n        return uint216(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint208 from uint256, reverting on\n     * overflow (when the input is greater than largest uint208).\n     *\n     * Counterpart to Solidity's `uint208` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 208 bits\n     */\n    function toUint208(uint256 value) internal pure returns (uint208) {\n        if (value > type(uint208).max) {\n            revert SafeCastOverflowedUintDowncast(208, value);\n        }\n        return uint208(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint200 from uint256, reverting on\n     * overflow (when the input is greater than largest uint200).\n     *\n     * Counterpart to Solidity's `uint200` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 200 bits\n     */\n    function toUint200(uint256 value) internal pure returns (uint200) {\n        if (value > type(uint200).max) {\n            revert SafeCastOverflowedUintDowncast(200, value);\n        }\n        return uint200(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint192 from uint256, reverting on\n     * overflow (when the input is greater than largest uint192).\n     *\n     * Counterpart to Solidity's `uint192` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 192 bits\n     */\n    function toUint192(uint256 value) internal pure returns (uint192) {\n        if (value > type(uint192).max) {\n            revert SafeCastOverflowedUintDowncast(192, value);\n        }\n        return uint192(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint184 from uint256, reverting on\n     * overflow (when the input is greater than largest uint184).\n     *\n     * Counterpart to Solidity's `uint184` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 184 bits\n     */\n    function toUint184(uint256 value) internal pure returns (uint184) {\n        if (value > type(uint184).max) {\n            revert SafeCastOverflowedUintDowncast(184, value);\n        }\n        return uint184(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint176 from uint256, reverting on\n     * overflow (when the input is greater than largest uint176).\n     *\n     * Counterpart to Solidity's `uint176` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 176 bits\n     */\n    function toUint176(uint256 value) internal pure returns (uint176) {\n        if (value > type(uint176).max) {\n            revert SafeCastOverflowedUintDowncast(176, value);\n        }\n        return uint176(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint168 from uint256, reverting on\n     * overflow (when the input is greater than largest uint168).\n     *\n     * Counterpart to Solidity's `uint168` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 168 bits\n     */\n    function toUint168(uint256 value) internal pure returns (uint168) {\n        if (value > type(uint168).max) {\n            revert SafeCastOverflowedUintDowncast(168, value);\n        }\n        return uint168(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint160 from uint256, reverting on\n     * overflow (when the input is greater than largest uint160).\n     *\n     * Counterpart to Solidity's `uint160` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 160 bits\n     */\n    function toUint160(uint256 value) internal pure returns (uint160) {\n        if (value > type(uint160).max) {\n            revert SafeCastOverflowedUintDowncast(160, value);\n        }\n        return uint160(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint152 from uint256, reverting on\n     * overflow (when the input is greater than largest uint152).\n     *\n     * Counterpart to Solidity's `uint152` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 152 bits\n     */\n    function toUint152(uint256 value) internal pure returns (uint152) {\n        if (value > type(uint152).max) {\n            revert SafeCastOverflowedUintDowncast(152, value);\n        }\n        return uint152(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint144 from uint256, reverting on\n     * overflow (when the input is greater than largest uint144).\n     *\n     * Counterpart to Solidity's `uint144` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 144 bits\n     */\n    function toUint144(uint256 value) internal pure returns (uint144) {\n        if (value > type(uint144).max) {\n            revert SafeCastOverflowedUintDowncast(144, value);\n        }\n        return uint144(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint136 from uint256, reverting on\n     * overflow (when the input is greater than largest uint136).\n     *\n     * Counterpart to Solidity's `uint136` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 136 bits\n     */\n    function toUint136(uint256 value) internal pure returns (uint136) {\n        if (value > type(uint136).max) {\n            revert SafeCastOverflowedUintDowncast(136, value);\n        }\n        return uint136(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint128 from uint256, reverting on\n     * overflow (when the input is greater than largest uint128).\n     *\n     * Counterpart to Solidity's `uint128` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 128 bits\n     */\n    function toUint128(uint256 value) internal pure returns (uint128) {\n        if (value > type(uint128).max) {\n            revert SafeCastOverflowedUintDowncast(128, value);\n        }\n        return uint128(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint120 from uint256, reverting on\n     * overflow (when the input is greater than largest uint120).\n     *\n     * Counterpart to Solidity's `uint120` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 120 bits\n     */\n    function toUint120(uint256 value) internal pure returns (uint120) {\n        if (value > type(uint120).max) {\n            revert SafeCastOverflowedUintDowncast(120, value);\n        }\n        return uint120(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint112 from uint256, reverting on\n     * overflow (when the input is greater than largest uint112).\n     *\n     * Counterpart to Solidity's `uint112` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 112 bits\n     */\n    function toUint112(uint256 value) internal pure returns (uint112) {\n        if (value > type(uint112).max) {\n            revert SafeCastOverflowedUintDowncast(112, value);\n        }\n        return uint112(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint104 from uint256, reverting on\n     * overflow (when the input is greater than largest uint104).\n     *\n     * Counterpart to Solidity's `uint104` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 104 bits\n     */\n    function toUint104(uint256 value) internal pure returns (uint104) {\n        if (value > type(uint104).max) {\n            revert SafeCastOverflowedUintDowncast(104, value);\n        }\n        return uint104(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint96 from uint256, reverting on\n     * overflow (when the input is greater than largest uint96).\n     *\n     * Counterpart to Solidity's `uint96` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 96 bits\n     */\n    function toUint96(uint256 value) internal pure returns (uint96) {\n        if (value > type(uint96).max) {\n            revert SafeCastOverflowedUintDowncast(96, value);\n        }\n        return uint96(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint88 from uint256, reverting on\n     * overflow (when the input is greater than largest uint88).\n     *\n     * Counterpart to Solidity's `uint88` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 88 bits\n     */\n    function toUint88(uint256 value) internal pure returns (uint88) {\n        if (value > type(uint88).max) {\n            revert SafeCastOverflowedUintDowncast(88, value);\n        }\n        return uint88(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint80 from uint256, reverting on\n     * overflow (when the input is greater than largest uint80).\n     *\n     * Counterpart to Solidity's `uint80` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 80 bits\n     */\n    function toUint80(uint256 value) internal pure returns (uint80) {\n        if (value > type(uint80).max) {\n            revert SafeCastOverflowedUintDowncast(80, value);\n        }\n        return uint80(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint72 from uint256, reverting on\n     * overflow (when the input is greater than largest uint72).\n     *\n     * Counterpart to Solidity's `uint72` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 72 bits\n     */\n    function toUint72(uint256 value) internal pure returns (uint72) {\n        if (value > type(uint72).max) {\n            revert SafeCastOverflowedUintDowncast(72, value);\n        }\n        return uint72(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint64 from uint256, reverting on\n     * overflow (when the input is greater than largest uint64).\n     *\n     * Counterpart to Solidity's `uint64` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 64 bits\n     */\n    function toUint64(uint256 value) internal pure returns (uint64) {\n        if (value > type(uint64).max) {\n            revert SafeCastOverflowedUintDowncast(64, value);\n        }\n        return uint64(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint56 from uint256, reverting on\n     * overflow (when the input is greater than largest uint56).\n     *\n     * Counterpart to Solidity's `uint56` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 56 bits\n     */\n    function toUint56(uint256 value) internal pure returns (uint56) {\n        if (value > type(uint56).max) {\n            revert SafeCastOverflowedUintDowncast(56, value);\n        }\n        return uint56(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint48 from uint256, reverting on\n     * overflow (when the input is greater than largest uint48).\n     *\n     * Counterpart to Solidity's `uint48` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 48 bits\n     */\n    function toUint48(uint256 value) internal pure returns (uint48) {\n        if (value > type(uint48).max) {\n            revert SafeCastOverflowedUintDowncast(48, value);\n        }\n        return uint48(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint40 from uint256, reverting on\n     * overflow (when the input is greater than largest uint40).\n     *\n     * Counterpart to Solidity's `uint40` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 40 bits\n     */\n    function toUint40(uint256 value) internal pure returns (uint40) {\n        if (value > type(uint40).max) {\n            revert SafeCastOverflowedUintDowncast(40, value);\n        }\n        return uint40(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint32 from uint256, reverting on\n     * overflow (when the input is greater than largest uint32).\n     *\n     * Counterpart to Solidity's `uint32` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 32 bits\n     */\n    function toUint32(uint256 value) internal pure returns (uint32) {\n        if (value > type(uint32).max) {\n            revert SafeCastOverflowedUintDowncast(32, value);\n        }\n        return uint32(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint24 from uint256, reverting on\n     * overflow (when the input is greater than largest uint24).\n     *\n     * Counterpart to Solidity's `uint24` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 24 bits\n     */\n    function toUint24(uint256 value) internal pure returns (uint24) {\n        if (value > type(uint24).max) {\n            revert SafeCastOverflowedUintDowncast(24, value);\n        }\n        return uint24(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint16 from uint256, reverting on\n     * overflow (when the input is greater than largest uint16).\n     *\n     * Counterpart to Solidity's `uint16` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 16 bits\n     */\n    function toUint16(uint256 value) internal pure returns (uint16) {\n        if (value > type(uint16).max) {\n            revert SafeCastOverflowedUintDowncast(16, value);\n        }\n        return uint16(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint8 from uint256, reverting on\n     * overflow (when the input is greater than largest uint8).\n     *\n     * Counterpart to Solidity's `uint8` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 8 bits\n     */\n    function toUint8(uint256 value) internal pure returns (uint8) {\n        if (value > type(uint8).max) {\n            revert SafeCastOverflowedUintDowncast(8, value);\n        }\n        return uint8(value);\n    }\n\n    /**\n     * @dev Converts a signed int256 into an unsigned uint256.\n     *\n     * Requirements:\n     *\n     * - input must be greater than or equal to 0.\n     */\n    function toUint256(int256 value) internal pure returns (uint256) {\n        if (value < 0) {\n            revert SafeCastOverflowedIntToUint(value);\n        }\n        return uint256(value);\n    }\n\n    /**\n     * @dev Returns the downcasted int248 from int256, reverting on\n     * overflow (when the input is less than smallest int248 or\n     * greater than largest int248).\n     *\n     * Counterpart to Solidity's `int248` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 248 bits\n     */\n    function toInt248(int256 value) internal pure returns (int248 downcasted) {\n        downcasted = int248(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(248, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int240 from int256, reverting on\n     * overflow (when the input is less than smallest int240 or\n     * greater than largest int240).\n     *\n     * Counterpart to Solidity's `int240` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 240 bits\n     */\n    function toInt240(int256 value) internal pure returns (int240 downcasted) {\n        downcasted = int240(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(240, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int232 from int256, reverting on\n     * overflow (when the input is less than smallest int232 or\n     * greater than largest int232).\n     *\n     * Counterpart to Solidity's `int232` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 232 bits\n     */\n    function toInt232(int256 value) internal pure returns (int232 downcasted) {\n        downcasted = int232(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(232, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int224 from int256, reverting on\n     * overflow (when the input is less than smallest int224 or\n     * greater than largest int224).\n     *\n     * Counterpart to Solidity's `int224` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 224 bits\n     */\n    function toInt224(int256 value) internal pure returns (int224 downcasted) {\n        downcasted = int224(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(224, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int216 from int256, reverting on\n     * overflow (when the input is less than smallest int216 or\n     * greater than largest int216).\n     *\n     * Counterpart to Solidity's `int216` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 216 bits\n     */\n    function toInt216(int256 value) internal pure returns (int216 downcasted) {\n        downcasted = int216(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(216, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int208 from int256, reverting on\n     * overflow (when the input is less than smallest int208 or\n     * greater than largest int208).\n     *\n     * Counterpart to Solidity's `int208` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 208 bits\n     */\n    function toInt208(int256 value) internal pure returns (int208 downcasted) {\n        downcasted = int208(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(208, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int200 from int256, reverting on\n     * overflow (when the input is less than smallest int200 or\n     * greater than largest int200).\n     *\n     * Counterpart to Solidity's `int200` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 200 bits\n     */\n    function toInt200(int256 value) internal pure returns (int200 downcasted) {\n        downcasted = int200(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(200, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int192 from int256, reverting on\n     * overflow (when the input is less than smallest int192 or\n     * greater than largest int192).\n     *\n     * Counterpart to Solidity's `int192` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 192 bits\n     */\n    function toInt192(int256 value) internal pure returns (int192 downcasted) {\n        downcasted = int192(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(192, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int184 from int256, reverting on\n     * overflow (when the input is less than smallest int184 or\n     * greater than largest int184).\n     *\n     * Counterpart to Solidity's `int184` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 184 bits\n     */\n    function toInt184(int256 value) internal pure returns (int184 downcasted) {\n        downcasted = int184(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(184, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int176 from int256, reverting on\n     * overflow (when the input is less than smallest int176 or\n     * greater than largest int176).\n     *\n     * Counterpart to Solidity's `int176` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 176 bits\n     */\n    function toInt176(int256 value) internal pure returns (int176 downcasted) {\n        downcasted = int176(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(176, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int168 from int256, reverting on\n     * overflow (when the input is less than smallest int168 or\n     * greater than largest int168).\n     *\n     * Counterpart to Solidity's `int168` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 168 bits\n     */\n    function toInt168(int256 value) internal pure returns (int168 downcasted) {\n        downcasted = int168(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(168, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int160 from int256, reverting on\n     * overflow (when the input is less than smallest int160 or\n     * greater than largest int160).\n     *\n     * Counterpart to Solidity's `int160` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 160 bits\n     */\n    function toInt160(int256 value) internal pure returns (int160 downcasted) {\n        downcasted = int160(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(160, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int152 from int256, reverting on\n     * overflow (when the input is less than smallest int152 or\n     * greater than largest int152).\n     *\n     * Counterpart to Solidity's `int152` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 152 bits\n     */\n    function toInt152(int256 value) internal pure returns (int152 downcasted) {\n        downcasted = int152(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(152, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int144 from int256, reverting on\n     * overflow (when the input is less than smallest int144 or\n     * greater than largest int144).\n     *\n     * Counterpart to Solidity's `int144` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 144 bits\n     */\n    function toInt144(int256 value) internal pure returns (int144 downcasted) {\n        downcasted = int144(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(144, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int136 from int256, reverting on\n     * overflow (when the input is less than smallest int136 or\n     * greater than largest int136).\n     *\n     * Counterpart to Solidity's `int136` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 136 bits\n     */\n    function toInt136(int256 value) internal pure returns (int136 downcasted) {\n        downcasted = int136(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(136, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int128 from int256, reverting on\n     * overflow (when the input is less than smallest int128 or\n     * greater than largest int128).\n     *\n     * Counterpart to Solidity's `int128` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 128 bits\n     */\n    function toInt128(int256 value) internal pure returns (int128 downcasted) {\n        downcasted = int128(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(128, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int120 from int256, reverting on\n     * overflow (when the input is less than smallest int120 or\n     * greater than largest int120).\n     *\n     * Counterpart to Solidity's `int120` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 120 bits\n     */\n    function toInt120(int256 value) internal pure returns (int120 downcasted) {\n        downcasted = int120(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(120, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int112 from int256, reverting on\n     * overflow (when the input is less than smallest int112 or\n     * greater than largest int112).\n     *\n     * Counterpart to Solidity's `int112` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 112 bits\n     */\n    function toInt112(int256 value) internal pure returns (int112 downcasted) {\n        downcasted = int112(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(112, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int104 from int256, reverting on\n     * overflow (when the input is less than smallest int104 or\n     * greater than largest int104).\n     *\n     * Counterpart to Solidity's `int104` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 104 bits\n     */\n    function toInt104(int256 value) internal pure returns (int104 downcasted) {\n        downcasted = int104(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(104, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int96 from int256, reverting on\n     * overflow (when the input is less than smallest int96 or\n     * greater than largest int96).\n     *\n     * Counterpart to Solidity's `int96` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 96 bits\n     */\n    function toInt96(int256 value) internal pure returns (int96 downcasted) {\n        downcasted = int96(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(96, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int88 from int256, reverting on\n     * overflow (when the input is less than smallest int88 or\n     * greater than largest int88).\n     *\n     * Counterpart to Solidity's `int88` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 88 bits\n     */\n    function toInt88(int256 value) internal pure returns (int88 downcasted) {\n        downcasted = int88(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(88, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int80 from int256, reverting on\n     * overflow (when the input is less than smallest int80 or\n     * greater than largest int80).\n     *\n     * Counterpart to Solidity's `int80` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 80 bits\n     */\n    function toInt80(int256 value) internal pure returns (int80 downcasted) {\n        downcasted = int80(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(80, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int72 from int256, reverting on\n     * overflow (when the input is less than smallest int72 or\n     * greater than largest int72).\n     *\n     * Counterpart to Solidity's `int72` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 72 bits\n     */\n    function toInt72(int256 value) internal pure returns (int72 downcasted) {\n        downcasted = int72(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(72, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int64 from int256, reverting on\n     * overflow (when the input is less than smallest int64 or\n     * greater than largest int64).\n     *\n     * Counterpart to Solidity's `int64` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 64 bits\n     */\n    function toInt64(int256 value) internal pure returns (int64 downcasted) {\n        downcasted = int64(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(64, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int56 from int256, reverting on\n     * overflow (when the input is less than smallest int56 or\n     * greater than largest int56).\n     *\n     * Counterpart to Solidity's `int56` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 56 bits\n     */\n    function toInt56(int256 value) internal pure returns (int56 downcasted) {\n        downcasted = int56(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(56, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int48 from int256, reverting on\n     * overflow (when the input is less than smallest int48 or\n     * greater than largest int48).\n     *\n     * Counterpart to Solidity's `int48` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 48 bits\n     */\n    function toInt48(int256 value) internal pure returns (int48 downcasted) {\n        downcasted = int48(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(48, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int40 from int256, reverting on\n     * overflow (when the input is less than smallest int40 or\n     * greater than largest int40).\n     *\n     * Counterpart to Solidity's `int40` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 40 bits\n     */\n    function toInt40(int256 value) internal pure returns (int40 downcasted) {\n        downcasted = int40(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(40, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int32 from int256, reverting on\n     * overflow (when the input is less than smallest int32 or\n     * greater than largest int32).\n     *\n     * Counterpart to Solidity's `int32` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 32 bits\n     */\n    function toInt32(int256 value) internal pure returns (int32 downcasted) {\n        downcasted = int32(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(32, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int24 from int256, reverting on\n     * overflow (when the input is less than smallest int24 or\n     * greater than largest int24).\n     *\n     * Counterpart to Solidity's `int24` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 24 bits\n     */\n    function toInt24(int256 value) internal pure returns (int24 downcasted) {\n        downcasted = int24(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(24, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int16 from int256, reverting on\n     * overflow (when the input is less than smallest int16 or\n     * greater than largest int16).\n     *\n     * Counterpart to Solidity's `int16` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 16 bits\n     */\n    function toInt16(int256 value) internal pure returns (int16 downcasted) {\n        downcasted = int16(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(16, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int8 from int256, reverting on\n     * overflow (when the input is less than smallest int8 or\n     * greater than largest int8).\n     *\n     * Counterpart to Solidity's `int8` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 8 bits\n     */\n    function toInt8(int256 value) internal pure returns (int8 downcasted) {\n        downcasted = int8(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(8, value);\n        }\n    }\n\n    /**\n     * @dev Converts an unsigned uint256 into a signed int256.\n     *\n     * Requirements:\n     *\n     * - input must be less than or equal to maxInt256.\n     */\n    function toInt256(uint256 value) internal pure returns (int256) {\n        // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive\n        if (value > uint256(type(int256).max)) {\n            revert SafeCastOverflowedUintToInt(value);\n        }\n        return int256(value);\n    }\n\n    /**\n     * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.\n     */\n    function toUint(bool b) internal pure returns (uint256 u) {\n        assembly (\"memory-safe\") {\n            u := iszero(iszero(b))\n        }\n    }\n}\n"},"npm/@openzeppelin/contracts@5.6.1/utils/math/SignedMath.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.20;\n\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n    /**\n     * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n     *\n     * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n     * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n     * one branch when needed, making this function more expensive.\n     */\n    function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) {\n        unchecked {\n            // branchless ternary works because:\n            // b ^ (a ^ b) == a\n            // b ^ 0 == b\n            return b ^ ((a ^ b) * int256(SafeCast.toUint(condition)));\n        }\n    }\n\n    /**\n     * @dev Returns the largest of two signed numbers.\n     */\n    function max(int256 a, int256 b) internal pure returns (int256) {\n        return ternary(a > b, a, b);\n    }\n\n    /**\n     * @dev Returns the smallest of two signed numbers.\n     */\n    function min(int256 a, int256 b) internal pure returns (int256) {\n        return ternary(a < b, a, b);\n    }\n\n    /**\n     * @dev Returns the average of two signed numbers without overflow.\n     * The result is rounded towards zero.\n     */\n    function average(int256 a, int256 b) internal pure returns (int256) {\n        // Formula from the book \"Hacker's Delight\"\n        int256 x = (a & b) + ((a ^ b) >> 1);\n        return x + (int256(uint256(x) >> 255) & (a ^ b));\n    }\n\n    /**\n     * @dev Returns the absolute unsigned value of a signed value.\n     */\n    function abs(int256 n) internal pure returns (uint256) {\n        unchecked {\n            // Formula from the \"Bit Twiddling Hacks\" by Sean Eron Anderson.\n            // Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift,\n            // taking advantage of the most significant (or \"sign\" bit) in two's complement representation.\n            // This opcode adds new most significant bits set to the value of the previous most significant bit. As a result,\n            // the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative).\n            int256 mask = n >> 255;\n\n            // A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it.\n            return uint256((n + mask) ^ mask);\n        }\n    }\n}\n"},"npm/@openzeppelin/contracts@5.6.1/utils/Panic.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Helper library for emitting standardized panic codes.\n *\n * ```solidity\n * contract Example {\n *      using Panic for uint256;\n *\n *      // Use any of the declared internal constants\n *      function foo() { Panic.GENERIC.panic(); }\n *\n *      // Alternatively\n *      function foo() { Panic.panic(Panic.GENERIC); }\n * }\n * ```\n *\n * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].\n *\n * _Available since v5.1._\n */\n// slither-disable-next-line unused-state\nlibrary Panic {\n    /// @dev generic / unspecified error\n    uint256 internal constant GENERIC = 0x00;\n    /// @dev used by the assert() builtin\n    uint256 internal constant ASSERT = 0x01;\n    /// @dev arithmetic underflow or overflow\n    uint256 internal constant UNDER_OVERFLOW = 0x11;\n    /// @dev division or modulo by zero\n    uint256 internal constant DIVISION_BY_ZERO = 0x12;\n    /// @dev enum conversion error\n    uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;\n    /// @dev invalid encoding in storage\n    uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;\n    /// @dev empty array pop\n    uint256 internal constant EMPTY_ARRAY_POP = 0x31;\n    /// @dev array out of bounds access\n    uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;\n    /// @dev resource error (too large allocation or too large array)\n    uint256 internal constant RESOURCE_ERROR = 0x41;\n    /// @dev calling invalid internal function\n    uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;\n\n    /// @dev Reverts with a panic code. Recommended to use with\n    /// the internal constants with predefined codes.\n    function panic(uint256 code) internal pure {\n        assembly (\"memory-safe\") {\n            mstore(0x00, 0x4e487b71)\n            mstore(0x20, code)\n            revert(0x1c, 0x24)\n        }\n    }\n}\n"},"npm/@openzeppelin/contracts@5.6.1/utils/Strings.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.6.0) (utils/Strings.sol)\n\npragma solidity ^0.8.24;\n\nimport {Math} from \"./math/Math.sol\";\nimport {SafeCast} from \"./math/SafeCast.sol\";\nimport {SignedMath} from \"./math/SignedMath.sol\";\nimport {Bytes} from \"./Bytes.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n    using SafeCast for *;\n\n    bytes16 private constant HEX_DIGITS = \"0123456789abcdef\";\n    uint8 private constant ADDRESS_LENGTH = 20;\n    uint256 private constant SPECIAL_CHARS_LOOKUP =\n        0xffffffff | // first 32 bits corresponding to the control characters (U+0000 to U+001F)\n            (1 << 0x22) | // double quote\n            (1 << 0x5c); // backslash\n\n    /**\n     * @dev The `value` string doesn't fit in the specified `length`.\n     */\n    error StringsInsufficientHexLength(uint256 value, uint256 length);\n\n    /**\n     * @dev The string being parsed contains characters that are not in scope of the given base.\n     */\n    error StringsInvalidChar();\n\n    /**\n     * @dev The string being parsed is not a properly formatted address.\n     */\n    error StringsInvalidAddressFormat();\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n     */\n    function toString(uint256 value) internal pure returns (string memory) {\n        unchecked {\n            uint256 length = Math.log10(value) + 1;\n            string memory buffer = new string(length);\n            uint256 ptr;\n            assembly (\"memory-safe\") {\n                ptr := add(add(buffer, 0x20), length)\n            }\n            while (true) {\n                ptr--;\n                assembly (\"memory-safe\") {\n                    mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\n                }\n                value /= 10;\n                if (value == 0) break;\n            }\n            return buffer;\n        }\n    }\n\n    /**\n     * @dev Converts a `int256` to its ASCII `string` decimal representation.\n     */\n    function toStringSigned(int256 value) internal pure returns (string memory) {\n        return string.concat(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value)));\n    }\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n     */\n    function toHexString(uint256 value) internal pure returns (string memory) {\n        unchecked {\n            return toHexString(value, Math.log256(value) + 1);\n        }\n    }\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n     */\n    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n        uint256 localValue = value;\n        bytes memory buffer = new bytes(2 * length + 2);\n        buffer[0] = \"0\";\n        buffer[1] = \"x\";\n        for (uint256 i = 2 * length + 1; i > 1; --i) {\n            buffer[i] = HEX_DIGITS[localValue & 0xf];\n            localValue >>= 4;\n        }\n        if (localValue != 0) {\n            revert StringsInsufficientHexLength(value, length);\n        }\n        return string(buffer);\n    }\n\n    /**\n     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\n     * representation.\n     */\n    function toHexString(address addr) internal pure returns (string memory) {\n        return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\n    }\n\n    /**\n     * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal\n     * representation, according to EIP-55.\n     */\n    function toChecksumHexString(address addr) internal pure returns (string memory) {\n        bytes memory buffer = bytes(toHexString(addr));\n\n        // hash the hex part of buffer (skip length + 2 bytes, length 40)\n        uint256 hashValue;\n        assembly (\"memory-safe\") {\n            hashValue := shr(96, keccak256(add(buffer, 0x22), 40))\n        }\n\n        for (uint256 i = 41; i > 1; --i) {\n            // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)\n            if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {\n                // case shift by xoring with 0x20\n                buffer[i] ^= 0x20;\n            }\n            hashValue >>= 4;\n        }\n        return string(buffer);\n    }\n\n    /**\n     * @dev Converts a `bytes` buffer to its ASCII `string` hexadecimal representation.\n     */\n    function toHexString(bytes memory input) internal pure returns (string memory) {\n        unchecked {\n            bytes memory buffer = new bytes(2 * input.length + 2);\n            buffer[0] = \"0\";\n            buffer[1] = \"x\";\n            for (uint256 i = 0; i < input.length; ++i) {\n                uint8 v = uint8(input[i]);\n                buffer[2 * i + 2] = HEX_DIGITS[v >> 4];\n                buffer[2 * i + 3] = HEX_DIGITS[v & 0xf];\n            }\n            return string(buffer);\n        }\n    }\n\n    /**\n     * @dev Returns true if the two strings are equal.\n     */\n    function equal(string memory a, string memory b) internal pure returns (bool) {\n        return Bytes.equal(bytes(a), bytes(b));\n    }\n\n    /**\n     * @dev Parse a decimal string and returns the value as a `uint256`.\n     *\n     * Requirements:\n     * - The string must be formatted as `[0-9]*`\n     * - The result must fit into an `uint256` type\n     */\n    function parseUint(string memory input) internal pure returns (uint256) {\n        return parseUint(input, 0, bytes(input).length);\n    }\n\n    /**\n     * @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and\n     * `end` (excluded).\n     *\n     * Requirements:\n     * - The substring must be formatted as `[0-9]*`\n     * - The result must fit into an `uint256` type\n     */\n    function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n        (bool success, uint256 value) = tryParseUint(input, begin, end);\n        if (!success) revert StringsInvalidChar();\n        return value;\n    }\n\n    /**\n     * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character.\n     *\n     * NOTE: This function will revert if the result does not fit in a `uint256`.\n     */\n    function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) {\n        return _tryParseUintUncheckedBounds(input, 0, bytes(input).length);\n    }\n\n    /**\n     * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n     * character.\n     *\n     * NOTE: This function will revert if the result does not fit in a `uint256`.\n     */\n    function tryParseUint(\n        string memory input,\n        uint256 begin,\n        uint256 end\n    ) internal pure returns (bool success, uint256 value) {\n        if (end > bytes(input).length || begin > end) return (false, 0);\n        return _tryParseUintUncheckedBounds(input, begin, end);\n    }\n\n    /**\n     * @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n     * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n     */\n    function _tryParseUintUncheckedBounds(\n        string memory input,\n        uint256 begin,\n        uint256 end\n    ) private pure returns (bool success, uint256 value) {\n        bytes memory buffer = bytes(input);\n\n        uint256 result = 0;\n        for (uint256 i = begin; i < end; ++i) {\n            uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n            if (chr > 9) return (false, 0);\n            result *= 10;\n            result += chr;\n        }\n        return (true, result);\n    }\n\n    /**\n     * @dev Parse a decimal string and returns the value as a `int256`.\n     *\n     * Requirements:\n     * - The string must be formatted as `[-+]?[0-9]*`\n     * - The result must fit in an `int256` type.\n     */\n    function parseInt(string memory input) internal pure returns (int256) {\n        return parseInt(input, 0, bytes(input).length);\n    }\n\n    /**\n     * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and\n     * `end` (excluded).\n     *\n     * Requirements:\n     * - The substring must be formatted as `[-+]?[0-9]*`\n     * - The result must fit in an `int256` type.\n     */\n    function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) {\n        (bool success, int256 value) = tryParseInt(input, begin, end);\n        if (!success) revert StringsInvalidChar();\n        return value;\n    }\n\n    /**\n     * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if\n     * the result does not fit in a `int256`.\n     *\n     * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n     */\n    function tryParseInt(string memory input) internal pure returns (bool success, int256 value) {\n        return _tryParseIntUncheckedBounds(input, 0, bytes(input).length);\n    }\n\n    uint256 private constant ABS_MIN_INT256 = 2 ** 255;\n\n    /**\n     * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n     * character or if the result does not fit in a `int256`.\n     *\n     * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n     */\n    function tryParseInt(\n        string memory input,\n        uint256 begin,\n        uint256 end\n    ) internal pure returns (bool success, int256 value) {\n        if (end > bytes(input).length || begin > end) return (false, 0);\n        return _tryParseIntUncheckedBounds(input, begin, end);\n    }\n\n    /**\n     * @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that\n     * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n     */\n    function _tryParseIntUncheckedBounds(\n        string memory input,\n        uint256 begin,\n        uint256 end\n    ) private pure returns (bool success, int256 value) {\n        bytes memory buffer = bytes(input);\n\n        // Check presence of a negative sign.\n        bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n        bool positiveSign = sign == bytes1(\"+\");\n        bool negativeSign = sign == bytes1(\"-\");\n        uint256 offset = (positiveSign || negativeSign).toUint();\n\n        (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end);\n\n        if (absSuccess && absValue < ABS_MIN_INT256) {\n            return (true, negativeSign ? -int256(absValue) : int256(absValue));\n        } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) {\n            return (true, type(int256).min);\n        } else return (false, 0);\n    }\n\n    /**\n     * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as a `uint256`.\n     *\n     * Requirements:\n     * - The string must be formatted as `(0x)?[0-9a-fA-F]*`\n     * - The result must fit in an `uint256` type.\n     */\n    function parseHexUint(string memory input) internal pure returns (uint256) {\n        return parseHexUint(input, 0, bytes(input).length);\n    }\n\n    /**\n     * @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and\n     * `end` (excluded).\n     *\n     * Requirements:\n     * - The substring must be formatted as `(0x)?[0-9a-fA-F]*`\n     * - The result must fit in an `uint256` type.\n     */\n    function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n        (bool success, uint256 value) = tryParseHexUint(input, begin, end);\n        if (!success) revert StringsInvalidChar();\n        return value;\n    }\n\n    /**\n     * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character.\n     *\n     * NOTE: This function will revert if the result does not fit in a `uint256`.\n     */\n    function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) {\n        return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length);\n    }\n\n    /**\n     * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an\n     * invalid character.\n     *\n     * NOTE: This function will revert if the result does not fit in a `uint256`.\n     */\n    function tryParseHexUint(\n        string memory input,\n        uint256 begin,\n        uint256 end\n    ) internal pure returns (bool success, uint256 value) {\n        if (end > bytes(input).length || begin > end) return (false, 0);\n        return _tryParseHexUintUncheckedBounds(input, begin, end);\n    }\n\n    /**\n     * @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n     * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n     */\n    function _tryParseHexUintUncheckedBounds(\n        string memory input,\n        uint256 begin,\n        uint256 end\n    ) private pure returns (bool success, uint256 value) {\n        bytes memory buffer = bytes(input);\n\n        // skip 0x prefix if present\n        bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n        uint256 offset = hasPrefix.toUint() * 2;\n\n        uint256 result = 0;\n        for (uint256 i = begin + offset; i < end; ++i) {\n            uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n            if (chr > 15) return (false, 0);\n            result *= 16;\n            unchecked {\n                // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).\n                // This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked.\n                result += chr;\n            }\n        }\n        return (true, result);\n    }\n\n    /**\n     * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as an `address`.\n     *\n     * Requirements:\n     * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}`\n     */\n    function parseAddress(string memory input) internal pure returns (address) {\n        return parseAddress(input, 0, bytes(input).length);\n    }\n\n    /**\n     * @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and\n     * `end` (excluded).\n     *\n     * Requirements:\n     * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}`\n     */\n    function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) {\n        (bool success, address value) = tryParseAddress(input, begin, end);\n        if (!success) revert StringsInvalidAddressFormat();\n        return value;\n    }\n\n    /**\n     * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly\n     * formatted address. See {parseAddress-string} requirements.\n     */\n    function tryParseAddress(string memory input) internal pure returns (bool success, address value) {\n        return tryParseAddress(input, 0, bytes(input).length);\n    }\n\n    /**\n     * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly\n     * formatted address. See {parseAddress-string-uint256-uint256} requirements.\n     */\n    function tryParseAddress(\n        string memory input,\n        uint256 begin,\n        uint256 end\n    ) internal pure returns (bool success, address value) {\n        if (end > bytes(input).length || begin > end) return (false, address(0));\n\n        bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n        uint256 expectedLength = 40 + hasPrefix.toUint() * 2;\n\n        // check that input is the correct length\n        if (end - begin == expectedLength) {\n            // length guarantees that this does not overflow, and value is at most type(uint160).max\n            (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end);\n            return (s, address(uint160(v)));\n        } else {\n            return (false, address(0));\n        }\n    }\n\n    function _tryParseChr(bytes1 chr) private pure returns (uint8) {\n        uint8 value = uint8(chr);\n\n        // Try to parse `chr`:\n        // - Case 1: [0-9]\n        // - Case 2: [a-f]\n        // - Case 3: [A-F]\n        // - otherwise not supported\n        unchecked {\n            if (value > 47 && value < 58) value -= 48;\n            else if (value > 96 && value < 103) value -= 87;\n            else if (value > 64 && value < 71) value -= 55;\n            else return type(uint8).max;\n        }\n\n        return value;\n    }\n\n    /**\n     * @dev Escape special characters in JSON strings. This can be useful to prevent JSON injection in NFT metadata.\n     *\n     * WARNING: This function should only be used in double quoted JSON strings. Single quotes are not escaped.\n     *\n     * NOTE: This function escapes backslashes (including those in \\uXXXX sequences) and the characters in ranges\n     * defined in section 2.5 of RFC-4627 (U+0000 to U+001F, U+0022 and U+005C). All control characters in U+0000\n     * to U+001F are escaped (\\b, \\t, \\n, \\f, \\r use short form; others use \\u00XX). ECMAScript's `JSON.parse` does\n     * recover escaped unicode characters that are not in this range, but other tooling may provide different results.\n     */\n    function escapeJSON(string memory input) internal pure returns (string memory) {\n        bytes memory buffer = bytes(input);\n\n        // Put output at the FMP. Memory will be reserved later when we figure out the actual length of the escaped\n        // string. All write are done using _unsafeWriteBytesOffset, which avoid the (expensive) length checks for\n        // each character written.\n        bytes memory output;\n        assembly (\"memory-safe\") {\n            output := mload(0x40)\n        }\n        uint256 outputLength = 0;\n\n        for (uint256 i = 0; i < buffer.length; ++i) {\n            uint8 char = uint8(bytes1(_unsafeReadBytesOffset(buffer, i)));\n            if (((SPECIAL_CHARS_LOOKUP & (1 << char)) != 0)) {\n                _unsafeWriteBytesOffset(output, outputLength++, \"\\\\\");\n                if (char == 0x08) _unsafeWriteBytesOffset(output, outputLength++, \"b\");\n                else if (char == 0x09) _unsafeWriteBytesOffset(output, outputLength++, \"t\");\n                else if (char == 0x0a) _unsafeWriteBytesOffset(output, outputLength++, \"n\");\n                else if (char == 0x0c) _unsafeWriteBytesOffset(output, outputLength++, \"f\");\n                else if (char == 0x0d) _unsafeWriteBytesOffset(output, outputLength++, \"r\");\n                else if (char == 0x5c) _unsafeWriteBytesOffset(output, outputLength++, \"\\\\\");\n                else if (char == 0x22) {\n                    // solhint-disable-next-line quotes\n                    _unsafeWriteBytesOffset(output, outputLength++, '\"');\n                } else {\n                    // U+0000 to U+001F without short form: output \\u00XX\n                    _unsafeWriteBytesOffset(output, outputLength++, \"u\");\n                    _unsafeWriteBytesOffset(output, outputLength++, \"0\");\n                    _unsafeWriteBytesOffset(output, outputLength++, \"0\");\n                    _unsafeWriteBytesOffset(output, outputLength++, HEX_DIGITS[char >> 4]);\n                    _unsafeWriteBytesOffset(output, outputLength++, HEX_DIGITS[char & 0x0f]);\n                }\n            } else {\n                _unsafeWriteBytesOffset(output, outputLength++, bytes1(char));\n            }\n        }\n        // write the actual length and reserve memory\n        assembly (\"memory-safe\") {\n            mstore(output, outputLength)\n            mstore(0x40, add(output, add(outputLength, 0x20)))\n        }\n\n        return string(output);\n    }\n\n    /**\n     * @dev Reads a bytes32 from a bytes array without bounds checking.\n     *\n     * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n     * assembly block as such would prevent some optimizations.\n     */\n    function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n        // This is not memory safe in the general case, but all calls to this private function are within bounds.\n        assembly (\"memory-safe\") {\n            value := mload(add(add(buffer, 0x20), offset))\n        }\n    }\n\n    /**\n     * @dev Write a bytes1 to a bytes array without bounds checking.\n     *\n     * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n     * assembly block as such would prevent some optimizations.\n     */\n    function _unsafeWriteBytesOffset(bytes memory buffer, uint256 offset, bytes1 value) private pure {\n        // This is not memory safe in the general case, but all calls to this private function are within bounds.\n        assembly (\"memory-safe\") {\n            mstore8(add(add(buffer, 0x20), offset), shr(248, value))\n        }\n    }\n}\n"},"project/contracts/Chastle.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\nimport \"@openzeppelin/contracts/token/ERC721/ERC721.sol\";\nimport \"@openzeppelin/contracts/token/common/ERC2981.sol\";\nimport \"@openzeppelin/contracts/access/Ownable.sol\";\n\ninterface IAgentRegistry {\n    function balanceOf(address owner) external view returns (uint256);\n}\n\n/// @title CHASTLE — the Royal Court of Proof-of-Work (ERC-721, BNB Chain).\n/// @notice Five thousand seats in one royal court. Rank is not bought and\n///         never drawn: it is PROVEN. A claim presents a nonce whose\n///         keccak256(challengeFor(wallet) || nonce) carries leading zero\n///         bits; the bit count sets the highest royal rank the proof may\n///         take — Pawn 24-27, Rook 28-31, Knight 32-35, Queen 36-39,\n///         King 40+. Unlike a pure band ladder, every rank holds a HARD\n///         SEAT QUOTA (Pawn 2500, Rook 1500, Knight 700, Queen 250,\n///         King 50; the quotas sum exactly to the supply). A proof is\n///         seated at the highest rank at-or-below its band whose seats\n///         remain: overflow from a full rank drops to the next rank down,\n///         so a strong proof never fails merely because its own rank\n///         filled. The one failure case is a proof whose band AND every\n///         rank below it are all full — the remedy is public and fair:\n///         grind a stronger proof for a rank that still has seats.\n///         King seats stay locked until 1,000 units have been claimed;\n///         before that, a King-band proof is seated as Queen.\n///         The proof's TRUE bit count is stored on-chain as the unit's\n///         power, whatever rank it received.\n///         Pricing (per wallet, by claim order): claims 1-2 are the\n///         court's \"FREEMINT 2\" — while the global free quota of 2,000\n///         lasts, the contract charges 0.0002 BNB for each of them; once\n///         the free quota is gone, claims 1-2 price like any other claim.\n///         Claims 3-10 cost a flat 0.0004 BNB. Wallet cap: 10 for life.\n///         All mint fees accrue to the contract and are withdrawable by\n///         the owner in full (no reserve split). Royalty: 5%, fixed at\n///         deployment with no setter. Claiming requires holding a\n///         soulbound Agent ID; the owner can repoint or disable the gate\n///         as a safety valve if the registry ever misbehaves.\n///         Every unit is unique: its portrait is rendered off-chain in\n///         the frozen court style, varying hair, accessories and\n///         expression inside its rank's uniform and colours.\n///         tokenURI(tokenId) is baseURI + tokenId.\ncontract Chastle is ERC721, ERC2981, Ownable {\n    uint256 public constant MAX_SUPPLY = 5000;\n    uint256 public constant MAX_PER_WALLET = 10;\n    uint256 public constant FREE_QUOTA = 2000;\n    uint256 public constant FREE_PRICE = 0.0002 ether;\n    uint256 public constant PAID_PRICE = 0.0004 ether;\n    uint256 public constant KING_UNLOCK_MINTS = 1000;\n\n    // Rank bit thresholds (leading zero bits of the proof hash).\n    uint256 public constant MIN_BITS = 24; // Pawn floor\n    uint256 public constant ROOK_BITS = 28;\n    uint256 public constant KNIGHT_BITS = 32;\n    uint256 public constant QUEEN_BITS = 36;\n    uint256 public constant KING_BITS = 40;\n\n    // Seat quotas per rank (index = class: 0 Pawn, 1 Rook, 2 Knight,\n    // 3 Queen, 4 King). They sum to MAX_SUPPLY exactly.\n    uint256 public constant QUOTA_PAWN = 2500;\n    uint256 public constant QUOTA_ROOK = 1500;\n    uint256 public constant QUOTA_KNIGHT = 700;\n    uint256 public constant QUOTA_QUEEN = 250;\n    uint256 public constant QUOTA_KING = 50;\n\n    // The soulbound Agent ID registry (.ai) whose balance gates claiming.\n    address public agentRegistry = 0x60B9262456dE011F7d15a54CdD8c48bAaa8B022F;\n    bool public agentGateEnabled = true;\n\n    uint256 public totalMinted;\n    uint256 public freeClaimed;\n    // The claim starts CLOSED. The owner opens it with setMintOpen(true)\n    // only after the metadata base URI points at the live service.\n    bool public mintOpen = false;\n\n    // PLACEHOLDER — not a real metadata base. Point this at the live\n    // metadata service with setBaseURI() before the claim opens.\n    string private _baseTokenURI = \"ipfs://CHASTLE_METADATA_BASE/\";\n\n    uint256[5] public classCount; // seats taken per rank\n    mapping(uint256 => uint8) private _classOf; // rank assigned at claim time (fixed forever)\n    mapping(uint256 => uint256) private _proofBits; // true leading zero bits of the claim proof\n    mapping(uint256 => bytes32) private _proofHash; // the full claim proof hash\n    mapping(address => uint256) public mintedBy;\n\n    event UnitClaimed(address indexed minter, uint256 indexed tokenId, uint8 class_, uint256 proofBits);\n    event MintOpenChanged(bool open);\n    event BaseURIChanged(string newBaseURI);\n    event AgentGateChanged(bool enabled, address registry);\n\n    /// @param initialOwner The project wallet. Deployment goes through the\n    ///         deterministic CREATE2 deployment proxy (0x4e59…4956C),\n    ///         because the agentic wallet cannot send a bare creation\n    ///         transaction — so the owner and the royalty receiver are set\n    ///         explicitly here instead of relying on msg.sender.\n    constructor(address initialOwner) ERC721(\"CHASTLE\", \"CHASTLE\") Ownable(initialOwner) {\n        _setDefaultRoyalty(initialOwner, 500); // 5% secondary royalty; no setter exists, so this can never change\n    }\n\n    // ---------------- claim (proof-of-work) ----------------\n\n    /// @notice The challenge a wallet must grind against right now. It\n    ///         rotates after every successful claim because it binds the\n    ///         wallet's claim count.\n    function challengeFor(address wallet) public view returns (bytes32) {\n        return keccak256(abi.encodePacked(address(this), wallet, mintedBy[wallet]));\n    }\n\n    /// @notice Price of the NEXT claim for a wallet: claims 1-2 cost\n    ///         FREE_PRICE while the global free quota lasts, then every\n    ///         claim costs PAID_PRICE.\n    function claimPrice(address wallet) public view returns (uint256) {\n        if (mintedBy[wallet] < 2 && freeClaimed < FREE_QUOTA) return FREE_PRICE;\n        return PAID_PRICE;\n    }\n\n    /// @notice Whether a wallet currently passes the Agent ID gate\n    ///         (always true when the gate is toggled off).\n    function hasAgentId(address wallet) public view returns (bool) {\n        if (!agentGateEnabled) return true;\n        try IAgentRegistry(agentRegistry).balanceOf(wallet) returns (uint256 bal) {\n            return bal > 0;\n        } catch {\n            return false;\n        }\n    }\n\n    /// @notice Claim one unit by presenting a nonce whose\n    ///         keccak256(challengeFor(you) || nonce) has >= MIN_BITS\n    ///         leading zero bits. You are seated at the highest open rank\n    ///         at-or-below your proof's band (King locked until\n    ///         KING_UNLOCK_MINTS total claims).\n    function claim(uint256 nonce) external payable {\n        require(mintOpen, \"mint is closed\");\n        require(hasAgentId(msg.sender), \"Agent ID required\");\n        require(mintedBy[msg.sender] < MAX_PER_WALLET, \"wallet limit\");\n        require(totalMinted < MAX_SUPPLY, \"sold out\");\n        uint256 price = claimPrice(msg.sender);\n        require(msg.value == price, \"wrong fee\");\n\n        bytes32 hash = keccak256(abi.encodePacked(challengeFor(msg.sender), nonce));\n        uint256 bits = _leadingZeroBits(hash);\n        require(bits >= MIN_BITS, \"proof too weak\");\n\n        (uint8 cls, bool seated) = assignClass(bits, totalMinted, classCount);\n        require(seated, \"rank full - grind a stronger proof\");\n\n        if (price == FREE_PRICE) freeClaimed += 1;\n        uint256 tokenId = ++totalMinted;\n        classCount[cls] += 1;\n        _classOf[tokenId] = cls;\n        _proofBits[tokenId] = bits;\n        _proofHash[tokenId] = hash;\n        mintedBy[msg.sender] += 1;\n\n        _safeMint(msg.sender, tokenId);\n        emit UnitClaimed(msg.sender, tokenId, cls, bits);\n    }\n\n    /// @notice The rank band a proof's bit count belongs to, before seat\n    ///         availability and the King lock are considered.\n    function classForBits(uint256 bits) public pure returns (uint8) {\n        if (bits >= KING_BITS) return 4;\n        if (bits >= QUEEN_BITS) return 3;\n        if (bits >= KNIGHT_BITS) return 2;\n        if (bits >= ROOK_BITS) return 1;\n        return 0;\n    }\n\n    /// @notice Seat quota of a rank.\n    function quotaOf(uint8 cls) public pure returns (uint256) {\n        if (cls == 0) return QUOTA_PAWN;\n        if (cls == 1) return QUOTA_ROOK;\n        if (cls == 2) return QUOTA_KNIGHT;\n        if (cls == 3) return QUOTA_QUEEN;\n        return QUOTA_KING;\n    }\n\n    /// @notice Pure seating rule, exposed so anyone can verify it off the\n    ///         live counters: start at the proof's band (capped to Queen\n    ///         while King is locked), then drop rank by rank until a rank\n    ///         with a free seat is found. seated=false when the band and\n    ///         every rank below it are full.\n    function assignClass(uint256 bits, uint256 mintedNow, uint256[5] memory counts)\n        public\n        pure\n        returns (uint8 cls, bool seated)\n    {\n        cls = classForBits(bits);\n        if (cls == 4 && mintedNow < KING_UNLOCK_MINTS) cls = 3;\n        while (counts[cls] >= quotaOf(cls)) {\n            if (cls == 0) return (0, false);\n            cls -= 1;\n        }\n        return (cls, true);\n    }\n\n    /// @notice Whether King seats are unlocked yet (1,000 total claims).\n    function kingUnlocked() public view returns (bool) {\n        return totalMinted >= KING_UNLOCK_MINTS;\n    }\n\n    /// @notice Free-quota seats remaining for claims 1-2.\n    function freeRemaining() public view returns (uint256) {\n        return freeClaimed >= FREE_QUOTA ? 0 : FREE_QUOTA - freeClaimed;\n    }\n\n    function _leadingZeroBits(bytes32 h) internal pure returns (uint256 n) {\n        uint256 x = uint256(h);\n        if (x == 0) return 256;\n        while (x < (1 << 255)) {\n            x <<= 1;\n            n++;\n        }\n    }\n\n    // ---------------- views ----------------\n\n    /// @notice Total units claimed so far. Indexers and marketplaces\n    ///         expect a readable totalSupply().\n    function totalSupply() public view returns (uint256) {\n        return totalMinted;\n    }\n\n    /// @notice The rank a unit was seated at when claimed (fixed forever).\n    function classOf(uint256 tokenId) public view returns (uint8) {\n        _requireOwned(tokenId);\n        return _classOf[tokenId];\n    }\n\n    function className(uint8 cls) public pure returns (string memory) {\n        if (cls == 0) return \"Pawn\";\n        if (cls == 1) return \"Rook\";\n        if (cls == 2) return \"Knight\";\n        if (cls == 3) return \"Queen\";\n        return \"King\";\n    }\n\n    /// @notice The unit's power: the true bit count of its claim proof.\n    function proofBitsOf(uint256 tokenId) public view returns (uint256) {\n        _requireOwned(tokenId);\n        return _proofBits[tokenId];\n    }\n\n    function proofHashOf(uint256 tokenId) public view returns (bytes32) {\n        _requireOwned(tokenId);\n        return _proofHash[tokenId];\n    }\n\n    // ---------------- metadata ----------------\n\n    function baseURI() public view returns (string memory) {\n        return _baseTokenURI;\n    }\n\n    function _baseURI() internal view override returns (string memory) {\n        return _baseTokenURI;\n    }\n\n    // ---------------- owner ----------------\n\n    function setMintOpen(bool open) external onlyOwner {\n        mintOpen = open;\n        emit MintOpenChanged(open);\n    }\n\n    function setBaseURI(string calldata newBaseURI) external onlyOwner {\n        _baseTokenURI = newBaseURI;\n        emit BaseURIChanged(newBaseURI);\n    }\n\n    /// @notice Safety valve for the Agent ID gate: repoint the registry\n    ///         or disable the gate if the registry ever misbehaves.\n    function setAgentGate(bool enabled, address registry) external onlyOwner {\n        agentGateEnabled = enabled;\n        if (registry != address(0)) agentRegistry = registry;\n        emit AgentGateChanged(enabled, agentRegistry);\n    }\n\n    /// @notice Withdraw the full contract balance (all mint fees accrue\n    ///         to the project; there is no reserve split).\n    function withdraw() external onlyOwner {\n        uint256 bal = address(this).balance;\n        require(bal > 0, \"nothing to withdraw\");\n        (bool ok, ) = payable(owner()).call{value: bal}(\"\");\n        require(ok, \"withdraw failed\");\n    }\n\n    function supportsInterface(bytes4 interfaceId)\n        public\n        view\n        override(ERC721, ERC2981)\n        returns (bool)\n    {\n        return super.supportsInterface(interfaceId);\n    }\n}\n"}},"compilation":{"language":"Solidity","compiler":"solc","compilerVersion":"0.8.28+commit.7893614a","compilerSettings":{"viaIR":true,"optimizer":{"runs":200,"enabled":true},"evmVersion":"cancun","remappings":["project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.6.1/"]},"name":"Chastle","fullyQualifiedName":"project/contracts/Chastle.sol:Chastle"},"abi":[{"type":"constructor","inputs":[{"name":"initialOwner","type":"address","internalType":"address"}],"stateMutability":"nonpayable"},{"name":"ERC2981InvalidDefaultRoyalty","type":"error","inputs":[{"name":"numerator","type":"uint256","internalType":"uint256"},{"name":"denominator","type":"uint256","internalType":"uint256"}]},{"name":"ERC2981InvalidDefaultRoyaltyReceiver","type":"error","inputs":[{"name":"receiver","type":"address","internalType":"address"}]},{"name":"ERC2981InvalidTokenRoyalty","type":"error","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"numerator","type":"uint256","internalType":"uint256"},{"name":"denominator","type":"uint256","internalType":"uint256"}]},{"name":"ERC2981InvalidTokenRoyaltyReceiver","type":"error","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"receiver","type":"address","internalType":"address"}]},{"name":"ERC721IncorrectOwner","type":"error","inputs":[{"name":"sender","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"owner","type":"address","internalType":"address"}]},{"name":"ERC721InsufficientApproval","type":"error","inputs":[{"name":"operator","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}]},{"name":"ERC721InvalidApprover","type":"error","inputs":[{"name":"approver","type":"address","internalType":"address"}]},{"name":"ERC721InvalidOperator","type":"error","inputs":[{"name":"operator","type":"address","internalType":"address"}]},{"name":"ERC721InvalidOwner","type":"error","inputs":[{"name":"owner","type":"address","internalType":"address"}]},{"name":"ERC721InvalidReceiver","type":"error","inputs":[{"name":"receiver","type":"address","internalType":"address"}]},{"name":"ERC721InvalidSender","type":"error","inputs":[{"name":"sender","type":"address","internalType":"address"}]},{"name":"ERC721NonexistentToken","type":"error","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}]},{"name":"OwnableInvalidOwner","type":"error","inputs":[{"name":"owner","type":"address","internalType":"address"}]},{"name":"OwnableUnauthorizedAccount","type":"error","inputs":[{"name":"account","type":"address","internalType":"address"}]},{"name":"AgentGateChanged","type":"event","inputs":[{"name":"enabled","type":"bool","indexed":false,"internalType":"bool"},{"name":"registry","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"name":"Approval","type":"event","inputs":[{"name":"owner","type":"address","indexed":true,"internalType":"address"},{"name":"approved","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"name":"ApprovalForAll","type":"event","inputs":[{"name":"owner","type":"address","indexed":true,"internalType":"address"},{"name":"operator","type":"address","indexed":true,"internalType":"address"},{"name":"approved","type":"bool","indexed":false,"internalType":"bool"}],"anonymous":false},{"name":"BaseURIChanged","type":"event","inputs":[{"name":"newBaseURI","type":"string","indexed":false,"internalType":"string"}],"anonymous":false},{"name":"MintOpenChanged","type":"event","inputs":[{"name":"open","type":"bool","indexed":false,"internalType":"bool"}],"anonymous":false},{"name":"OwnershipTransferred","type":"event","inputs":[{"name":"previousOwner","type":"address","indexed":true,"internalType":"address"},{"name":"newOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"Transfer","type":"event","inputs":[{"name":"from","type":"address","indexed":true,"internalType":"address"},{"name":"to","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"name":"UnitClaimed","type":"event","inputs":[{"name":"minter","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"class_","type":"uint8","indexed":false,"internalType":"uint8"},{"name":"proofBits","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"FREE_PRICE","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"FREE_QUOTA","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"KING_BITS","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"KING_UNLOCK_MINTS","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"KNIGHT_BITS","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"MAX_PER_WALLET","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"MAX_SUPPLY","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"MIN_BITS","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"PAID_PRICE","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"QUEEN_BITS","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"QUOTA_KING","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"QUOTA_KNIGHT","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"QUOTA_PAWN","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"QUOTA_QUEEN","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"QUOTA_ROOK","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"ROOK_BITS","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"agentGateEnabled","type":"function","inputs":[],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"agentRegistry","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"approve","type":"function","inputs":[{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"assignClass","type":"function","inputs":[{"name":"bits","type":"uint256","internalType":"uint256"},{"name":"mintedNow","type":"uint256","internalType":"uint256"},{"name":"counts","type":"uint256[5]","internalType":"uint256[5]"}],"outputs":[{"name":"cls","type":"uint8","internalType":"uint8"},{"name":"seated","type":"bool","internalType":"bool"}],"stateMutability":"pure"},{"name":"balanceOf","type":"function","inputs":[{"name":"owner","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"baseURI","type":"function","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"name":"challengeFor","type":"function","inputs":[{"name":"wallet","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"name":"claim","type":"function","inputs":[{"name":"nonce","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"payable"},{"name":"claimPrice","type":"function","inputs":[{"name":"wallet","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"classCount","type":"function","inputs":[{"name":"","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"classForBits","type":"function","inputs":[{"name":"bits","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint8","internalType":"uint8"}],"stateMutability":"pure"},{"name":"className","type":"function","inputs":[{"name":"cls","type":"uint8","internalType":"uint8"}],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"pure"},{"name":"classOf","type":"function","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint8","internalType":"uint8"}],"stateMutability":"view"},{"name":"freeClaimed","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"freeRemaining","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getApproved","type":"function","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"hasAgentId","type":"function","inputs":[{"name":"wallet","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"isApprovedForAll","type":"function","inputs":[{"name":"owner","type":"address","internalType":"address"},{"name":"operator","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"kingUnlocked","type":"function","inputs":[],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"mintOpen","type":"function","inputs":[],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"mintedBy","type":"function","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"name","type":"function","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"name":"owner","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"ownerOf","type":"function","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"proofBitsOf","type":"function","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"proofHashOf","type":"function","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"name":"quotaOf","type":"function","inputs":[{"name":"cls","type":"uint8","internalType":"uint8"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"pure"},{"name":"renounceOwnership","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"royaltyInfo","type":"function","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"salePrice","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"receiver","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"safeTransferFrom","type":"function","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"safeTransferFrom","type":"function","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"data","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setAgentGate","type":"function","inputs":[{"name":"enabled","type":"bool","internalType":"bool"},{"name":"registry","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setApprovalForAll","type":"function","inputs":[{"name":"operator","type":"address","internalType":"address"},{"name":"approved","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setBaseURI","type":"function","inputs":[{"name":"newBaseURI","type":"string","internalType":"string"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setMintOpen","type":"function","inputs":[{"name":"open","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"supportsInterface","type":"function","inputs":[{"name":"interfaceId","type":"bytes4","internalType":"bytes4"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"symbol","type":"function","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"name":"tokenURI","type":"function","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"name":"totalMinted","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"totalSupply","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"transferFrom","type":"function","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"transferOwnership","type":"function","inputs":[{"name":"newOwner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"withdraw","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"}],"metadata":{"compiler":{"version":"0.8.28+commit.7893614a"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"initialOwner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"ERC2981InvalidDefaultRoyalty","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC2981InvalidDefaultRoyaltyReceiver","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"ERC2981InvalidTokenRoyalty","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC2981InvalidTokenRoyaltyReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721IncorrectOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721InsufficientApproval","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC721InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC721InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721InvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC721InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC721InvalidSender","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721NonexistentToken","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"},{"indexed":false,"internalType":"address","name":"registry","type":"address"}],"name":"AgentGateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"newBaseURI","type":"string"}],"name":"BaseURIChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"open","type":"bool"}],"name":"MintOpenChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint8","name":"class_","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"proofBits","type":"uint256"}],"name":"UnitClaimed","type":"event"},{"inputs":[],"name":"FREE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FREE_QUOTA","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"KING_BITS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"KING_UNLOCK_MINTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"KNIGHT_BITS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_BITS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAID_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"QUEEN_BITS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"QUOTA_KING","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"QUOTA_KNIGHT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"QUOTA_PAWN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"QUOTA_QUEEN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"QUOTA_ROOK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROOK_BITS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"agentGateEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"agentRegistry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"bits","type":"uint256"},{"internalType":"uint256","name":"mintedNow","type":"uint256"},{"internalType":"uint256[5]","name":"counts","type":"uint256[5]"}],"name":"assignClass","outputs":[{"internalType":"uint8","name":"cls","type":"uint8"},{"internalType":"bool","name":"seated","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"challengeFor","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"claimPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"classCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"bits","type":"uint256"}],"name":"classForBits","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint8","name":"cls","type":"uint8"}],"name":"className","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"classOf","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeRemaining","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"hasAgentId","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"kingUnlocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintedBy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"proofBitsOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"proofHashOf","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"cls","type":"uint8"}],"name":"quotaOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"},{"internalType":"address","name":"registry","type":"address"}],"name":"setAgentGate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"open","type":"bool"}],"name":"setMintOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}],"devdoc":{"errors":{"ERC2981InvalidDefaultRoyalty(uint256,uint256)":[{"details":"The default royalty set is invalid (eg. (numerator / denominator) >= 1)."}],"ERC2981InvalidDefaultRoyaltyReceiver(address)":[{"details":"The default royalty receiver is invalid."}],"ERC2981InvalidTokenRoyalty(uint256,uint256,uint256)":[{"details":"The royalty set for a specific `tokenId` is invalid (eg. (numerator / denominator) >= 1)."}],"ERC2981InvalidTokenRoyaltyReceiver(uint256,address)":[{"details":"The royalty receiver for `tokenId` is invalid."}],"ERC721IncorrectOwner(address,uint256,address)":[{"details":"Indicates an error related to the ownership over a particular token. Used in transfers.","params":{"owner":"Address of the current owner of a token.","sender":"Address whose tokens are being transferred.","tokenId":"Identifier number of a token."}}],"ERC721InsufficientApproval(address,uint256)":[{"details":"Indicates a failure with the `operator`’s approval. Used in transfers.","params":{"operator":"Address that may be allowed to operate on tokens without being their owner.","tokenId":"Identifier number of a token."}}],"ERC721InvalidApprover(address)":[{"details":"Indicates a failure with the `approver` of a token to be approved. Used in approvals.","params":{"approver":"Address initiating an approval operation."}}],"ERC721InvalidOperator(address)":[{"details":"Indicates a failure with the `operator` to be approved. Used in approvals.","params":{"operator":"Address that may be allowed to operate on tokens without being their owner."}}],"ERC721InvalidOwner(address)":[{"details":"Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-721. Used in balance queries.","params":{"owner":"Address of the current owner of a token."}}],"ERC721InvalidReceiver(address)":[{"details":"Indicates a failure with the token `receiver`. Used in transfers.","params":{"receiver":"Address to which tokens are being transferred."}}],"ERC721InvalidSender(address)":[{"details":"Indicates a failure with the token `sender`. Used in transfers.","params":{"sender":"Address whose tokens are being transferred."}}],"ERC721NonexistentToken(uint256)":[{"details":"Indicates a `tokenId` whose `owner` is the zero address.","params":{"tokenId":"Identifier number of a token."}}],"OwnableInvalidOwner(address)":[{"details":"The owner is not a valid owner account. (eg. `address(0)`)"}],"OwnableUnauthorizedAccount(address)":[{"details":"The caller account is not authorized to perform an operation."}]},"events":{"Approval(address,address,uint256)":{"details":"Emitted when `owner` enables `approved` to manage the `tokenId` token."},"ApprovalForAll(address,address,bool)":{"details":"Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets."},"Transfer(address,address,uint256)":{"details":"Emitted when `tokenId` token is transferred from `from` to `to`."}},"kind":"dev","methods":{"approve(address,uint256)":{"details":"Gives permission to `to` to transfer `tokenId` token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - `tokenId` must exist. Emits an {Approval} event."},"balanceOf(address)":{"details":"Returns the number of tokens in ``owner``'s account."},"constructor":{"params":{"initialOwner":"The project wallet. Deployment goes through the         deterministic CREATE2 deployment proxy (0x4e59…4956C),         because the agentic wallet cannot send a bare creation         transaction — so the owner and the royalty receiver are set         explicitly here instead of relying on msg.sender."}},"getApproved(uint256)":{"details":"Returns the account approved for `tokenId` token. Requirements: - `tokenId` must exist."},"isApprovedForAll(address,address)":{"details":"Returns if the `operator` is allowed to manage all of the assets of `owner`. See {setApprovalForAll}"},"name()":{"details":"Returns the token collection name."},"owner()":{"details":"Returns the address of the current owner."},"ownerOf(uint256)":{"details":"Returns the owner of the `tokenId` token. Requirements: - `tokenId` must exist."},"renounceOwnership()":{"details":"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner."},"royaltyInfo(uint256,uint256)":{"details":"Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of exchange. The royalty amount is denominated and should be paid in that same unit of exchange. NOTE: ERC-2981 allows setting the royalty to 100% of the price. In that case all the price would be sent to the royalty receiver and 0 tokens to the seller. Contracts dealing with royalty should consider empty transfers."},"safeTransferFrom(address,address,uint256)":{"details":"Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients are aware of the ERC-721 protocol to prevent tokens from being forever locked. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must have been allowed to move this token by either {approve} or   {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon   a safe transfer. Emits a {Transfer} event."},"safeTransferFrom(address,address,uint256,bytes)":{"details":"Safely transfers `tokenId` token from `from` to `to`. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon   a safe transfer. Emits a {Transfer} event."},"setApprovalForAll(address,bool)":{"details":"Approve or remove `operator` as an operator for the caller. Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. Requirements: - The `operator` cannot be the address zero. Emits an {ApprovalForAll} event."},"symbol()":{"details":"Returns the token collection symbol."},"tokenURI(uint256)":{"details":"Returns the Uniform Resource Identifier (URI) for `tokenId` token."},"transferFrom(address,address,uint256)":{"details":"Transfers `tokenId` token from `from` to `to`. WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC-721 or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must understand this adds an external call which potentially creates a reentrancy vulnerability. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event."},"transferOwnership(address)":{"details":"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."}},"title":"CHASTLE — the Royal Court of Proof-of-Work (ERC-721, BNB Chain).","version":1},"userdoc":{"kind":"user","methods":{"assignClass(uint256,uint256,uint256[5])":{"notice":"Pure seating rule, exposed so anyone can verify it off the         live counters: start at the proof's band (capped to Queen         while King is locked), then drop rank by rank until a rank         with a free seat is found. seated=false when the band and         every rank below it are full."},"challengeFor(address)":{"notice":"The challenge a wallet must grind against right now. It         rotates after every successful claim because it binds the         wallet's claim count."},"claim(uint256)":{"notice":"Claim one unit by presenting a nonce whose         keccak256(challengeFor(you) || nonce) has >= MIN_BITS         leading zero bits. You are seated at the highest open rank         at-or-below your proof's band (King locked until         KING_UNLOCK_MINTS total claims)."},"claimPrice(address)":{"notice":"Price of the NEXT claim for a wallet: claims 1-2 cost         FREE_PRICE while the global free quota lasts, then every         claim costs PAID_PRICE."},"classForBits(uint256)":{"notice":"The rank band a proof's bit count belongs to, before seat         availability and the King lock are considered."},"classOf(uint256)":{"notice":"The rank a unit was seated at when claimed (fixed forever)."},"freeRemaining()":{"notice":"Free-quota seats remaining for claims 1-2."},"hasAgentId(address)":{"notice":"Whether a wallet currently passes the Agent ID gate         (always true when the gate is toggled off)."},"kingUnlocked()":{"notice":"Whether King seats are unlocked yet (1,000 total claims)."},"proofBitsOf(uint256)":{"notice":"The unit's power: the true bit count of its claim proof."},"quotaOf(uint8)":{"notice":"Seat quota of a rank."},"setAgentGate(bool,address)":{"notice":"Safety valve for the Agent ID gate: repoint the registry         or disable the gate if the registry ever misbehaves."},"totalSupply()":{"notice":"Total units claimed so far. Indexers and marketplaces         expect a readable totalSupply()."},"withdraw()":{"notice":"Withdraw the full contract balance (all mint fees accrue         to the project; there is no reserve split)."}},"notice":"Five thousand seats in one royal court. Rank is not bought and         never drawn: it is PROVEN. A claim presents a nonce whose         keccak256(challengeFor(wallet) || nonce) carries leading zero         bits; the bit count sets the highest royal rank the proof may         take — Pawn 24-27, Rook 28-31, Knight 32-35, Queen 36-39,         King 40+. Unlike a pure band ladder, every rank holds a HARD         SEAT QUOTA (Pawn 2500, Rook 1500, Knight 700, Queen 250,         King 50; the quotas sum exactly to the supply). A proof is         seated at the highest rank at-or-below its band whose seats         remain: overflow from a full rank drops to the next rank down,         so a strong proof never fails merely because its own rank         filled. The one failure case is a proof whose band AND every         rank below it are all full — the remedy is public and fair:         grind a stronger proof for a rank that still has seats.         King seats stay locked until 1,000 units have been claimed;         before that, a King-band proof is seated as Queen.         The proof's TRUE bit count is stored on-chain as the unit's         power, whatever rank it received.         Pricing (per wallet, by claim order): claims 1-2 are the         court's \"FREEMINT 2\" — while the global free quota of 2,000         lasts, the contract charges 0.0002 BNB for each of them; once         the free quota is gone, claims 1-2 price like any other claim.         Claims 3-10 cost a flat 0.0004 BNB. Wallet cap: 10 for life.         All mint fees accrue to the contract and are withdrawable by         the owner in full (no reserve split). Royalty: 5%, fixed at         deployment with no setter. Claiming requires holding a         soulbound Agent ID; the owner can repoint or disable the gate         as a safety valve if the registry ever misbehaves.         Every unit is unique: its portrait is rendered off-chain in         the frozen court style, varying hair, accessories and         expression inside its rank's uniform and colours.         tokenURI(tokenId) is baseURI + tokenId.","version":1}},"settings":{"compilationTarget":{"project/contracts/Chastle.sol":"Chastle"},"evmVersion":"cancun","libraries":{},"metadata":{"bytecodeHash":"ipfs"},"optimizer":{"enabled":true,"runs":200},"remappings":["project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.6.1/"],"viaIR":true},"sources":{"npm/@openzeppelin/contracts@5.6.1/access/Ownable.sol":{"keccak256":"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb","license":"MIT","urls":["bzz-raw://8ed324d3920bb545059d66ab97d43e43ee85fd3bd52e03e401f020afb0b120f6","dweb:/ipfs/QmfEckWLmZkDDcoWrkEvMWhms66xwTLff9DDhegYpvHo1a"]},"npm/@openzeppelin/contracts@5.6.1/interfaces/IERC2981.sol":{"keccak256":"0xafab0e6c71905303c47dd254168cb31efc91f0ae284cde609b0202f97f85469e","license":"MIT","urls":["bzz-raw://824d05aec56eb82a2a3c28eece530dc0792d3a008b09d01444e57cf4aceb0445","dweb:/ipfs/QmVvqmJ5UobuRU9Q4JMyXxBfzKs2cpjbWXMNpxX4binTX8"]},"npm/@openzeppelin/contracts@5.6.1/interfaces/draft-IERC6093.sol":{"keccak256":"0x1b88b3fb3d85ba5496d7d5f396f83ee1fddcdd6762059ff65992655b67920998","license":"MIT","urls":["bzz-raw://89393bb3212da1c0889601b9706a07b39419ddc4d2faab9eaf6e7f9152cf6a1c","dweb:/ipfs/QmcCfzzxv1Bkdz1c1yF4gQCeYb6Us5BJANnzTFqawfd1HL"]},"npm/@openzeppelin/contracts@5.6.1/token/ERC721/ERC721.sol":{"keccak256":"0xf6bb0dc431a9c50e25756412ec14cfcd4dc61dd40b8dc0e1b58ec09fce6d5564","license":"MIT","urls":["bzz-raw://eb87fef7e8ed754b8600cd5d42e4f23128059006368ffd19e4d50cc166471ee5","dweb:/ipfs/Qmc1vy1cevKreGUsG7S79gyhNvDtPnNz9qG47eYVHmMKLs"]},"npm/@openzeppelin/contracts@5.6.1/token/ERC721/IERC721.sol":{"keccak256":"0xf78f05f3b8c9f75570e85300d7b4600d7f6f6a198449273f31d44c1641adb46f","license":"MIT","urls":["bzz-raw://e28b872613b45e0e801d4995aa4380be2531147bfe2d85c1d6275f1de514fba3","dweb:/ipfs/QmeeFcfShHYaS3BdgVj78nxR28ZaVUwbvr66ud8bT6kzw9"]},"npm/@openzeppelin/contracts@5.6.1/token/ERC721/IERC721Receiver.sol":{"keccak256":"0x88cd5e3bee2e8c36b8d9058fbcaa81ad5704281b25634122234b55ea853d8055","license":"MIT","urls":["bzz-raw://8dc7e7ab5b8ea36c15027ab04221b05d1c970f47a53e9fd47ead8ca665d49c7e","dweb:/ipfs/Qmeeph7fsDyfRr8vb2L8KcDEmKPb224TAayMvgqgGAnqpL"]},"npm/@openzeppelin/contracts@5.6.1/token/ERC721/extensions/IERC721Metadata.sol":{"keccak256":"0xf46268c37522320bb2119a5a394bc5c739a95c0c574c8d08e8c643f4d06e5c76","license":"MIT","urls":["bzz-raw://517e4b295f35b9947c72ad7379a6089439ece7bb6f4a2ea0a159da13046c039e","dweb:/ipfs/QmZXzkSfLUbvujig3zVbpDHykpHhqLpvQtdiN3B5j4TA3u"]},"npm/@openzeppelin/contracts@5.6.1/token/ERC721/utils/ERC721Utils.sol":{"keccak256":"0xc7efbc23214ad7dced8bf2249460f4bda114d57f6a0079f84040654280f455bd","license":"MIT","urls":["bzz-raw://1f5bd44efca8c8c0d74439e7b808d1f9c4af1df78f91fef8e8bbca8104645435","dweb:/ipfs/Qmb42XSd8MKsEitp42sZkSFGqDRigk6QgGXtiJyJqUZJJ6"]},"npm/@openzeppelin/contracts@5.6.1/token/common/ERC2981.sol":{"keccak256":"0xa33062c6e0675a74a27b06a4ae4c6ad4d3b7219e27d9c146a4ac57295096d393","license":"MIT","urls":["bzz-raw://777543d88013fdd0ee7f47ac619fb13a1993bb667675d8816fde024f73cfbf2d","dweb:/ipfs/QmfDS9uL1XZ2oUe1PH8eRCRyu3Hf98cK8ksGf4Ww7kg5zv"]},"npm/@openzeppelin/contracts@5.6.1/utils/Bytes.sol":{"keccak256":"0xf80e4b96b6849936ea0fabd76cf81b13d7276295fddb1e1c07afb3ddf650b0ac","license":"MIT","urls":["bzz-raw://6430007255ac11c6e9c4331a418f3af52ff66fbbae959f645301d025b20aeb08","dweb:/ipfs/QmQE5fjmBBRw9ndnzJuC2uskYss1gbaR7JdazoCf1FGoBj"]},"npm/@openzeppelin/contracts@5.6.1/utils/Context.sol":{"keccak256":"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2","license":"MIT","urls":["bzz-raw://6a708e8a5bdb1011c2c381c9a5cfd8a9a956d7d0a9dc1bd8bcdaf52f76ef2f12","dweb:/ipfs/Qmax9WHBnVsZP46ZxEMNRQpLQnrdE4dK8LehML1Py8FowF"]},"npm/@openzeppelin/contracts@5.6.1/utils/Panic.sol":{"keccak256":"0xf7fe324703a64fc51702311dc51562d5cb1497734f074e4f483bfb6717572d7a","license":"MIT","urls":["bzz-raw://c6a5ff4f9fd8649b7ee20800b7fa387d3465bd77cf20c2d1068cd5c98e1ed57a","dweb:/ipfs/QmVSaVJf9FXFhdYEYeCEfjMVHrxDh5qL4CGkxdMWpQCrqG"]},"npm/@openzeppelin/contracts@5.6.1/utils/Strings.sol":{"keccak256":"0x1fdc2de9585ab0f1c417f02a873a2b6343cd64bb7ffec6b00ffa11a4a158d9e8","license":"MIT","urls":["bzz-raw://1ab223a3d969c6cd7610049431dd42740960c477e45878f5d8b54411f7a32bdc","dweb:/ipfs/QmWumhjvhpKcwx3vDPQninsNVTc3BGvqaihkQakFkQYpaS"]},"npm/@openzeppelin/contracts@5.6.1/utils/introspection/ERC165.sol":{"keccak256":"0x2d9dc2fe26180f74c11c13663647d38e259e45f95eb88f57b61d2160b0109d3e","license":"MIT","urls":["bzz-raw://81233d1f98060113d9922180bb0f14f8335856fe9f339134b09335e9f678c377","dweb:/ipfs/QmWh6R35SarhAn4z2wH8SU456jJSYL2FgucfTFgbHJJN4E"]},"npm/@openzeppelin/contracts@5.6.1/utils/introspection/IERC165.sol":{"keccak256":"0x8891738ffe910f0cf2da09566928589bf5d63f4524dd734fd9cedbac3274dd5c","license":"MIT","urls":["bzz-raw://971f954442df5c2ef5b5ebf1eb245d7105d9fbacc7386ee5c796df1d45b21617","dweb:/ipfs/QmadRjHbkicwqwwh61raUEapaVEtaLMcYbQZWs9gUkgj3u"]},"npm/@openzeppelin/contracts@5.6.1/utils/math/Math.sol":{"keccak256":"0x59973a93b1f983f94e10529f46ca46544a9fec2b5f56fb1390bbe9e0dc79f857","license":"MIT","urls":["bzz-raw://c55ef8f0b9719790c2ae6f81d80a59ffb89f2f0abe6bc065585bd79edce058c5","dweb:/ipfs/QmNNmCbX9NjPXKqHJN8R1WC2rNeZSQrPZLd6FF6AKLyH5Y"]},"npm/@openzeppelin/contracts@5.6.1/utils/math/SafeCast.sol":{"keccak256":"0xc8cae21c9ae4a46e5162ff9bf5b351d6fa6a6eba72d515f3bc1bdfeda7fdf083","license":"MIT","urls":["bzz-raw://ce830ebcf28e31643caba318996db3763c36d52cd0f23798ba83c135355d45e9","dweb:/ipfs/QmdGPcvptHN7UBCbUYBbRX3hiRVRFLRwno8b4uga6uFNif"]},"npm/@openzeppelin/contracts@5.6.1/utils/math/SignedMath.sol":{"keccak256":"0xb1970fac7b64e6c09611e6691791e848d5e3fe410fa5899e7df2e0afd77a99e3","license":"MIT","urls":["bzz-raw://db5fbb3dddd8b7047465b62575d96231ba8a2774d37fb4737fbf23340fabbb03","dweb:/ipfs/QmVUSvooZKEdEdap619tcJjTLcAuH6QBdZqAzWwnAXZAWJ"]},"project/contracts/Chastle.sol":{"keccak256":"0xc07580f4570c3c4047abc961f5e905cc810c49ce7c266336b920772e563cdc5f","license":"MIT","urls":["bzz-raw://fa2ad4eb5c5056df9ca28c3bccd5ffe067a5bbaf229fccb54cb58fe1add4cad0","dweb:/ipfs/QmSdeEVo3YJvfHmAd9uCGpxbUu7K2pzXhojWD8dsmhHwV5"]}},"version":1},"storageLayout":{"types":{"t_bool":{"label":"bool","encoding":"inplace","numberOfBytes":"1"},"t_uint8":{"label":"uint8","encoding":"inplace","numberOfBytes":"1"},"t_uint96":{"label":"uint96","encoding":"inplace","numberOfBytes":"12"},"t_address":{"label":"address","encoding":"inplace","numberOfBytes":"20"},"t_bytes32":{"label":"bytes32","encoding":"inplace","numberOfBytes":"32"},"t_uint256":{"label":"uint256","encoding":"inplace","numberOfBytes":"32"},"t_string_storage":{"label":"string","encoding":"bytes","numberOfBytes":"32"},"t_array(t_uint256)5_storage":{"base":"t_uint256","label":"uint256[5]","encoding":"inplace","numberOfBytes":"160"},"t_mapping(t_address,t_bool)":{"key":"t_address","label":"mapping(address => bool)","value":"t_bool","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_uint256,t_uint8)":{"key":"t_uint256","label":"mapping(uint256 => uint8)","value":"t_uint8","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_address,t_uint256)":{"key":"t_address","label":"mapping(address => uint256)","value":"t_uint256","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_uint256,t_address)":{"key":"t_uint256","label":"mapping(uint256 => address)","value":"t_address","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_uint256,t_bytes32)":{"key":"t_uint256","label":"mapping(uint256 => bytes32)","value":"t_bytes32","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_uint256,t_uint256)":{"key":"t_uint256","label":"mapping(uint256 => uint256)","value":"t_uint256","encoding":"mapping","numberOfBytes":"32"},"t_struct(RoyaltyInfo)1533_storage":{"label":"struct ERC2981.RoyaltyInfo","members":[{"slot":"0","type":"t_address","astId":1530,"label":"receiver","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"0","type":"t_uint96","astId":1532,"label":"royaltyFraction","offset":20,"contract":"project/contracts/Chastle.sol:Chastle"}],"encoding":"inplace","numberOfBytes":"32"},"t_mapping(t_address,t_mapping(t_address,t_bool))":{"key":"t_address","label":"mapping(address => mapping(address => bool))","value":"t_mapping(t_address,t_bool)","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_uint256,t_struct(RoyaltyInfo)1533_storage)":{"key":"t_uint256","label":"mapping(uint256 => struct ERC2981.RoyaltyInfo)","value":"t_struct(RoyaltyInfo)1533_storage","encoding":"mapping","numberOfBytes":"32"}},"storage":[{"slot":"0","type":"t_string_storage","astId":337,"label":"_name","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"1","type":"t_string_storage","astId":339,"label":"_symbol","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"2","type":"t_mapping(t_uint256,t_address)","astId":343,"label":"_owners","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"3","type":"t_mapping(t_address,t_uint256)","astId":347,"label":"_balances","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"4","type":"t_mapping(t_uint256,t_address)","astId":351,"label":"_tokenApprovals","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"5","type":"t_mapping(t_address,t_mapping(t_address,t_bool))","astId":357,"label":"_operatorApprovals","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"6","type":"t_struct(RoyaltyInfo)1533_storage","astId":1536,"label":"_defaultRoyaltyInfo","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"7","type":"t_mapping(t_uint256,t_struct(RoyaltyInfo)1533_storage)","astId":1541,"label":"_tokenRoyaltyInfo","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"8","type":"t_address","astId":8,"label":"_owner","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"9","type":"t_address","astId":7849,"label":"agentRegistry","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"9","type":"t_bool","astId":7852,"label":"agentGateEnabled","offset":20,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"10","type":"t_uint256","astId":7854,"label":"totalMinted","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"11","type":"t_uint256","astId":7856,"label":"freeClaimed","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"12","type":"t_bool","astId":7859,"label":"mintOpen","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"13","type":"t_string_storage","astId":7862,"label":"_baseTokenURI","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"14","type":"t_array(t_uint256)5_storage","astId":7866,"label":"classCount","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"19","type":"t_mapping(t_uint256,t_uint8)","astId":7870,"label":"_classOf","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"20","type":"t_mapping(t_uint256,t_uint256)","astId":7874,"label":"_proofBits","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"21","type":"t_mapping(t_uint256,t_bytes32)","astId":7878,"label":"_proofHash","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"22","type":"t_mapping(t_address,t_uint256)","astId":7882,"label":"mintedBy","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"}]},"transientStorageLayout":{"types":null,"storage":[]},"userdoc":{"kind":"user","notice":"Five thousand seats in one royal court. Rank is not bought and         never drawn: it is PROVEN. A claim presents a nonce whose         keccak256(challengeFor(wallet) || nonce) carries leading zero         bits; the bit count sets the highest royal rank the proof may         take — Pawn 24-27, Rook 28-31, Knight 32-35, Queen 36-39,         King 40+. Unlike a pure band ladder, every rank holds a HARD         SEAT QUOTA (Pawn 2500, Rook 1500, Knight 700, Queen 250,         King 50; the quotas sum exactly to the supply). A proof is         seated at the highest rank at-or-below its band whose seats         remain: overflow from a full rank drops to the next rank down,         so a strong proof never fails merely because its own rank         filled. The one failure case is a proof whose band AND every         rank below it are all full — the remedy is public and fair:         grind a stronger proof for a rank that still has seats.         King seats stay locked until 1,000 units have been claimed;         before that, a King-band proof is seated as Queen.         The proof's TRUE bit count is stored on-chain as the unit's         power, whatever rank it received.         Pricing (per wallet, by claim order): claims 1-2 are the         court's \"FREEMINT 2\" — while the global free quota of 2,000         lasts, the contract charges 0.0002 BNB for each of them; once         the free quota is gone, claims 1-2 price like any other claim.         Claims 3-10 cost a flat 0.0004 BNB. Wallet cap: 10 for life.         All mint fees accrue to the contract and are withdrawable by         the owner in full (no reserve split). Royalty: 5%, fixed at         deployment with no setter. Claiming requires holding a         soulbound Agent ID; the owner can repoint or disable the gate         as a safety valve if the registry ever misbehaves.         Every unit is unique: its portrait is rendered off-chain in         the frozen court style, varying hair, accessories and         expression inside its rank's uniform and colours.         tokenURI(tokenId) is baseURI + tokenId.","methods":{"withdraw()":{"notice":"Withdraw the full contract balance (all mint fees accrue         to the project; there is no reserve split)."},"totalSupply()":{"notice":"Total units claimed so far. Indexers and marketplaces         expect a readable totalSupply()."},"claim(uint256)":{"notice":"Claim one unit by presenting a nonce whose         keccak256(challengeFor(you) || nonce) has >= MIN_BITS         leading zero bits. You are seated at the highest open rank         at-or-below your proof's band (King locked until         KING_UNLOCK_MINTS total claims)."},"kingUnlocked()":{"notice":"Whether King seats are unlocked yet (1,000 total claims)."},"quotaOf(uint8)":{"notice":"Seat quota of a rank."},"freeRemaining()":{"notice":"Free-quota seats remaining for claims 1-2."},"classOf(uint256)":{"notice":"The rank a unit was seated at when claimed (fixed forever)."},"claimPrice(address)":{"notice":"Price of the NEXT claim for a wallet: claims 1-2 cost         FREE_PRICE while the global free quota lasts, then every         claim costs PAID_PRICE."},"hasAgentId(address)":{"notice":"Whether a wallet currently passes the Agent ID gate         (always true when the gate is toggled off)."},"proofBitsOf(uint256)":{"notice":"The unit's power: the true bit count of its claim proof."},"challengeFor(address)":{"notice":"The challenge a wallet must grind against right now. It         rotates after every successful claim because it binds the         wallet's claim count."},"classForBits(uint256)":{"notice":"The rank band a proof's bit count belongs to, before seat         availability and the King lock are considered."},"setAgentGate(bool,address)":{"notice":"Safety valve for the Agent ID gate: repoint the registry         or disable the gate if the registry ever misbehaves."},"assignClass(uint256,uint256,uint256[5])":{"notice":"Pure seating rule, exposed so anyone can verify it off the         live counters: start at the proof's band (capped to Queen         while King is locked), then drop rank by rank until a rank         with a free seat is found. seated=false when the band and         every rank below it are full."}},"version":1},"devdoc":{"kind":"dev","title":"CHASTLE — the Royal Court of Proof-of-Work (ERC-721, BNB Chain).","errors":{"ERC721InvalidOwner(address)":[{"params":{"owner":"Address of the current owner of a token."},"details":"Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-721. Used in balance queries."}],"ERC721InvalidSender(address)":[{"params":{"sender":"Address whose tokens are being transferred."},"details":"Indicates a failure with the token `sender`. Used in transfers."}],"OwnableInvalidOwner(address)":[{"details":"The owner is not a valid owner account. (eg. `address(0)`)"}],"ERC721InvalidApprover(address)":[{"params":{"approver":"Address initiating an approval operation."},"details":"Indicates a failure with the `approver` of a token to be approved. Used in approvals."}],"ERC721InvalidOperator(address)":[{"params":{"operator":"Address that may be allowed to operate on tokens without being their owner."},"details":"Indicates a failure with the `operator` to be approved. Used in approvals."}],"ERC721InvalidReceiver(address)":[{"params":{"receiver":"Address to which tokens are being transferred."},"details":"Indicates a failure with the token `receiver`. Used in transfers."}],"ERC721NonexistentToken(uint256)":[{"params":{"tokenId":"Identifier number of a token."},"details":"Indicates a `tokenId` whose `owner` is the zero address."}],"OwnableUnauthorizedAccount(address)":[{"details":"The caller account is not authorized to perform an operation."}],"ERC721InsufficientApproval(address,uint256)":[{"params":{"tokenId":"Identifier number of a token.","operator":"Address that may be allowed to operate on tokens without being their owner."},"details":"Indicates a failure with the `operator`’s approval. Used in transfers."}],"ERC2981InvalidDefaultRoyalty(uint256,uint256)":[{"details":"The default royalty set is invalid (eg. (numerator / denominator) >= 1)."}],"ERC2981InvalidDefaultRoyaltyReceiver(address)":[{"details":"The default royalty receiver is invalid."}],"ERC721IncorrectOwner(address,uint256,address)":[{"params":{"owner":"Address of the current owner of a token.","sender":"Address whose tokens are being transferred.","tokenId":"Identifier number of a token."},"details":"Indicates an error related to the ownership over a particular token. Used in transfers."}],"ERC2981InvalidTokenRoyalty(uint256,uint256,uint256)":[{"details":"The royalty set for a specific `tokenId` is invalid (eg. (numerator / denominator) >= 1)."}],"ERC2981InvalidTokenRoyaltyReceiver(uint256,address)":[{"details":"The royalty receiver for `tokenId` is invalid."}]},"events":{"Approval(address,address,uint256)":{"details":"Emitted when `owner` enables `approved` to manage the `tokenId` token."},"Transfer(address,address,uint256)":{"details":"Emitted when `tokenId` token is transferred from `from` to `to`."},"ApprovalForAll(address,address,bool)":{"details":"Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets."}},"methods":{"name()":{"details":"Returns the token collection name."},"owner()":{"details":"Returns the address of the current owner."},"symbol()":{"details":"Returns the token collection symbol."},"constructor":{"params":{"initialOwner":"The project wallet. Deployment goes through the         deterministic CREATE2 deployment proxy (0x4e59…4956C),         because the agentic wallet cannot send a bare creation         transaction — so the owner and the royalty receiver are set         explicitly here instead of relying on msg.sender."}},"ownerOf(uint256)":{"details":"Returns the owner of the `tokenId` token. Requirements: - `tokenId` must exist."},"tokenURI(uint256)":{"details":"Returns the Uniform Resource Identifier (URI) for `tokenId` token."},"balanceOf(address)":{"details":"Returns the number of tokens in ``owner``'s account."},"renounceOwnership()":{"details":"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner."},"getApproved(uint256)":{"details":"Returns the account approved for `tokenId` token. Requirements: - `tokenId` must exist."},"approve(address,uint256)":{"details":"Gives permission to `to` to transfer `tokenId` token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - `tokenId` must exist. Emits an {Approval} event."},"transferOwnership(address)":{"details":"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."},"royaltyInfo(uint256,uint256)":{"details":"Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of exchange. The royalty amount is denominated and should be paid in that same unit of exchange. NOTE: ERC-2981 allows setting the royalty to 100% of the price. In that case all the price would be sent to the royalty receiver and 0 tokens to the seller. Contracts dealing with royalty should consider empty transfers."},"setApprovalForAll(address,bool)":{"details":"Approve or remove `operator` as an operator for the caller. Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. Requirements: - The `operator` cannot be the address zero. Emits an {ApprovalForAll} event."},"isApprovedForAll(address,address)":{"details":"Returns if the `operator` is allowed to manage all of the assets of `owner`. See {setApprovalForAll}"},"transferFrom(address,address,uint256)":{"details":"Transfers `tokenId` token from `from` to `to`. WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC-721 or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must understand this adds an external call which potentially creates a reentrancy vulnerability. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event."},"safeTransferFrom(address,address,uint256)":{"details":"Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients are aware of the ERC-721 protocol to prevent tokens from being forever locked. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must have been allowed to move this token by either {approve} or   {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon   a safe transfer. Emits a {Transfer} event."},"safeTransferFrom(address,address,uint256,bytes)":{"details":"Safely transfers `tokenId` token from `from` to `to`. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon   a safe transfer. Emits a {Transfer} event."}},"version":1},"sourceIds":{"project/contracts/Chastle.sol":{"id":18},"npm/@openzeppelin/contracts@5.6.1/utils/Bytes.sol":{"id":9},"npm/@openzeppelin/contracts@5.6.1/utils/Panic.sol":{"id":11},"npm/@openzeppelin/contracts@5.6.1/utils/Context.sol":{"id":10},"npm/@openzeppelin/contracts@5.6.1/utils/Strings.sol":{"id":12},"npm/@openzeppelin/contracts@5.6.1/access/Ownable.sol":{"id":0},"npm/@openzeppelin/contracts@5.6.1/utils/math/Math.sol":{"id":15},"npm/@openzeppelin/contracts@5.6.1/interfaces/IERC2981.sol":{"id":1},"npm/@openzeppelin/contracts@5.6.1/token/ERC721/ERC721.sol":{"id":3},"npm/@openzeppelin/contracts@5.6.1/utils/math/SafeCast.sol":{"id":16},"npm/@openzeppelin/contracts@5.6.1/token/ERC721/IERC721.sol":{"id":4},"npm/@openzeppelin/contracts@5.6.1/token/common/ERC2981.sol":{"id":8},"npm/@openzeppelin/contracts@5.6.1/utils/math/SignedMath.sol":{"id":17},"npm/@openzeppelin/contracts@5.6.1/interfaces/draft-IERC6093.sol":{"id":2},"npm/@openzeppelin/contracts@5.6.1/utils/introspection/ERC165.sol":{"id":13},"npm/@openzeppelin/contracts@5.6.1/utils/introspection/IERC165.sol":{"id":14},"npm/@openzeppelin/contracts@5.6.1/token/ERC721/IERC721Receiver.sol":{"id":5},"npm/@openzeppelin/contracts@5.6.1/token/ERC721/utils/ERC721Utils.sol":{"id":7},"npm/@openzeppelin/contracts@5.6.1/token/ERC721/extensions/IERC721Metadata.sol":{"id":6}},"additionalInput":null,"stdJsonInput":{"sources":{"project/contracts/Chastle.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\nimport \"@openzeppelin/contracts/token/ERC721/ERC721.sol\";\nimport \"@openzeppelin/contracts/token/common/ERC2981.sol\";\nimport \"@openzeppelin/contracts/access/Ownable.sol\";\n\ninterface IAgentRegistry {\n    function balanceOf(address owner) external view returns (uint256);\n}\n\n/// @title CHASTLE — the Royal Court of Proof-of-Work (ERC-721, BNB Chain).\n/// @notice Five thousand seats in one royal court. Rank is not bought and\n///         never drawn: it is PROVEN. A claim presents a nonce whose\n///         keccak256(challengeFor(wallet) || nonce) carries leading zero\n///         bits; the bit count sets the highest royal rank the proof may\n///         take — Pawn 24-27, Rook 28-31, Knight 32-35, Queen 36-39,\n///         King 40+. Unlike a pure band ladder, every rank holds a HARD\n///         SEAT QUOTA (Pawn 2500, Rook 1500, Knight 700, Queen 250,\n///         King 50; the quotas sum exactly to the supply). A proof is\n///         seated at the highest rank at-or-below its band whose seats\n///         remain: overflow from a full rank drops to the next rank down,\n///         so a strong proof never fails merely because its own rank\n///         filled. The one failure case is a proof whose band AND every\n///         rank below it are all full — the remedy is public and fair:\n///         grind a stronger proof for a rank that still has seats.\n///         King seats stay locked until 1,000 units have been claimed;\n///         before that, a King-band proof is seated as Queen.\n///         The proof's TRUE bit count is stored on-chain as the unit's\n///         power, whatever rank it received.\n///         Pricing (per wallet, by claim order): claims 1-2 are the\n///         court's \"FREEMINT 2\" — while the global free quota of 2,000\n///         lasts, the contract charges 0.0002 BNB for each of them; once\n///         the free quota is gone, claims 1-2 price like any other claim.\n///         Claims 3-10 cost a flat 0.0004 BNB. Wallet cap: 10 for life.\n///         All mint fees accrue to the contract and are withdrawable by\n///         the owner in full (no reserve split). Royalty: 5%, fixed at\n///         deployment with no setter. Claiming requires holding a\n///         soulbound Agent ID; the owner can repoint or disable the gate\n///         as a safety valve if the registry ever misbehaves.\n///         Every unit is unique: its portrait is rendered off-chain in\n///         the frozen court style, varying hair, accessories and\n///         expression inside its rank's uniform and colours.\n///         tokenURI(tokenId) is baseURI + tokenId.\ncontract Chastle is ERC721, ERC2981, Ownable {\n    uint256 public constant MAX_SUPPLY = 5000;\n    uint256 public constant MAX_PER_WALLET = 10;\n    uint256 public constant FREE_QUOTA = 2000;\n    uint256 public constant FREE_PRICE = 0.0002 ether;\n    uint256 public constant PAID_PRICE = 0.0004 ether;\n    uint256 public constant KING_UNLOCK_MINTS = 1000;\n\n    // Rank bit thresholds (leading zero bits of the proof hash).\n    uint256 public constant MIN_BITS = 24; // Pawn floor\n    uint256 public constant ROOK_BITS = 28;\n    uint256 public constant KNIGHT_BITS = 32;\n    uint256 public constant QUEEN_BITS = 36;\n    uint256 public constant KING_BITS = 40;\n\n    // Seat quotas per rank (index = class: 0 Pawn, 1 Rook, 2 Knight,\n    // 3 Queen, 4 King). They sum to MAX_SUPPLY exactly.\n    uint256 public constant QUOTA_PAWN = 2500;\n    uint256 public constant QUOTA_ROOK = 1500;\n    uint256 public constant QUOTA_KNIGHT = 700;\n    uint256 public constant QUOTA_QUEEN = 250;\n    uint256 public constant QUOTA_KING = 50;\n\n    // The soulbound Agent ID registry (.ai) whose balance gates claiming.\n    address public agentRegistry = 0x60B9262456dE011F7d15a54CdD8c48bAaa8B022F;\n    bool public agentGateEnabled = true;\n\n    uint256 public totalMinted;\n    uint256 public freeClaimed;\n    // The claim starts CLOSED. The owner opens it with setMintOpen(true)\n    // only after the metadata base URI points at the live service.\n    bool public mintOpen = false;\n\n    // PLACEHOLDER — not a real metadata base. Point this at the live\n    // metadata service with setBaseURI() before the claim opens.\n    string private _baseTokenURI = \"ipfs://CHASTLE_METADATA_BASE/\";\n\n    uint256[5] public classCount; // seats taken per rank\n    mapping(uint256 => uint8) private _classOf; // rank assigned at claim time (fixed forever)\n    mapping(uint256 => uint256) private _proofBits; // true leading zero bits of the claim proof\n    mapping(uint256 => bytes32) private _proofHash; // the full claim proof hash\n    mapping(address => uint256) public mintedBy;\n\n    event UnitClaimed(address indexed minter, uint256 indexed tokenId, uint8 class_, uint256 proofBits);\n    event MintOpenChanged(bool open);\n    event BaseURIChanged(string newBaseURI);\n    event AgentGateChanged(bool enabled, address registry);\n\n    /// @param initialOwner The project wallet. Deployment goes through the\n    ///         deterministic CREATE2 deployment proxy (0x4e59…4956C),\n    ///         because the agentic wallet cannot send a bare creation\n    ///         transaction — so the owner and the royalty receiver are set\n    ///         explicitly here instead of relying on msg.sender.\n    constructor(address initialOwner) ERC721(\"CHASTLE\", \"CHASTLE\") Ownable(initialOwner) {\n        _setDefaultRoyalty(initialOwner, 500); // 5% secondary royalty; no setter exists, so this can never change\n    }\n\n    // ---------------- claim (proof-of-work) ----------------\n\n    /// @notice The challenge a wallet must grind against right now. It\n    ///         rotates after every successful claim because it binds the\n    ///         wallet's claim count.\n    function challengeFor(address wallet) public view returns (bytes32) {\n        return keccak256(abi.encodePacked(address(this), wallet, mintedBy[wallet]));\n    }\n\n    /// @notice Price of the NEXT claim for a wallet: claims 1-2 cost\n    ///         FREE_PRICE while the global free quota lasts, then every\n    ///         claim costs PAID_PRICE.\n    function claimPrice(address wallet) public view returns (uint256) {\n        if (mintedBy[wallet] < 2 && freeClaimed < FREE_QUOTA) return FREE_PRICE;\n        return PAID_PRICE;\n    }\n\n    /// @notice Whether a wallet currently passes the Agent ID gate\n    ///         (always true when the gate is toggled off).\n    function hasAgentId(address wallet) public view returns (bool) {\n        if (!agentGateEnabled) return true;\n        try IAgentRegistry(agentRegistry).balanceOf(wallet) returns (uint256 bal) {\n            return bal > 0;\n        } catch {\n            return false;\n        }\n    }\n\n    /// @notice Claim one unit by presenting a nonce whose\n    ///         keccak256(challengeFor(you) || nonce) has >= MIN_BITS\n    ///         leading zero bits. You are seated at the highest open rank\n    ///         at-or-below your proof's band (King locked until\n    ///         KING_UNLOCK_MINTS total claims).\n    function claim(uint256 nonce) external payable {\n        require(mintOpen, \"mint is closed\");\n        require(hasAgentId(msg.sender), \"Agent ID required\");\n        require(mintedBy[msg.sender] < MAX_PER_WALLET, \"wallet limit\");\n        require(totalMinted < MAX_SUPPLY, \"sold out\");\n        uint256 price = claimPrice(msg.sender);\n        require(msg.value == price, \"wrong fee\");\n\n        bytes32 hash = keccak256(abi.encodePacked(challengeFor(msg.sender), nonce));\n        uint256 bits = _leadingZeroBits(hash);\n        require(bits >= MIN_BITS, \"proof too weak\");\n\n        (uint8 cls, bool seated) = assignClass(bits, totalMinted, classCount);\n        require(seated, \"rank full - grind a stronger proof\");\n\n        if (price == FREE_PRICE) freeClaimed += 1;\n        uint256 tokenId = ++totalMinted;\n        classCount[cls] += 1;\n        _classOf[tokenId] = cls;\n        _proofBits[tokenId] = bits;\n        _proofHash[tokenId] = hash;\n        mintedBy[msg.sender] += 1;\n\n        _safeMint(msg.sender, tokenId);\n        emit UnitClaimed(msg.sender, tokenId, cls, bits);\n    }\n\n    /// @notice The rank band a proof's bit count belongs to, before seat\n    ///         availability and the King lock are considered.\n    function classForBits(uint256 bits) public pure returns (uint8) {\n        if (bits >= KING_BITS) return 4;\n        if (bits >= QUEEN_BITS) return 3;\n        if (bits >= KNIGHT_BITS) return 2;\n        if (bits >= ROOK_BITS) return 1;\n        return 0;\n    }\n\n    /// @notice Seat quota of a rank.\n    function quotaOf(uint8 cls) public pure returns (uint256) {\n        if (cls == 0) return QUOTA_PAWN;\n        if (cls == 1) return QUOTA_ROOK;\n        if (cls == 2) return QUOTA_KNIGHT;\n        if (cls == 3) return QUOTA_QUEEN;\n        return QUOTA_KING;\n    }\n\n    /// @notice Pure seating rule, exposed so anyone can verify it off the\n    ///         live counters: start at the proof's band (capped to Queen\n    ///         while King is locked), then drop rank by rank until a rank\n    ///         with a free seat is found. seated=false when the band and\n    ///         every rank below it are full.\n    function assignClass(uint256 bits, uint256 mintedNow, uint256[5] memory counts)\n        public\n        pure\n        returns (uint8 cls, bool seated)\n    {\n        cls = classForBits(bits);\n        if (cls == 4 && mintedNow < KING_UNLOCK_MINTS) cls = 3;\n        while (counts[cls] >= quotaOf(cls)) {\n            if (cls == 0) return (0, false);\n            cls -= 1;\n        }\n        return (cls, true);\n    }\n\n    /// @notice Whether King seats are unlocked yet (1,000 total claims).\n    function kingUnlocked() public view returns (bool) {\n        return totalMinted >= KING_UNLOCK_MINTS;\n    }\n\n    /// @notice Free-quota seats remaining for claims 1-2.\n    function freeRemaining() public view returns (uint256) {\n        return freeClaimed >= FREE_QUOTA ? 0 : FREE_QUOTA - freeClaimed;\n    }\n\n    function _leadingZeroBits(bytes32 h) internal pure returns (uint256 n) {\n        uint256 x = uint256(h);\n        if (x == 0) return 256;\n        while (x < (1 << 255)) {\n            x <<= 1;\n            n++;\n        }\n    }\n\n    // ---------------- views ----------------\n\n    /// @notice Total units claimed so far. Indexers and marketplaces\n    ///         expect a readable totalSupply().\n    function totalSupply() public view returns (uint256) {\n        return totalMinted;\n    }\n\n    /// @notice The rank a unit was seated at when claimed (fixed forever).\n    function classOf(uint256 tokenId) public view returns (uint8) {\n        _requireOwned(tokenId);\n        return _classOf[tokenId];\n    }\n\n    function className(uint8 cls) public pure returns (string memory) {\n        if (cls == 0) return \"Pawn\";\n        if (cls == 1) return \"Rook\";\n        if (cls == 2) return \"Knight\";\n        if (cls == 3) return \"Queen\";\n        return \"King\";\n    }\n\n    /// @notice The unit's power: the true bit count of its claim proof.\n    function proofBitsOf(uint256 tokenId) public view returns (uint256) {\n        _requireOwned(tokenId);\n        return _proofBits[tokenId];\n    }\n\n    function proofHashOf(uint256 tokenId) public view returns (bytes32) {\n        _requireOwned(tokenId);\n        return _proofHash[tokenId];\n    }\n\n    // ---------------- metadata ----------------\n\n    function baseURI() public view returns (string memory) {\n        return _baseTokenURI;\n    }\n\n    function _baseURI() internal view override returns (string memory) {\n        return _baseTokenURI;\n    }\n\n    // ---------------- owner ----------------\n\n    function setMintOpen(bool open) external onlyOwner {\n        mintOpen = open;\n        emit MintOpenChanged(open);\n    }\n\n    function setBaseURI(string calldata newBaseURI) external onlyOwner {\n        _baseTokenURI = newBaseURI;\n        emit BaseURIChanged(newBaseURI);\n    }\n\n    /// @notice Safety valve for the Agent ID gate: repoint the registry\n    ///         or disable the gate if the registry ever misbehaves.\n    function setAgentGate(bool enabled, address registry) external onlyOwner {\n        agentGateEnabled = enabled;\n        if (registry != address(0)) agentRegistry = registry;\n        emit AgentGateChanged(enabled, agentRegistry);\n    }\n\n    /// @notice Withdraw the full contract balance (all mint fees accrue\n    ///         to the project; there is no reserve split).\n    function withdraw() external onlyOwner {\n        uint256 bal = address(this).balance;\n        require(bal > 0, \"nothing to withdraw\");\n        (bool ok, ) = payable(owner()).call{value: bal}(\"\");\n        require(ok, \"withdraw failed\");\n    }\n\n    function supportsInterface(bytes4 interfaceId)\n        public\n        view\n        override(ERC721, ERC2981)\n        returns (bool)\n    {\n        return super.supportsInterface(interfaceId);\n    }\n}\n"},"npm/@openzeppelin/contracts@5.6.1/utils/Bytes.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.6.0) (utils/Bytes.sol)\n\npragma solidity ^0.8.24;\n\nimport {Math} from \"./math/Math.sol\";\n\n/**\n * @dev Bytes operations.\n */\nlibrary Bytes {\n    /**\n     * @dev Forward search for `s` in `buffer`\n     * * If `s` is present in the buffer, returns the index of the first instance\n     * * If `s` is not present in the buffer, returns type(uint256).max\n     *\n     * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf[Javascript's `Array.indexOf`]\n     */\n    function indexOf(bytes memory buffer, bytes1 s) internal pure returns (uint256) {\n        return indexOf(buffer, s, 0);\n    }\n\n    /**\n     * @dev Forward search for `s` in `buffer` starting at position `pos`\n     * * If `s` is present in the buffer (at or after `pos`), returns the index of the next instance\n     * * If `s` is not present in the buffer (at or after `pos`), returns type(uint256).max\n     *\n     * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf[Javascript's `Array.indexOf`]\n     */\n    function indexOf(bytes memory buffer, bytes1 s, uint256 pos) internal pure returns (uint256) {\n        uint256 length = buffer.length;\n        for (uint256 i = pos; i < length; ++i) {\n            if (bytes1(_unsafeReadBytesOffset(buffer, i)) == s) {\n                return i;\n            }\n        }\n        return type(uint256).max;\n    }\n\n    /**\n     * @dev Backward search for `s` in `buffer`\n     * * If `s` is present in the buffer, returns the index of the last instance\n     * * If `s` is not present in the buffer, returns type(uint256).max\n     *\n     * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/lastIndexOf[Javascript's `Array.lastIndexOf`]\n     */\n    function lastIndexOf(bytes memory buffer, bytes1 s) internal pure returns (uint256) {\n        return lastIndexOf(buffer, s, type(uint256).max);\n    }\n\n    /**\n     * @dev Backward search for `s` in `buffer` starting at position `pos`\n     * * If `s` is present in the buffer (at or before `pos`), returns the index of the previous instance\n     * * If `s` is not present in the buffer (at or before `pos`), returns type(uint256).max\n     *\n     * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/lastIndexOf[Javascript's `Array.lastIndexOf`]\n     */\n    function lastIndexOf(bytes memory buffer, bytes1 s, uint256 pos) internal pure returns (uint256) {\n        unchecked {\n            uint256 length = buffer.length;\n            for (uint256 i = Math.min(Math.saturatingAdd(pos, 1), length); i > 0; --i) {\n                if (bytes1(_unsafeReadBytesOffset(buffer, i - 1)) == s) {\n                    return i - 1;\n                }\n            }\n            return type(uint256).max;\n        }\n    }\n\n    /**\n     * @dev Copies the content of `buffer`, from `start` (included) to the end of `buffer` into a new bytes object in\n     * memory.\n     *\n     * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice[Javascript's `Array.slice`]\n     */\n    function slice(bytes memory buffer, uint256 start) internal pure returns (bytes memory) {\n        return slice(buffer, start, buffer.length);\n    }\n\n    /**\n     * @dev Copies the content of `buffer`, from `start` (included) to `end` (excluded) into a new bytes object in\n     * memory. The `end` argument is truncated to the length of the `buffer`.\n     *\n     * NOTE: replicates the behavior of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice[Javascript's `Array.slice`]\n     */\n    function slice(bytes memory buffer, uint256 start, uint256 end) internal pure returns (bytes memory) {\n        // sanitize\n        end = Math.min(end, buffer.length);\n        start = Math.min(start, end);\n\n        // allocate and copy\n        bytes memory result = new bytes(end - start);\n        assembly (\"memory-safe\") {\n            mcopy(add(result, 0x20), add(add(buffer, 0x20), start), sub(end, start))\n        }\n\n        return result;\n    }\n\n    /**\n     * @dev Moves the content of `buffer`, from `start` (included) to the end of `buffer` to the start of that buffer,\n     * and shrinks the buffer length accordingly, effectively overriding the content of buffer with buffer[start:].\n     *\n     * NOTE: This function modifies the provided buffer in place. If you need to preserve the original buffer, use {slice} instead\n     */\n    function splice(bytes memory buffer, uint256 start) internal pure returns (bytes memory) {\n        return splice(buffer, start, buffer.length);\n    }\n\n    /**\n     * @dev Moves the content of `buffer`, from `start` (included) to `end` (excluded) to the start of that buffer,\n     * and shrinks the buffer length accordingly, effectively overriding the content of buffer with buffer[start:end].\n     * The `end` argument is truncated to the length of the `buffer`.\n     *\n     * NOTE: This function modifies the provided buffer in place. If you need to preserve the original buffer, use {slice} instead\n     */\n    function splice(bytes memory buffer, uint256 start, uint256 end) internal pure returns (bytes memory) {\n        // sanitize\n        end = Math.min(end, buffer.length);\n        start = Math.min(start, end);\n\n        // move and resize\n        assembly (\"memory-safe\") {\n            mcopy(add(buffer, 0x20), add(add(buffer, 0x20), start), sub(end, start))\n            mstore(buffer, sub(end, start))\n        }\n\n        return buffer;\n    }\n\n    /**\n     * @dev Replaces bytes in `buffer` starting at `pos` with all bytes from `replacement`.\n     *\n     * Parameters are clamped to valid ranges (i.e. `pos` is clamped to `[0, buffer.length]`).\n     * If `pos >= buffer.length`, no replacement occurs and the buffer is returned unchanged.\n     *\n     * NOTE: This function modifies the provided buffer in place.\n     */\n    function replace(bytes memory buffer, uint256 pos, bytes memory replacement) internal pure returns (bytes memory) {\n        return replace(buffer, pos, replacement, 0, replacement.length);\n    }\n\n    /**\n     * @dev Replaces bytes in `buffer` starting at `pos` with bytes from `replacement` starting at `offset`.\n     * Copies at most `length` bytes from `replacement` to `buffer`.\n     *\n     * Parameters are clamped to valid ranges (i.e. `pos` is clamped to `[0, buffer.length]`, `offset` is\n     * clamped to `[0, replacement.length]`, and `length` is clamped to `min(length, replacement.length - offset,\n     * buffer.length - pos))`. If `pos >= buffer.length` or `offset >= replacement.length`, no replacement occurs\n     * and the buffer is returned unchanged.\n     *\n     * NOTE: This function modifies the provided buffer in place.\n     */\n    function replace(\n        bytes memory buffer,\n        uint256 pos,\n        bytes memory replacement,\n        uint256 offset,\n        uint256 length\n    ) internal pure returns (bytes memory) {\n        // sanitize\n        pos = Math.min(pos, buffer.length);\n        offset = Math.min(offset, replacement.length);\n        length = Math.min(length, Math.min(replacement.length - offset, buffer.length - pos));\n\n        // replace\n        assembly (\"memory-safe\") {\n            mcopy(add(add(buffer, 0x20), pos), add(add(replacement, 0x20), offset), length)\n        }\n\n        return buffer;\n    }\n\n    /**\n     * @dev Concatenate an array of bytes into a single bytes object.\n     *\n     * For fixed bytes types, we recommend using the solidity built-in `bytes.concat` or (equivalent)\n     * `abi.encodePacked`.\n     *\n     * NOTE: this could be done in assembly with a single loop that expands starting at the FMP, but that would be\n     * significantly less readable. It might be worth benchmarking the savings of the full-assembly approach.\n     */\n    function concat(bytes[] memory buffers) internal pure returns (bytes memory) {\n        uint256 length = 0;\n        for (uint256 i = 0; i < buffers.length; ++i) {\n            length += buffers[i].length;\n        }\n\n        bytes memory result = new bytes(length);\n\n        uint256 offset = 0x20;\n        for (uint256 i = 0; i < buffers.length; ++i) {\n            bytes memory input = buffers[i];\n            assembly (\"memory-safe\") {\n                mcopy(add(result, offset), add(input, 0x20), mload(input))\n            }\n            unchecked {\n                offset += input.length;\n            }\n        }\n\n        return result;\n    }\n\n    /**\n     * @dev Split each byte in `input` into two nibbles (4 bits each)\n     *\n     * Example: hex\"01234567\" → hex\"0001020304050607\"\n     */\n    function toNibbles(bytes memory input) internal pure returns (bytes memory output) {\n        assembly (\"memory-safe\") {\n            let length := mload(input)\n            output := mload(0x40)\n            mstore(0x40, add(add(output, 0x20), mul(length, 2)))\n            mstore(output, mul(length, 2))\n            for {\n                let i := 0\n            } lt(i, length) {\n                i := add(i, 0x10)\n            } {\n                let chunk := shr(128, mload(add(add(input, 0x20), i)))\n                chunk := and(\n                    0x0000000000000000ffffffffffffffff0000000000000000ffffffffffffffff,\n                    or(shl(64, chunk), chunk)\n                )\n                chunk := and(\n                    0x00000000ffffffff00000000ffffffff00000000ffffffff00000000ffffffff,\n                    or(shl(32, chunk), chunk)\n                )\n                chunk := and(\n                    0x0000ffff0000ffff0000ffff0000ffff0000ffff0000ffff0000ffff0000ffff,\n                    or(shl(16, chunk), chunk)\n                )\n                chunk := and(\n                    0x00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff,\n                    or(shl(8, chunk), chunk)\n                )\n                chunk := and(\n                    0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f,\n                    or(shl(4, chunk), chunk)\n                )\n                mstore(add(add(output, 0x20), mul(i, 2)), chunk)\n            }\n        }\n    }\n\n    /**\n     * @dev Returns true if the two byte buffers are equal.\n     */\n    function equal(bytes memory a, bytes memory b) internal pure returns (bool) {\n        return a.length == b.length && keccak256(a) == keccak256(b);\n    }\n\n    /**\n     * @dev Reverses the byte order of a bytes32 value, converting between little-endian and big-endian.\n     * Inspired by https://graphics.stanford.edu/~seander/bithacks.html#ReverseParallel[Reverse Parallel]\n     */\n    function reverseBytes32(bytes32 value) internal pure returns (bytes32) {\n        value = // swap bytes\n            ((value >> 8) & 0x00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF) |\n            ((value & 0x00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF) << 8);\n        value = // swap 2-byte long pairs\n            ((value >> 16) & 0x0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF) |\n            ((value & 0x0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF) << 16);\n        value = // swap 4-byte long pairs\n            ((value >> 32) & 0x00000000FFFFFFFF00000000FFFFFFFF00000000FFFFFFFF00000000FFFFFFFF) |\n            ((value & 0x00000000FFFFFFFF00000000FFFFFFFF00000000FFFFFFFF00000000FFFFFFFF) << 32);\n        value = // swap 8-byte long pairs\n            ((value >> 64) & 0x0000000000000000FFFFFFFFFFFFFFFF0000000000000000FFFFFFFFFFFFFFFF) |\n            ((value & 0x0000000000000000FFFFFFFFFFFFFFFF0000000000000000FFFFFFFFFFFFFFFF) << 64);\n        return (value >> 128) | (value << 128); // swap 16-byte long pairs\n    }\n\n    /// @dev Same as {reverseBytes32} but optimized for 128-bit values.\n    function reverseBytes16(bytes16 value) internal pure returns (bytes16) {\n        value = // swap bytes\n            ((value & 0xFF00FF00FF00FF00FF00FF00FF00FF00) >> 8) |\n            ((value & 0x00FF00FF00FF00FF00FF00FF00FF00FF) << 8);\n        value = // swap 2-byte long pairs\n            ((value & 0xFFFF0000FFFF0000FFFF0000FFFF0000) >> 16) |\n            ((value & 0x0000FFFF0000FFFF0000FFFF0000FFFF) << 16);\n        value = // swap 4-byte long pairs\n            ((value & 0xFFFFFFFF00000000FFFFFFFF00000000) >> 32) |\n            ((value & 0x00000000FFFFFFFF00000000FFFFFFFF) << 32);\n        return (value >> 64) | (value << 64); // swap 8-byte long pairs\n    }\n\n    /// @dev Same as {reverseBytes32} but optimized for 64-bit values.\n    function reverseBytes8(bytes8 value) internal pure returns (bytes8) {\n        value = ((value & 0xFF00FF00FF00FF00) >> 8) | ((value & 0x00FF00FF00FF00FF) << 8); // swap bytes\n        value = ((value & 0xFFFF0000FFFF0000) >> 16) | ((value & 0x0000FFFF0000FFFF) << 16); // swap 2-byte long pairs\n        return (value >> 32) | (value << 32); // swap 4-byte long pairs\n    }\n\n    /// @dev Same as {reverseBytes32} but optimized for 32-bit values.\n    function reverseBytes4(bytes4 value) internal pure returns (bytes4) {\n        value = ((value & 0xFF00FF00) >> 8) | ((value & 0x00FF00FF) << 8); // swap bytes\n        return (value >> 16) | (value << 16); // swap 2-byte long pairs\n    }\n\n    /// @dev Same as {reverseBytes32} but optimized for 16-bit values.\n    function reverseBytes2(bytes2 value) internal pure returns (bytes2) {\n        return (value >> 8) | (value << 8);\n    }\n\n    /**\n     * @dev Counts the number of leading zero bits a bytes array. Returns `8 * buffer.length`\n     * if the buffer is all zeros.\n     */\n    function clz(bytes memory buffer) internal pure returns (uint256) {\n        for (uint256 i = 0; i < buffer.length; i += 0x20) {\n            bytes32 chunk = _unsafeReadBytesOffset(buffer, i);\n            if (chunk != bytes32(0)) {\n                return Math.min(8 * i + Math.clz(uint256(chunk)), 8 * buffer.length);\n            }\n        }\n        return 8 * buffer.length;\n    }\n\n    /**\n     * @dev Reads a bytes32 from a bytes array without bounds checking.\n     *\n     * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n     * assembly block as such would prevent some optimizations.\n     */\n    function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n        // This is not memory safe in the general case, but all calls to this private function are within bounds.\n        assembly (\"memory-safe\") {\n            value := mload(add(add(buffer, 0x20), offset))\n        }\n    }\n}\n"},"npm/@openzeppelin/contracts@5.6.1/utils/Panic.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Helper library for emitting standardized panic codes.\n *\n * ```solidity\n * contract Example {\n *      using Panic for uint256;\n *\n *      // Use any of the declared internal constants\n *      function foo() { Panic.GENERIC.panic(); }\n *\n *      // Alternatively\n *      function foo() { Panic.panic(Panic.GENERIC); }\n * }\n * ```\n *\n * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].\n *\n * _Available since v5.1._\n */\n// slither-disable-next-line unused-state\nlibrary Panic {\n    /// @dev generic / unspecified error\n    uint256 internal constant GENERIC = 0x00;\n    /// @dev used by the assert() builtin\n    uint256 internal constant ASSERT = 0x01;\n    /// @dev arithmetic underflow or overflow\n    uint256 internal constant UNDER_OVERFLOW = 0x11;\n    /// @dev division or modulo by zero\n    uint256 internal constant DIVISION_BY_ZERO = 0x12;\n    /// @dev enum conversion error\n    uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;\n    /// @dev invalid encoding in storage\n    uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;\n    /// @dev empty array pop\n    uint256 internal constant EMPTY_ARRAY_POP = 0x31;\n    /// @dev array out of bounds access\n    uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;\n    /// @dev resource error (too large allocation or too large array)\n    uint256 internal constant RESOURCE_ERROR = 0x41;\n    /// @dev calling invalid internal function\n    uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;\n\n    /// @dev Reverts with a panic code. Recommended to use with\n    /// the internal constants with predefined codes.\n    function panic(uint256 code) internal pure {\n        assembly (\"memory-safe\") {\n            mstore(0x00, 0x4e487b71)\n            mstore(0x20, code)\n            revert(0x1c, 0x24)\n        }\n    }\n}\n"},"npm/@openzeppelin/contracts@5.6.1/utils/Context.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n    function _msgSender() internal view virtual returns (address) {\n        return msg.sender;\n    }\n\n    function _msgData() internal view virtual returns (bytes calldata) {\n        return msg.data;\n    }\n\n    function _contextSuffixLength() internal view virtual returns (uint256) {\n        return 0;\n    }\n}\n"},"npm/@openzeppelin/contracts@5.6.1/utils/Strings.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.6.0) (utils/Strings.sol)\n\npragma solidity ^0.8.24;\n\nimport {Math} from \"./math/Math.sol\";\nimport {SafeCast} from \"./math/SafeCast.sol\";\nimport {SignedMath} from \"./math/SignedMath.sol\";\nimport {Bytes} from \"./Bytes.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n    using SafeCast for *;\n\n    bytes16 private constant HEX_DIGITS = \"0123456789abcdef\";\n    uint8 private constant ADDRESS_LENGTH = 20;\n    uint256 private constant SPECIAL_CHARS_LOOKUP =\n        0xffffffff | // first 32 bits corresponding to the control characters (U+0000 to U+001F)\n            (1 << 0x22) | // double quote\n            (1 << 0x5c); // backslash\n\n    /**\n     * @dev The `value` string doesn't fit in the specified `length`.\n     */\n    error StringsInsufficientHexLength(uint256 value, uint256 length);\n\n    /**\n     * @dev The string being parsed contains characters that are not in scope of the given base.\n     */\n    error StringsInvalidChar();\n\n    /**\n     * @dev The string being parsed is not a properly formatted address.\n     */\n    error StringsInvalidAddressFormat();\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n     */\n    function toString(uint256 value) internal pure returns (string memory) {\n        unchecked {\n            uint256 length = Math.log10(value) + 1;\n            string memory buffer = new string(length);\n            uint256 ptr;\n            assembly (\"memory-safe\") {\n                ptr := add(add(buffer, 0x20), length)\n            }\n            while (true) {\n                ptr--;\n                assembly (\"memory-safe\") {\n                    mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\n                }\n                value /= 10;\n                if (value == 0) break;\n            }\n            return buffer;\n        }\n    }\n\n    /**\n     * @dev Converts a `int256` to its ASCII `string` decimal representation.\n     */\n    function toStringSigned(int256 value) internal pure returns (string memory) {\n        return string.concat(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value)));\n    }\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n     */\n    function toHexString(uint256 value) internal pure returns (string memory) {\n        unchecked {\n            return toHexString(value, Math.log256(value) + 1);\n        }\n    }\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n     */\n    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n        uint256 localValue = value;\n        bytes memory buffer = new bytes(2 * length + 2);\n        buffer[0] = \"0\";\n        buffer[1] = \"x\";\n        for (uint256 i = 2 * length + 1; i > 1; --i) {\n            buffer[i] = HEX_DIGITS[localValue & 0xf];\n            localValue >>= 4;\n        }\n        if (localValue != 0) {\n            revert StringsInsufficientHexLength(value, length);\n        }\n        return string(buffer);\n    }\n\n    /**\n     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\n     * representation.\n     */\n    function toHexString(address addr) internal pure returns (string memory) {\n        return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\n    }\n\n    /**\n     * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal\n     * representation, according to EIP-55.\n     */\n    function toChecksumHexString(address addr) internal pure returns (string memory) {\n        bytes memory buffer = bytes(toHexString(addr));\n\n        // hash the hex part of buffer (skip length + 2 bytes, length 40)\n        uint256 hashValue;\n        assembly (\"memory-safe\") {\n            hashValue := shr(96, keccak256(add(buffer, 0x22), 40))\n        }\n\n        for (uint256 i = 41; i > 1; --i) {\n            // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)\n            if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {\n                // case shift by xoring with 0x20\n                buffer[i] ^= 0x20;\n            }\n            hashValue >>= 4;\n        }\n        return string(buffer);\n    }\n\n    /**\n     * @dev Converts a `bytes` buffer to its ASCII `string` hexadecimal representation.\n     */\n    function toHexString(bytes memory input) internal pure returns (string memory) {\n        unchecked {\n            bytes memory buffer = new bytes(2 * input.length + 2);\n            buffer[0] = \"0\";\n            buffer[1] = \"x\";\n            for (uint256 i = 0; i < input.length; ++i) {\n                uint8 v = uint8(input[i]);\n                buffer[2 * i + 2] = HEX_DIGITS[v >> 4];\n                buffer[2 * i + 3] = HEX_DIGITS[v & 0xf];\n            }\n            return string(buffer);\n        }\n    }\n\n    /**\n     * @dev Returns true if the two strings are equal.\n     */\n    function equal(string memory a, string memory b) internal pure returns (bool) {\n        return Bytes.equal(bytes(a), bytes(b));\n    }\n\n    /**\n     * @dev Parse a decimal string and returns the value as a `uint256`.\n     *\n     * Requirements:\n     * - The string must be formatted as `[0-9]*`\n     * - The result must fit into an `uint256` type\n     */\n    function parseUint(string memory input) internal pure returns (uint256) {\n        return parseUint(input, 0, bytes(input).length);\n    }\n\n    /**\n     * @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and\n     * `end` (excluded).\n     *\n     * Requirements:\n     * - The substring must be formatted as `[0-9]*`\n     * - The result must fit into an `uint256` type\n     */\n    function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n        (bool success, uint256 value) = tryParseUint(input, begin, end);\n        if (!success) revert StringsInvalidChar();\n        return value;\n    }\n\n    /**\n     * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character.\n     *\n     * NOTE: This function will revert if the result does not fit in a `uint256`.\n     */\n    function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) {\n        return _tryParseUintUncheckedBounds(input, 0, bytes(input).length);\n    }\n\n    /**\n     * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n     * character.\n     *\n     * NOTE: This function will revert if the result does not fit in a `uint256`.\n     */\n    function tryParseUint(\n        string memory input,\n        uint256 begin,\n        uint256 end\n    ) internal pure returns (bool success, uint256 value) {\n        if (end > bytes(input).length || begin > end) return (false, 0);\n        return _tryParseUintUncheckedBounds(input, begin, end);\n    }\n\n    /**\n     * @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n     * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n     */\n    function _tryParseUintUncheckedBounds(\n        string memory input,\n        uint256 begin,\n        uint256 end\n    ) private pure returns (bool success, uint256 value) {\n        bytes memory buffer = bytes(input);\n\n        uint256 result = 0;\n        for (uint256 i = begin; i < end; ++i) {\n            uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n            if (chr > 9) return (false, 0);\n            result *= 10;\n            result += chr;\n        }\n        return (true, result);\n    }\n\n    /**\n     * @dev Parse a decimal string and returns the value as a `int256`.\n     *\n     * Requirements:\n     * - The string must be formatted as `[-+]?[0-9]*`\n     * - The result must fit in an `int256` type.\n     */\n    function parseInt(string memory input) internal pure returns (int256) {\n        return parseInt(input, 0, bytes(input).length);\n    }\n\n    /**\n     * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and\n     * `end` (excluded).\n     *\n     * Requirements:\n     * - The substring must be formatted as `[-+]?[0-9]*`\n     * - The result must fit in an `int256` type.\n     */\n    function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) {\n        (bool success, int256 value) = tryParseInt(input, begin, end);\n        if (!success) revert StringsInvalidChar();\n        return value;\n    }\n\n    /**\n     * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if\n     * the result does not fit in a `int256`.\n     *\n     * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n     */\n    function tryParseInt(string memory input) internal pure returns (bool success, int256 value) {\n        return _tryParseIntUncheckedBounds(input, 0, bytes(input).length);\n    }\n\n    uint256 private constant ABS_MIN_INT256 = 2 ** 255;\n\n    /**\n     * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n     * character or if the result does not fit in a `int256`.\n     *\n     * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n     */\n    function tryParseInt(\n        string memory input,\n        uint256 begin,\n        uint256 end\n    ) internal pure returns (bool success, int256 value) {\n        if (end > bytes(input).length || begin > end) return (false, 0);\n        return _tryParseIntUncheckedBounds(input, begin, end);\n    }\n\n    /**\n     * @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that\n     * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n     */\n    function _tryParseIntUncheckedBounds(\n        string memory input,\n        uint256 begin,\n        uint256 end\n    ) private pure returns (bool success, int256 value) {\n        bytes memory buffer = bytes(input);\n\n        // Check presence of a negative sign.\n        bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n        bool positiveSign = sign == bytes1(\"+\");\n        bool negativeSign = sign == bytes1(\"-\");\n        uint256 offset = (positiveSign || negativeSign).toUint();\n\n        (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end);\n\n        if (absSuccess && absValue < ABS_MIN_INT256) {\n            return (true, negativeSign ? -int256(absValue) : int256(absValue));\n        } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) {\n            return (true, type(int256).min);\n        } else return (false, 0);\n    }\n\n    /**\n     * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as a `uint256`.\n     *\n     * Requirements:\n     * - The string must be formatted as `(0x)?[0-9a-fA-F]*`\n     * - The result must fit in an `uint256` type.\n     */\n    function parseHexUint(string memory input) internal pure returns (uint256) {\n        return parseHexUint(input, 0, bytes(input).length);\n    }\n\n    /**\n     * @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and\n     * `end` (excluded).\n     *\n     * Requirements:\n     * - The substring must be formatted as `(0x)?[0-9a-fA-F]*`\n     * - The result must fit in an `uint256` type.\n     */\n    function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n        (bool success, uint256 value) = tryParseHexUint(input, begin, end);\n        if (!success) revert StringsInvalidChar();\n        return value;\n    }\n\n    /**\n     * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character.\n     *\n     * NOTE: This function will revert if the result does not fit in a `uint256`.\n     */\n    function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) {\n        return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length);\n    }\n\n    /**\n     * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an\n     * invalid character.\n     *\n     * NOTE: This function will revert if the result does not fit in a `uint256`.\n     */\n    function tryParseHexUint(\n        string memory input,\n        uint256 begin,\n        uint256 end\n    ) internal pure returns (bool success, uint256 value) {\n        if (end > bytes(input).length || begin > end) return (false, 0);\n        return _tryParseHexUintUncheckedBounds(input, begin, end);\n    }\n\n    /**\n     * @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n     * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n     */\n    function _tryParseHexUintUncheckedBounds(\n        string memory input,\n        uint256 begin,\n        uint256 end\n    ) private pure returns (bool success, uint256 value) {\n        bytes memory buffer = bytes(input);\n\n        // skip 0x prefix if present\n        bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n        uint256 offset = hasPrefix.toUint() * 2;\n\n        uint256 result = 0;\n        for (uint256 i = begin + offset; i < end; ++i) {\n            uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n            if (chr > 15) return (false, 0);\n            result *= 16;\n            unchecked {\n                // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).\n                // This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked.\n                result += chr;\n            }\n        }\n        return (true, result);\n    }\n\n    /**\n     * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as an `address`.\n     *\n     * Requirements:\n     * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}`\n     */\n    function parseAddress(string memory input) internal pure returns (address) {\n        return parseAddress(input, 0, bytes(input).length);\n    }\n\n    /**\n     * @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and\n     * `end` (excluded).\n     *\n     * Requirements:\n     * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}`\n     */\n    function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) {\n        (bool success, address value) = tryParseAddress(input, begin, end);\n        if (!success) revert StringsInvalidAddressFormat();\n        return value;\n    }\n\n    /**\n     * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly\n     * formatted address. See {parseAddress-string} requirements.\n     */\n    function tryParseAddress(string memory input) internal pure returns (bool success, address value) {\n        return tryParseAddress(input, 0, bytes(input).length);\n    }\n\n    /**\n     * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly\n     * formatted address. See {parseAddress-string-uint256-uint256} requirements.\n     */\n    function tryParseAddress(\n        string memory input,\n        uint256 begin,\n        uint256 end\n    ) internal pure returns (bool success, address value) {\n        if (end > bytes(input).length || begin > end) return (false, address(0));\n\n        bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n        uint256 expectedLength = 40 + hasPrefix.toUint() * 2;\n\n        // check that input is the correct length\n        if (end - begin == expectedLength) {\n            // length guarantees that this does not overflow, and value is at most type(uint160).max\n            (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end);\n            return (s, address(uint160(v)));\n        } else {\n            return (false, address(0));\n        }\n    }\n\n    function _tryParseChr(bytes1 chr) private pure returns (uint8) {\n        uint8 value = uint8(chr);\n\n        // Try to parse `chr`:\n        // - Case 1: [0-9]\n        // - Case 2: [a-f]\n        // - Case 3: [A-F]\n        // - otherwise not supported\n        unchecked {\n            if (value > 47 && value < 58) value -= 48;\n            else if (value > 96 && value < 103) value -= 87;\n            else if (value > 64 && value < 71) value -= 55;\n            else return type(uint8).max;\n        }\n\n        return value;\n    }\n\n    /**\n     * @dev Escape special characters in JSON strings. This can be useful to prevent JSON injection in NFT metadata.\n     *\n     * WARNING: This function should only be used in double quoted JSON strings. Single quotes are not escaped.\n     *\n     * NOTE: This function escapes backslashes (including those in \\uXXXX sequences) and the characters in ranges\n     * defined in section 2.5 of RFC-4627 (U+0000 to U+001F, U+0022 and U+005C). All control characters in U+0000\n     * to U+001F are escaped (\\b, \\t, \\n, \\f, \\r use short form; others use \\u00XX). ECMAScript's `JSON.parse` does\n     * recover escaped unicode characters that are not in this range, but other tooling may provide different results.\n     */\n    function escapeJSON(string memory input) internal pure returns (string memory) {\n        bytes memory buffer = bytes(input);\n\n        // Put output at the FMP. Memory will be reserved later when we figure out the actual length of the escaped\n        // string. All write are done using _unsafeWriteBytesOffset, which avoid the (expensive) length checks for\n        // each character written.\n        bytes memory output;\n        assembly (\"memory-safe\") {\n            output := mload(0x40)\n        }\n        uint256 outputLength = 0;\n\n        for (uint256 i = 0; i < buffer.length; ++i) {\n            uint8 char = uint8(bytes1(_unsafeReadBytesOffset(buffer, i)));\n            if (((SPECIAL_CHARS_LOOKUP & (1 << char)) != 0)) {\n                _unsafeWriteBytesOffset(output, outputLength++, \"\\\\\");\n                if (char == 0x08) _unsafeWriteBytesOffset(output, outputLength++, \"b\");\n                else if (char == 0x09) _unsafeWriteBytesOffset(output, outputLength++, \"t\");\n                else if (char == 0x0a) _unsafeWriteBytesOffset(output, outputLength++, \"n\");\n                else if (char == 0x0c) _unsafeWriteBytesOffset(output, outputLength++, \"f\");\n                else if (char == 0x0d) _unsafeWriteBytesOffset(output, outputLength++, \"r\");\n                else if (char == 0x5c) _unsafeWriteBytesOffset(output, outputLength++, \"\\\\\");\n                else if (char == 0x22) {\n                    // solhint-disable-next-line quotes\n                    _unsafeWriteBytesOffset(output, outputLength++, '\"');\n                } else {\n                    // U+0000 to U+001F without short form: output \\u00XX\n                    _unsafeWriteBytesOffset(output, outputLength++, \"u\");\n                    _unsafeWriteBytesOffset(output, outputLength++, \"0\");\n                    _unsafeWriteBytesOffset(output, outputLength++, \"0\");\n                    _unsafeWriteBytesOffset(output, outputLength++, HEX_DIGITS[char >> 4]);\n                    _unsafeWriteBytesOffset(output, outputLength++, HEX_DIGITS[char & 0x0f]);\n                }\n            } else {\n                _unsafeWriteBytesOffset(output, outputLength++, bytes1(char));\n            }\n        }\n        // write the actual length and reserve memory\n        assembly (\"memory-safe\") {\n            mstore(output, outputLength)\n            mstore(0x40, add(output, add(outputLength, 0x20)))\n        }\n\n        return string(output);\n    }\n\n    /**\n     * @dev Reads a bytes32 from a bytes array without bounds checking.\n     *\n     * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n     * assembly block as such would prevent some optimizations.\n     */\n    function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n        // This is not memory safe in the general case, but all calls to this private function are within bounds.\n        assembly (\"memory-safe\") {\n            value := mload(add(add(buffer, 0x20), offset))\n        }\n    }\n\n    /**\n     * @dev Write a bytes1 to a bytes array without bounds checking.\n     *\n     * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n     * assembly block as such would prevent some optimizations.\n     */\n    function _unsafeWriteBytesOffset(bytes memory buffer, uint256 offset, bytes1 value) private pure {\n        // This is not memory safe in the general case, but all calls to this private function are within bounds.\n        assembly (\"memory-safe\") {\n            mstore8(add(add(buffer, 0x20), offset), shr(248, value))\n        }\n    }\n}\n"},"npm/@openzeppelin/contracts@5.6.1/access/Ownable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../utils/Context.sol\";\n\n/**\n * @dev Contract module which provides a basic access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * The initial owner is set to the address provided by the deployer. This can\n * later be changed with {transferOwnership}.\n *\n * This module is used through inheritance. It will make available the modifier\n * `onlyOwner`, which can be applied to your functions to restrict their use to\n * the owner.\n */\nabstract contract Ownable is Context {\n    address private _owner;\n\n    /**\n     * @dev The caller account is not authorized to perform an operation.\n     */\n    error OwnableUnauthorizedAccount(address account);\n\n    /**\n     * @dev The owner is not a valid owner account. (eg. `address(0)`)\n     */\n    error OwnableInvalidOwner(address owner);\n\n    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n    /**\n     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n     */\n    constructor(address initialOwner) {\n        if (initialOwner == address(0)) {\n            revert OwnableInvalidOwner(address(0));\n        }\n        _transferOwnership(initialOwner);\n    }\n\n    /**\n     * @dev Throws if called by any account other than the owner.\n     */\n    modifier onlyOwner() {\n        _checkOwner();\n        _;\n    }\n\n    /**\n     * @dev Returns the address of the current owner.\n     */\n    function owner() public view virtual returns (address) {\n        return _owner;\n    }\n\n    /**\n     * @dev Throws if the sender is not the owner.\n     */\n    function _checkOwner() internal view virtual {\n        if (owner() != _msgSender()) {\n            revert OwnableUnauthorizedAccount(_msgSender());\n        }\n    }\n\n    /**\n     * @dev Leaves the contract without owner. It will not be possible to call\n     * `onlyOwner` functions. Can only be called by the current owner.\n     *\n     * NOTE: Renouncing ownership will leave the contract without an owner,\n     * thereby disabling any functionality that is only available to the owner.\n     */\n    function renounceOwnership() public virtual onlyOwner {\n        _transferOwnership(address(0));\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\n     * Can only be called by the current owner.\n     */\n    function transferOwnership(address newOwner) public virtual onlyOwner {\n        if (newOwner == address(0)) {\n            revert OwnableInvalidOwner(address(0));\n        }\n        _transferOwnership(newOwner);\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\n     * Internal function without access restriction.\n     */\n    function _transferOwnership(address newOwner) internal virtual {\n        address oldOwner = _owner;\n        _owner = newOwner;\n        emit OwnershipTransferred(oldOwner, newOwner);\n    }\n}\n"},"npm/@openzeppelin/contracts@5.6.1/utils/math/Math.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.6.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.20;\n\nimport {Panic} from \"../Panic.sol\";\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n    enum Rounding {\n        Floor, // Toward negative infinity\n        Ceil, // Toward positive infinity\n        Trunc, // Toward zero\n        Expand // Away from zero\n    }\n\n    /**\n     * @dev Return the 512-bit addition of two uint256.\n     *\n     * The result is stored in two 256 variables such that sum = high * 2²⁵⁶ + low.\n     */\n    function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n        assembly (\"memory-safe\") {\n            low := add(a, b)\n            high := lt(low, a)\n        }\n    }\n\n    /**\n     * @dev Return the 512-bit multiplication of two uint256.\n     *\n     * The result is stored in two 256 variables such that product = high * 2²⁵⁶ + low.\n     */\n    function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n        // 512-bit multiply [high low] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use\n        // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n        // variables such that product = high * 2²⁵⁶ + low.\n        assembly (\"memory-safe\") {\n            let mm := mulmod(a, b, not(0))\n            low := mul(a, b)\n            high := sub(sub(mm, low), lt(mm, low))\n        }\n    }\n\n    /**\n     * @dev Returns the addition of two unsigned integers, with a success flag (no overflow).\n     */\n    function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            uint256 c = a + b;\n            success = c >= a;\n            result = c * SafeCast.toUint(success);\n        }\n    }\n\n    /**\n     * @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow).\n     */\n    function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            uint256 c = a - b;\n            success = c <= a;\n            result = c * SafeCast.toUint(success);\n        }\n    }\n\n    /**\n     * @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow).\n     */\n    function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            uint256 c = a * b;\n            assembly (\"memory-safe\") {\n                // Only true when the multiplication doesn't overflow\n                // (c / a == b) || (a == 0)\n                success := or(eq(div(c, a), b), iszero(a))\n            }\n            // equivalent to: success ? c : 0\n            result = c * SafeCast.toUint(success);\n        }\n    }\n\n    /**\n     * @dev Returns the division of two unsigned integers, with a success flag (no division by zero).\n     */\n    function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            success = b > 0;\n            assembly (\"memory-safe\") {\n                // The `DIV` opcode returns zero when the denominator is 0.\n                result := div(a, b)\n            }\n        }\n    }\n\n    /**\n     * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).\n     */\n    function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n        unchecked {\n            success = b > 0;\n            assembly (\"memory-safe\") {\n                // The `MOD` opcode returns zero when the denominator is 0.\n                result := mod(a, b)\n            }\n        }\n    }\n\n    /**\n     * @dev Unsigned saturating addition, bounds to `2²⁵⁶ - 1` instead of overflowing.\n     */\n    function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) {\n        (bool success, uint256 result) = tryAdd(a, b);\n        return ternary(success, result, type(uint256).max);\n    }\n\n    /**\n     * @dev Unsigned saturating subtraction, bounds to zero instead of overflowing.\n     */\n    function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) {\n        (, uint256 result) = trySub(a, b);\n        return result;\n    }\n\n    /**\n     * @dev Unsigned saturating multiplication, bounds to `2²⁵⁶ - 1` instead of overflowing.\n     */\n    function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) {\n        (bool success, uint256 result) = tryMul(a, b);\n        return ternary(success, result, type(uint256).max);\n    }\n\n    /**\n     * @dev Branchless ternary evaluation for `condition ? a : b`. Gas costs are constant.\n     *\n     * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n     * However, the compiler may optimize Solidity ternary operations (i.e. `condition ? a : b`) to only compute\n     * one branch when needed, making this function more expensive.\n     */\n    function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {\n        unchecked {\n            // branchless ternary works because:\n            // b ^ (a ^ b) == a\n            // b ^ 0 == b\n            return b ^ ((a ^ b) * SafeCast.toUint(condition));\n        }\n    }\n\n    /**\n     * @dev Returns the largest of two numbers.\n     */\n    function max(uint256 a, uint256 b) internal pure returns (uint256) {\n        return ternary(a > b, a, b);\n    }\n\n    /**\n     * @dev Returns the smallest of two numbers.\n     */\n    function min(uint256 a, uint256 b) internal pure returns (uint256) {\n        return ternary(a < b, a, b);\n    }\n\n    /**\n     * @dev Returns the average of two numbers. The result is rounded towards\n     * zero.\n     */\n    function average(uint256 a, uint256 b) internal pure returns (uint256) {\n        unchecked {\n            // (a + b) / 2 can overflow.\n            return (a & b) + (a ^ b) / 2;\n        }\n    }\n\n    /**\n     * @dev Returns the ceiling of the division of two numbers.\n     *\n     * This differs from standard division with `/` in that it rounds towards infinity instead\n     * of rounding towards zero.\n     */\n    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n        if (b == 0) {\n            // Guarantee the same behavior as in a regular Solidity division.\n            Panic.panic(Panic.DIVISION_BY_ZERO);\n        }\n\n        // The following calculation ensures accurate ceiling division without overflow.\n        // Since a is non-zero, (a - 1) / b will not overflow.\n        // The largest possible result occurs when (a - 1) / b is type(uint256).max,\n        // but the largest value we can obtain is type(uint256).max - 1, which happens\n        // when a = type(uint256).max and b = 1.\n        unchecked {\n            return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);\n        }\n    }\n\n    /**\n     * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n     * denominator == 0.\n     *\n     * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n     * Uniswap Labs also under MIT license.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n        unchecked {\n            (uint256 high, uint256 low) = mul512(x, y);\n\n            // Handle non-overflow cases, 256 by 256 division.\n            if (high == 0) {\n                // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n                // The surrounding unchecked block does not change this fact.\n                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n                return low / denominator;\n            }\n\n            // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.\n            if (denominator <= high) {\n                Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));\n            }\n\n            ///////////////////////////////////////////////\n            // 512 by 256 division.\n            ///////////////////////////////////////////////\n\n            // Make division exact by subtracting the remainder from [high low].\n            uint256 remainder;\n            assembly (\"memory-safe\") {\n                // Compute remainder using mulmod.\n                remainder := mulmod(x, y, denominator)\n\n                // Subtract 256 bit number from 512 bit number.\n                high := sub(high, gt(remainder, low))\n                low := sub(low, remainder)\n            }\n\n            // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n            // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n            uint256 twos = denominator & (0 - denominator);\n            assembly (\"memory-safe\") {\n                // Divide denominator by twos.\n                denominator := div(denominator, twos)\n\n                // Divide [high low] by twos.\n                low := div(low, twos)\n\n                // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one.\n                twos := add(div(sub(0, twos), twos), 1)\n            }\n\n            // Shift in bits from high into low.\n            low |= high * twos;\n\n            // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such\n            // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for\n            // four bits. That is, denominator * inv ≡ 1 mod 2⁴.\n            uint256 inverse = (3 * denominator) ^ 2;\n\n            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n            // works in modular arithmetic, doubling the correct bits in each step.\n            inverse *= 2 - denominator * inverse; // inverse mod 2⁸\n            inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶\n            inverse *= 2 - denominator * inverse; // inverse mod 2³²\n            inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴\n            inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸\n            inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶\n\n            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n            // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is\n            // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and high\n            // is no longer required.\n            result = low * inverse;\n            return result;\n        }\n    }\n\n    /**\n     * @dev Calculates x * y / denominator with full precision, following the selected rounding direction.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n        return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);\n    }\n\n    /**\n     * @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256.\n     */\n    function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) {\n        unchecked {\n            (uint256 high, uint256 low) = mul512(x, y);\n            if (high >= 1 << n) {\n                Panic.panic(Panic.UNDER_OVERFLOW);\n            }\n            return (high << (256 - n)) | (low >> n);\n        }\n    }\n\n    /**\n     * @dev Calculates x * y >> n with full precision, following the selected rounding direction.\n     */\n    function mulShr(uint256 x, uint256 y, uint8 n, Rounding rounding) internal pure returns (uint256) {\n        return mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0);\n    }\n\n    /**\n     * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.\n     *\n     * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.\n     * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.\n     *\n     * If the input value is not inversible, 0 is returned.\n     *\n     * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the\n     * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.\n     */\n    function invMod(uint256 a, uint256 n) internal pure returns (uint256) {\n        unchecked {\n            if (n == 0) return 0;\n\n            // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)\n            // Used to compute integers x and y such that: ax + ny = gcd(a, n).\n            // When the gcd is 1, then the inverse of a modulo n exists and it's x.\n            // ax + ny = 1\n            // ax = 1 + (-y)n\n            // ax ≡ 1 (mod n) # x is the inverse of a modulo n\n\n            // If the remainder is 0 the gcd is n right away.\n            uint256 remainder = a % n;\n            uint256 gcd = n;\n\n            // Therefore the initial coefficients are:\n            // ax + ny = gcd(a, n) = n\n            // 0a + 1n = n\n            int256 x = 0;\n            int256 y = 1;\n\n            while (remainder != 0) {\n                uint256 quotient = gcd / remainder;\n\n                (gcd, remainder) = (\n                    // The old remainder is the next gcd to try.\n                    remainder,\n                    // Compute the next remainder.\n                    // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd\n                    // where gcd is at most n (capped to type(uint256).max)\n                    gcd - remainder * quotient\n                );\n\n                (x, y) = (\n                    // Increment the coefficient of a.\n                    y,\n                    // Decrement the coefficient of n.\n                    // Can overflow, but the result is casted to uint256 so that the\n                    // next value of y is \"wrapped around\" to a value between 0 and n - 1.\n                    x - y * int256(quotient)\n                );\n            }\n\n            if (gcd != 1) return 0; // No inverse exists.\n            return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.\n        }\n    }\n\n    /**\n     * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.\n     *\n     * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is\n     * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that\n     * `a**(p-2)` is the modular multiplicative inverse of a in Fp.\n     *\n     * NOTE: this function does NOT check that `p` is a prime greater than `2`.\n     */\n    function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {\n        unchecked {\n            return Math.modExp(a, p - 2, p);\n        }\n    }\n\n    /**\n     * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)\n     *\n     * Requirements:\n     * - modulus can't be zero\n     * - underlying staticcall to precompile must succeed\n     *\n     * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make\n     * sure the chain you're using it on supports the precompiled contract for modular exponentiation\n     * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,\n     * the underlying function will succeed given the lack of a revert, but the result may be incorrectly\n     * interpreted as 0.\n     */\n    function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {\n        (bool success, uint256 result) = tryModExp(b, e, m);\n        if (!success) {\n            Panic.panic(Panic.DIVISION_BY_ZERO);\n        }\n        return result;\n    }\n\n    /**\n     * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).\n     * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying\n     * to operate modulo 0 or if the underlying precompile reverted.\n     *\n     * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain\n     * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in\n     * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack\n     * of a revert, but the result may be incorrectly interpreted as 0.\n     */\n    function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {\n        if (m == 0) return (false, 0);\n        assembly (\"memory-safe\") {\n            let ptr := mload(0x40)\n            // | Offset    | Content    | Content (Hex)                                                      |\n            // |-----------|------------|--------------------------------------------------------------------|\n            // | 0x00:0x1f | size of b  | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n            // | 0x20:0x3f | size of e  | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n            // | 0x40:0x5f | size of m  | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n            // | 0x60:0x7f | value of b | 0x<.............................................................b> |\n            // | 0x80:0x9f | value of e | 0x<.............................................................e> |\n            // | 0xa0:0xbf | value of m | 0x<.............................................................m> |\n            mstore(ptr, 0x20)\n            mstore(add(ptr, 0x20), 0x20)\n            mstore(add(ptr, 0x40), 0x20)\n            mstore(add(ptr, 0x60), b)\n            mstore(add(ptr, 0x80), e)\n            mstore(add(ptr, 0xa0), m)\n\n            // Given the result < m, it's guaranteed to fit in 32 bytes,\n            // so we can use the memory scratch space located at offset 0.\n            success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)\n            result := mload(0x00)\n        }\n    }\n\n    /**\n     * @dev Variant of {modExp} that supports inputs of arbitrary length.\n     */\n    function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {\n        (bool success, bytes memory result) = tryModExp(b, e, m);\n        if (!success) {\n            Panic.panic(Panic.DIVISION_BY_ZERO);\n        }\n        return result;\n    }\n\n    /**\n     * @dev Variant of {tryModExp} that supports inputs of arbitrary length.\n     */\n    function tryModExp(\n        bytes memory b,\n        bytes memory e,\n        bytes memory m\n    ) internal view returns (bool success, bytes memory result) {\n        if (_zeroBytes(m)) return (false, new bytes(0));\n\n        uint256 mLen = m.length;\n\n        // Encode call args in result and move the free memory pointer\n        result = abi.encodePacked(b.length, e.length, mLen, b, e, m);\n\n        assembly (\"memory-safe\") {\n            let dataPtr := add(result, 0x20)\n            // Write result on top of args to avoid allocating extra memory.\n            success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)\n            // Overwrite the length.\n            // result.length > returndatasize() is guaranteed because returndatasize() == m.length\n            mstore(result, mLen)\n            // Set the memory pointer after the returned data.\n            mstore(0x40, add(dataPtr, mLen))\n        }\n    }\n\n    /**\n     * @dev Returns whether the provided byte array is zero.\n     */\n    function _zeroBytes(bytes memory buffer) private pure returns (bool) {\n        uint256 chunk;\n        for (uint256 i = 0; i < buffer.length; i += 0x20) {\n            // See _unsafeReadBytesOffset from utils/Bytes.sol\n            assembly (\"memory-safe\") {\n                chunk := mload(add(add(buffer, 0x20), i))\n            }\n            if (chunk >> (8 * saturatingSub(i + 0x20, buffer.length)) != 0) {\n                return false;\n            }\n        }\n        return true;\n    }\n\n    /**\n     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n     * towards zero.\n     *\n     * This method is based on Newton's method for computing square roots; the algorithm is restricted to only\n     * using integer operations.\n     */\n    function sqrt(uint256 a) internal pure returns (uint256) {\n        unchecked {\n            // Take care of easy edge cases when a == 0 or a == 1\n            if (a <= 1) {\n                return a;\n            }\n\n            // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a\n            // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between\n            // the current value as `ε_n = | x_n - sqrt(a) |`.\n            //\n            // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root\n            // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is\n            // bigger than any uint256.\n            //\n            // By noticing that\n            // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`\n            // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar\n            // to the msb function.\n            uint256 aa = a;\n            uint256 xn = 1;\n\n            if (aa >= (1 << 128)) {\n                aa >>= 128;\n                xn <<= 64;\n            }\n            if (aa >= (1 << 64)) {\n                aa >>= 64;\n                xn <<= 32;\n            }\n            if (aa >= (1 << 32)) {\n                aa >>= 32;\n                xn <<= 16;\n            }\n            if (aa >= (1 << 16)) {\n                aa >>= 16;\n                xn <<= 8;\n            }\n            if (aa >= (1 << 8)) {\n                aa >>= 8;\n                xn <<= 4;\n            }\n            if (aa >= (1 << 4)) {\n                aa >>= 4;\n                xn <<= 2;\n            }\n            if (aa >= (1 << 2)) {\n                xn <<= 1;\n            }\n\n            // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).\n            //\n            // We can refine our estimation by noticing that the middle of that interval minimizes the error.\n            // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).\n            // This is going to be our x_0 (and ε_0)\n            xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)\n\n            // From here, Newton's method give us:\n            // x_{n+1} = (x_n + a / x_n) / 2\n            //\n            // One should note that:\n            // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a\n            //              = ((x_n² + a) / (2 * x_n))² - a\n            //              = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a\n            //              = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)\n            //              = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)\n            //              = (x_n² - a)² / (2 * x_n)²\n            //              = ((x_n² - a) / (2 * x_n))²\n            //              ≥ 0\n            // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n\n            //\n            // This gives us the proof of quadratic convergence of the sequence:\n            // ε_{n+1} = | x_{n+1} - sqrt(a) |\n            //         = | (x_n + a / x_n) / 2 - sqrt(a) |\n            //         = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |\n            //         = | (x_n - sqrt(a))² / (2 * x_n) |\n            //         = | ε_n² / (2 * x_n) |\n            //         = ε_n² / | (2 * x_n) |\n            //\n            // For the first iteration, we have a special case where x_0 is known:\n            // ε_1 = ε_0² / | (2 * x_0) |\n            //     ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))\n            //     ≤ 2**(2*e-4) / (3 * 2**(e-1))\n            //     ≤ 2**(e-3) / 3\n            //     ≤ 2**(e-3-log2(3))\n            //     ≤ 2**(e-4.5)\n            //\n            // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:\n            // ε_{n+1} = ε_n² / | (2 * x_n) |\n            //         ≤ (2**(e-k))² / (2 * 2**(e-1))\n            //         ≤ 2**(2*e-2*k) / 2**e\n            //         ≤ 2**(e-2*k)\n            xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5)  -- special case, see above\n            xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9)    -- general case with k = 4.5\n            xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18)   -- general case with k = 9\n            xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36)   -- general case with k = 18\n            xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72)   -- general case with k = 36\n            xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144)  -- general case with k = 72\n\n            // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision\n            // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either\n            // sqrt(a) or sqrt(a) + 1.\n            return xn - SafeCast.toUint(xn > a / xn);\n        }\n    }\n\n    /**\n     * @dev Calculates sqrt(a), following the selected rounding direction.\n     */\n    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = sqrt(a);\n            return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 2 of a positive value rounded towards zero.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 x) internal pure returns (uint256 r) {\n        // If value has upper 128 bits set, log2 result is at least 128\n        r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n        // If upper 64 bits of 128-bit half set, add 64 to result\n        r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n        // If upper 32 bits of 64-bit half set, add 32 to result\n        r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n        // If upper 16 bits of 32-bit half set, add 16 to result\n        r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n        // If upper 8 bits of 16-bit half set, add 8 to result\n        r |= SafeCast.toUint((x >> r) > 0xff) << 3;\n        // If upper 4 bits of 8-bit half set, add 4 to result\n        r |= SafeCast.toUint((x >> r) > 0xf) << 2;\n\n        // Shifts value right by the current result and use it as an index into this lookup table:\n        //\n        // | x (4 bits) |  index  | table[index] = MSB position |\n        // |------------|---------|-----------------------------|\n        // |    0000    |    0    |        table[0] = 0         |\n        // |    0001    |    1    |        table[1] = 0         |\n        // |    0010    |    2    |        table[2] = 1         |\n        // |    0011    |    3    |        table[3] = 1         |\n        // |    0100    |    4    |        table[4] = 2         |\n        // |    0101    |    5    |        table[5] = 2         |\n        // |    0110    |    6    |        table[6] = 2         |\n        // |    0111    |    7    |        table[7] = 2         |\n        // |    1000    |    8    |        table[8] = 3         |\n        // |    1001    |    9    |        table[9] = 3         |\n        // |    1010    |   10    |        table[10] = 3        |\n        // |    1011    |   11    |        table[11] = 3        |\n        // |    1100    |   12    |        table[12] = 3        |\n        // |    1101    |   13    |        table[13] = 3        |\n        // |    1110    |   14    |        table[14] = 3        |\n        // |    1111    |   15    |        table[15] = 3        |\n        //\n        // The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the first 16 bytes (most significant half).\n        assembly (\"memory-safe\") {\n            r := or(r, byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000))\n        }\n    }\n\n    /**\n     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log2(value);\n            return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 10 of a positive value rounded towards zero.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >= 10 ** 64) {\n                value /= 10 ** 64;\n                result += 64;\n            }\n            if (value >= 10 ** 32) {\n                value /= 10 ** 32;\n                result += 32;\n            }\n            if (value >= 10 ** 16) {\n                value /= 10 ** 16;\n                result += 16;\n            }\n            if (value >= 10 ** 8) {\n                value /= 10 ** 8;\n                result += 8;\n            }\n            if (value >= 10 ** 4) {\n                value /= 10 ** 4;\n                result += 4;\n            }\n            if (value >= 10 ** 2) {\n                value /= 10 ** 2;\n                result += 2;\n            }\n            if (value >= 10 ** 1) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log10(value);\n            return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 256 of a positive value rounded towards zero.\n     * Returns 0 if given 0.\n     *\n     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n     */\n    function log256(uint256 x) internal pure returns (uint256 r) {\n        // If value has upper 128 bits set, log2 result is at least 128\n        r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n        // If upper 64 bits of 128-bit half set, add 64 to result\n        r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n        // If upper 32 bits of 64-bit half set, add 32 to result\n        r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n        // If upper 16 bits of 32-bit half set, add 16 to result\n        r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n        // Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8\n        return (r >> 3) | SafeCast.toUint((x >> r) > 0xff);\n    }\n\n    /**\n     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log256(value);\n            return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);\n        }\n    }\n\n    /**\n     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n     */\n    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n        return uint8(rounding) % 2 == 1;\n    }\n\n    /**\n     * @dev Counts the number of leading zero bits in a uint256.\n     */\n    function clz(uint256 x) internal pure returns (uint256) {\n        return ternary(x == 0, 256, 255 - log2(x));\n    }\n}\n"},"npm/@openzeppelin/contracts@5.6.1/interfaces/IERC2981.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC2981.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n\n/**\n * @dev Interface for the NFT Royalty Standard.\n *\n * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal\n * support for royalty payments across all NFT marketplaces and ecosystem participants.\n */\ninterface IERC2981 is IERC165 {\n    /**\n     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of\n     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.\n     *\n     * NOTE: ERC-2981 allows setting the royalty to 100% of the price. In that case all the price would be sent to the\n     * royalty receiver and 0 tokens to the seller. Contracts dealing with royalty should consider empty transfers.\n     */\n    function royaltyInfo(\n        uint256 tokenId,\n        uint256 salePrice\n    ) external view returns (address receiver, uint256 royaltyAmount);\n}\n"},"npm/@openzeppelin/contracts@5.6.1/token/ERC721/ERC721.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.6.0) (token/ERC721/ERC721.sol)\n\npragma solidity ^0.8.24;\n\nimport {IERC721} from \"./IERC721.sol\";\nimport {IERC721Metadata} from \"./extensions/IERC721Metadata.sol\";\nimport {ERC721Utils} from \"./utils/ERC721Utils.sol\";\nimport {Context} from \"../../utils/Context.sol\";\nimport {Strings} from \"../../utils/Strings.sol\";\nimport {IERC165, ERC165} from \"../../utils/introspection/ERC165.sol\";\nimport {IERC721Errors} from \"../../interfaces/draft-IERC6093.sol\";\n\n/**\n * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC-721] Non-Fungible Token Standard, including\n * the Metadata extension, but not including the Enumerable extension, which is available separately as\n * {ERC721Enumerable}.\n */\nabstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Errors {\n    using Strings for uint256;\n\n    // Token name\n    string private _name;\n\n    // Token symbol\n    string private _symbol;\n\n    mapping(uint256 tokenId => address) private _owners;\n\n    mapping(address owner => uint256) private _balances;\n\n    mapping(uint256 tokenId => address) private _tokenApprovals;\n\n    mapping(address owner => mapping(address operator => bool)) private _operatorApprovals;\n\n    /**\n     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.\n     */\n    constructor(string memory name_, string memory symbol_) {\n        _name = name_;\n        _symbol = symbol_;\n    }\n\n    /// @inheritdoc IERC165\n    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {\n        return\n            interfaceId == type(IERC721).interfaceId ||\n            interfaceId == type(IERC721Metadata).interfaceId ||\n            super.supportsInterface(interfaceId);\n    }\n\n    /// @inheritdoc IERC721\n    function balanceOf(address owner) public view virtual returns (uint256) {\n        if (owner == address(0)) {\n            revert ERC721InvalidOwner(address(0));\n        }\n        return _balances[owner];\n    }\n\n    /// @inheritdoc IERC721\n    function ownerOf(uint256 tokenId) public view virtual returns (address) {\n        return _requireOwned(tokenId);\n    }\n\n    /// @inheritdoc IERC721Metadata\n    function name() public view virtual returns (string memory) {\n        return _name;\n    }\n\n    /// @inheritdoc IERC721Metadata\n    function symbol() public view virtual returns (string memory) {\n        return _symbol;\n    }\n\n    /// @inheritdoc IERC721Metadata\n    function tokenURI(uint256 tokenId) public view virtual returns (string memory) {\n        _requireOwned(tokenId);\n\n        string memory baseURI = _baseURI();\n        return bytes(baseURI).length > 0 ? string.concat(baseURI, tokenId.toString()) : \"\";\n    }\n\n    /**\n     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each\n     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty\n     * by default, can be overridden in child contracts.\n     */\n    function _baseURI() internal view virtual returns (string memory) {\n        return \"\";\n    }\n\n    /// @inheritdoc IERC721\n    function approve(address to, uint256 tokenId) public virtual {\n        _approve(to, tokenId, _msgSender());\n    }\n\n    /// @inheritdoc IERC721\n    function getApproved(uint256 tokenId) public view virtual returns (address) {\n        _requireOwned(tokenId);\n\n        return _getApproved(tokenId);\n    }\n\n    /// @inheritdoc IERC721\n    function setApprovalForAll(address operator, bool approved) public virtual {\n        _setApprovalForAll(_msgSender(), operator, approved);\n    }\n\n    /// @inheritdoc IERC721\n    function isApprovedForAll(address owner, address operator) public view virtual returns (bool) {\n        return _operatorApprovals[owner][operator];\n    }\n\n    /// @inheritdoc IERC721\n    function transferFrom(address from, address to, uint256 tokenId) public virtual {\n        if (to == address(0)) {\n            revert ERC721InvalidReceiver(address(0));\n        }\n        // Setting an \"auth\" arguments enables the `_isAuthorized` check which verifies that the token exists\n        // (from != 0). Therefore, it is not needed to verify that the return value is not 0 here.\n        address previousOwner = _update(to, tokenId, _msgSender());\n        if (previousOwner != from) {\n            revert ERC721IncorrectOwner(from, tokenId, previousOwner);\n        }\n    }\n\n    /// @inheritdoc IERC721\n    function safeTransferFrom(address from, address to, uint256 tokenId) public {\n        safeTransferFrom(from, to, tokenId, \"\");\n    }\n\n    /// @inheritdoc IERC721\n    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual {\n        transferFrom(from, to, tokenId);\n        ERC721Utils.checkOnERC721Received(_msgSender(), from, to, tokenId, data);\n    }\n\n    /**\n     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist\n     *\n     * IMPORTANT: Any overrides to this function that add ownership of tokens not tracked by the\n     * core ERC-721 logic MUST be matched with the use of {_increaseBalance} to keep balances\n     * consistent with ownership. The invariant to preserve is that for any address `a` the value returned by\n     * `balanceOf(a)` must be equal to the number of tokens such that `_ownerOf(tokenId)` is `a`.\n     */\n    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {\n        return _owners[tokenId];\n    }\n\n    /**\n     * @dev Returns the approved address for `tokenId`. Returns 0 if `tokenId` is not minted.\n     */\n    function _getApproved(uint256 tokenId) internal view virtual returns (address) {\n        return _tokenApprovals[tokenId];\n    }\n\n    /**\n     * @dev Returns whether `spender` is allowed to manage `owner`'s tokens, or `tokenId` in\n     * particular (ignoring whether it is owned by `owner`).\n     *\n     * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this\n     * assumption.\n     */\n    function _isAuthorized(address owner, address spender, uint256 tokenId) internal view virtual returns (bool) {\n        return\n            spender != address(0) &&\n            (owner == spender || isApprovedForAll(owner, spender) || _getApproved(tokenId) == spender);\n    }\n\n    /**\n     * @dev Checks if `spender` can operate on `tokenId`, assuming the provided `owner` is the actual owner.\n     * Reverts if:\n     * - `spender` does not have approval from `owner` for `tokenId`.\n     * - `spender` does not have approval to manage all of `owner`'s assets.\n     *\n     * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this\n     * assumption.\n     */\n    function _checkAuthorized(address owner, address spender, uint256 tokenId) internal view virtual {\n        if (!_isAuthorized(owner, spender, tokenId)) {\n            if (owner == address(0)) {\n                revert ERC721NonexistentToken(tokenId);\n            } else {\n                revert ERC721InsufficientApproval(spender, tokenId);\n            }\n        }\n    }\n\n    /**\n     * @dev Unsafe write access to the balances, used by extensions that \"mint\" tokens using an {ownerOf} override.\n     *\n     * NOTE: the value is limited to type(uint128).max. This protect against _balance overflow. It is unrealistic that\n     * a uint256 would ever overflow from increments when these increments are bounded to uint128 values.\n     *\n     * WARNING: Increasing an account's balance using this function tends to be paired with an override of the\n     * {_ownerOf} function to resolve the ownership of the corresponding tokens so that balances and ownership\n     * remain consistent with one another.\n     */\n    function _increaseBalance(address account, uint128 value) internal virtual {\n        unchecked {\n            _balances[account] += value;\n        }\n    }\n\n    /**\n     * @dev Transfers `tokenId` from its current owner to `to`, or alternatively mints (or burns) if the current owner\n     * (or `to`) is the zero address. Returns the owner of the `tokenId` before the update.\n     *\n     * The `auth` argument is optional. If the value passed is non 0, then this function will check that\n     * `auth` is either the owner of the token, or approved to operate on the token (by the owner).\n     *\n     * Emits a {Transfer} event.\n     *\n     * NOTE: If overriding this function in a way that tracks balances, see also {_increaseBalance}.\n     */\n    function _update(address to, uint256 tokenId, address auth) internal virtual returns (address) {\n        address from = _ownerOf(tokenId);\n\n        // Perform (optional) operator check\n        if (auth != address(0)) {\n            _checkAuthorized(from, auth, tokenId);\n        }\n\n        // Execute the update\n        if (from != address(0)) {\n            // Clear approval. No need to re-authorize or emit the Approval event\n            _approve(address(0), tokenId, address(0), false);\n\n            unchecked {\n                _balances[from] -= 1;\n            }\n        }\n\n        if (to != address(0)) {\n            unchecked {\n                _balances[to] += 1;\n            }\n        }\n\n        _owners[tokenId] = to;\n\n        emit Transfer(from, to, tokenId);\n\n        return from;\n    }\n\n    /**\n     * @dev Mints `tokenId` and transfers it to `to`.\n     *\n     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible\n     *\n     * Requirements:\n     *\n     * - `tokenId` must not exist.\n     * - `to` cannot be the zero address.\n     *\n     * Emits a {Transfer} event.\n     */\n    function _mint(address to, uint256 tokenId) internal {\n        if (to == address(0)) {\n            revert ERC721InvalidReceiver(address(0));\n        }\n        address previousOwner = _update(to, tokenId, address(0));\n        if (previousOwner != address(0)) {\n            revert ERC721InvalidSender(address(0));\n        }\n    }\n\n    /**\n     * @dev Mints `tokenId`, transfers it to `to` and checks for `to` acceptance.\n     *\n     * Requirements:\n     *\n     * - `tokenId` must not exist.\n     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n     *\n     * Emits a {Transfer} event.\n     */\n    function _safeMint(address to, uint256 tokenId) internal {\n        _safeMint(to, tokenId, \"\");\n    }\n\n    /**\n     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is\n     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.\n     */\n    function _safeMint(address to, uint256 tokenId, bytes memory data) internal virtual {\n        _mint(to, tokenId);\n        ERC721Utils.checkOnERC721Received(_msgSender(), address(0), to, tokenId, data);\n    }\n\n    /**\n     * @dev Destroys `tokenId`.\n     * The approval is cleared when the token is burned.\n     * This is an internal function that does not check if the sender is authorized to operate on the token.\n     *\n     * Requirements:\n     *\n     * - `tokenId` must exist.\n     *\n     * Emits a {Transfer} event.\n     */\n    function _burn(uint256 tokenId) internal {\n        address previousOwner = _update(address(0), tokenId, address(0));\n        if (previousOwner == address(0)) {\n            revert ERC721NonexistentToken(tokenId);\n        }\n    }\n\n    /**\n     * @dev Transfers `tokenId` from `from` to `to`.\n     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.\n     *\n     * Requirements:\n     *\n     * - `to` cannot be the zero address.\n     * - `tokenId` token must be owned by `from`.\n     *\n     * Emits a {Transfer} event.\n     */\n    function _transfer(address from, address to, uint256 tokenId) internal {\n        if (to == address(0)) {\n            revert ERC721InvalidReceiver(address(0));\n        }\n        address previousOwner = _update(to, tokenId, address(0));\n        if (previousOwner == address(0)) {\n            revert ERC721NonexistentToken(tokenId);\n        } else if (previousOwner != from) {\n            revert ERC721IncorrectOwner(from, tokenId, previousOwner);\n        }\n    }\n\n    /**\n     * @dev Safely transfers `tokenId` token from `from` to `to`, checking that contract recipients\n     * are aware of the ERC-721 standard to prevent tokens from being forever locked.\n     *\n     * `data` is additional data, it has no specified format and it is sent in call to `to`.\n     *\n     * This internal function is like {safeTransferFrom} in the sense that it invokes\n     * {IERC721Receiver-onERC721Received} on the receiver, and can be used to e.g.\n     * implement alternative mechanisms to perform token transfer, such as signature-based.\n     *\n     * Requirements:\n     *\n     * - `tokenId` token must exist and be owned by `from`.\n     * - `to` cannot be the zero address.\n     * - `from` cannot be the zero address.\n     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n     *\n     * Emits a {Transfer} event.\n     */\n    function _safeTransfer(address from, address to, uint256 tokenId) internal {\n        _safeTransfer(from, to, tokenId, \"\");\n    }\n\n    /**\n     * @dev Same as {xref-ERC721-_safeTransfer-address-address-uint256-}[`_safeTransfer`], with an additional `data` parameter which is\n     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.\n     */\n    function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual {\n        _transfer(from, to, tokenId);\n        ERC721Utils.checkOnERC721Received(_msgSender(), from, to, tokenId, data);\n    }\n\n    /**\n     * @dev Approve `to` to operate on `tokenId`\n     *\n     * The `auth` argument is optional. If the value passed is non 0, then this function will check that `auth` is\n     * either the owner of the token, or approved to operate on all tokens held by this owner.\n     *\n     * Emits an {Approval} event.\n     *\n     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.\n     */\n    function _approve(address to, uint256 tokenId, address auth) internal {\n        _approve(to, tokenId, auth, true);\n    }\n\n    /**\n     * @dev Variant of `_approve` with an optional flag to enable or disable the {Approval} event. The event is not\n     * emitted in the context of transfers.\n     */\n    function _approve(address to, uint256 tokenId, address auth, bool emitEvent) internal virtual {\n        // Avoid reading the owner unless necessary\n        if (emitEvent || auth != address(0)) {\n            address owner = _requireOwned(tokenId);\n\n            // We do not use _isAuthorized because single-token approvals should not be able to call approve\n            if (auth != address(0) && owner != auth && !isApprovedForAll(owner, auth)) {\n                revert ERC721InvalidApprover(auth);\n            }\n\n            if (emitEvent) {\n                emit Approval(owner, to, tokenId);\n            }\n        }\n\n        _tokenApprovals[tokenId] = to;\n    }\n\n    /**\n     * @dev Approve `operator` to operate on all of `owner` tokens\n     *\n     * Requirements:\n     * - operator can't be the address zero.\n     *\n     * Emits an {ApprovalForAll} event.\n     */\n    function _setApprovalForAll(address owner, address operator, bool approved) internal virtual {\n        if (owner == address(0)) {\n            revert ERC721InvalidApprover(address(0));\n        }\n        if (operator == address(0)) {\n            revert ERC721InvalidOperator(operator);\n        }\n        _operatorApprovals[owner][operator] = approved;\n        emit ApprovalForAll(owner, operator, approved);\n    }\n\n    /**\n     * @dev Reverts if the `tokenId` doesn't have a current owner (it hasn't been minted, or it has been burned).\n     * Returns the owner.\n     *\n     * Overrides to ownership logic should be done to {_ownerOf}.\n     */\n    function _requireOwned(uint256 tokenId) internal view returns (address) {\n        address owner = _ownerOf(tokenId);\n        if (owner == address(0)) {\n            revert ERC721NonexistentToken(tokenId);\n        }\n        return owner;\n    }\n}\n"},"npm/@openzeppelin/contracts@5.6.1/utils/math/SafeCast.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.6.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX/bool casting operators with added overflow\n * checks.\n *\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\n * easily result in undesired exploitation or bugs, since developers usually\n * assume that overflows raise errors. `SafeCast` restores this intuition by\n * reverting the transaction when such an operation overflows.\n *\n * Using this library instead of the unchecked operations eliminates an entire\n * class of bugs, so it's recommended to use it always.\n */\nlibrary SafeCast {\n    /**\n     * @dev Value doesn't fit in a uint of `bits` size.\n     */\n    error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\n\n    /**\n     * @dev An int value doesn't fit in a uint of `bits` size.\n     */\n    error SafeCastOverflowedIntToUint(int256 value);\n\n    /**\n     * @dev Value doesn't fit in an int of `bits` size.\n     */\n    error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\n\n    /**\n     * @dev A uint value doesn't fit in an int of `bits` size.\n     */\n    error SafeCastOverflowedUintToInt(uint256 value);\n\n    /**\n     * @dev Returns the downcasted uint248 from uint256, reverting on\n     * overflow (when the input is greater than largest uint248).\n     *\n     * Counterpart to Solidity's `uint248` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 248 bits\n     */\n    function toUint248(uint256 value) internal pure returns (uint248) {\n        if (value > type(uint248).max) {\n            revert SafeCastOverflowedUintDowncast(248, value);\n        }\n        return uint248(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint240 from uint256, reverting on\n     * overflow (when the input is greater than largest uint240).\n     *\n     * Counterpart to Solidity's `uint240` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 240 bits\n     */\n    function toUint240(uint256 value) internal pure returns (uint240) {\n        if (value > type(uint240).max) {\n            revert SafeCastOverflowedUintDowncast(240, value);\n        }\n        return uint240(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint232 from uint256, reverting on\n     * overflow (when the input is greater than largest uint232).\n     *\n     * Counterpart to Solidity's `uint232` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 232 bits\n     */\n    function toUint232(uint256 value) internal pure returns (uint232) {\n        if (value > type(uint232).max) {\n            revert SafeCastOverflowedUintDowncast(232, value);\n        }\n        return uint232(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint224 from uint256, reverting on\n     * overflow (when the input is greater than largest uint224).\n     *\n     * Counterpart to Solidity's `uint224` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 224 bits\n     */\n    function toUint224(uint256 value) internal pure returns (uint224) {\n        if (value > type(uint224).max) {\n            revert SafeCastOverflowedUintDowncast(224, value);\n        }\n        return uint224(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint216 from uint256, reverting on\n     * overflow (when the input is greater than largest uint216).\n     *\n     * Counterpart to Solidity's `uint216` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 216 bits\n     */\n    function toUint216(uint256 value) internal pure returns (uint216) {\n        if (value > type(uint216).max) {\n            revert SafeCastOverflowedUintDowncast(216, value);\n        }\n        return uint216(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint208 from uint256, reverting on\n     * overflow (when the input is greater than largest uint208).\n     *\n     * Counterpart to Solidity's `uint208` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 208 bits\n     */\n    function toUint208(uint256 value) internal pure returns (uint208) {\n        if (value > type(uint208).max) {\n            revert SafeCastOverflowedUintDowncast(208, value);\n        }\n        return uint208(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint200 from uint256, reverting on\n     * overflow (when the input is greater than largest uint200).\n     *\n     * Counterpart to Solidity's `uint200` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 200 bits\n     */\n    function toUint200(uint256 value) internal pure returns (uint200) {\n        if (value > type(uint200).max) {\n            revert SafeCastOverflowedUintDowncast(200, value);\n        }\n        return uint200(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint192 from uint256, reverting on\n     * overflow (when the input is greater than largest uint192).\n     *\n     * Counterpart to Solidity's `uint192` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 192 bits\n     */\n    function toUint192(uint256 value) internal pure returns (uint192) {\n        if (value > type(uint192).max) {\n            revert SafeCastOverflowedUintDowncast(192, value);\n        }\n        return uint192(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint184 from uint256, reverting on\n     * overflow (when the input is greater than largest uint184).\n     *\n     * Counterpart to Solidity's `uint184` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 184 bits\n     */\n    function toUint184(uint256 value) internal pure returns (uint184) {\n        if (value > type(uint184).max) {\n            revert SafeCastOverflowedUintDowncast(184, value);\n        }\n        return uint184(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint176 from uint256, reverting on\n     * overflow (when the input is greater than largest uint176).\n     *\n     * Counterpart to Solidity's `uint176` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 176 bits\n     */\n    function toUint176(uint256 value) internal pure returns (uint176) {\n        if (value > type(uint176).max) {\n            revert SafeCastOverflowedUintDowncast(176, value);\n        }\n        return uint176(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint168 from uint256, reverting on\n     * overflow (when the input is greater than largest uint168).\n     *\n     * Counterpart to Solidity's `uint168` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 168 bits\n     */\n    function toUint168(uint256 value) internal pure returns (uint168) {\n        if (value > type(uint168).max) {\n            revert SafeCastOverflowedUintDowncast(168, value);\n        }\n        return uint168(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint160 from uint256, reverting on\n     * overflow (when the input is greater than largest uint160).\n     *\n     * Counterpart to Solidity's `uint160` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 160 bits\n     */\n    function toUint160(uint256 value) internal pure returns (uint160) {\n        if (value > type(uint160).max) {\n            revert SafeCastOverflowedUintDowncast(160, value);\n        }\n        return uint160(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint152 from uint256, reverting on\n     * overflow (when the input is greater than largest uint152).\n     *\n     * Counterpart to Solidity's `uint152` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 152 bits\n     */\n    function toUint152(uint256 value) internal pure returns (uint152) {\n        if (value > type(uint152).max) {\n            revert SafeCastOverflowedUintDowncast(152, value);\n        }\n        return uint152(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint144 from uint256, reverting on\n     * overflow (when the input is greater than largest uint144).\n     *\n     * Counterpart to Solidity's `uint144` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 144 bits\n     */\n    function toUint144(uint256 value) internal pure returns (uint144) {\n        if (value > type(uint144).max) {\n            revert SafeCastOverflowedUintDowncast(144, value);\n        }\n        return uint144(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint136 from uint256, reverting on\n     * overflow (when the input is greater than largest uint136).\n     *\n     * Counterpart to Solidity's `uint136` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 136 bits\n     */\n    function toUint136(uint256 value) internal pure returns (uint136) {\n        if (value > type(uint136).max) {\n            revert SafeCastOverflowedUintDowncast(136, value);\n        }\n        return uint136(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint128 from uint256, reverting on\n     * overflow (when the input is greater than largest uint128).\n     *\n     * Counterpart to Solidity's `uint128` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 128 bits\n     */\n    function toUint128(uint256 value) internal pure returns (uint128) {\n        if (value > type(uint128).max) {\n            revert SafeCastOverflowedUintDowncast(128, value);\n        }\n        return uint128(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint120 from uint256, reverting on\n     * overflow (when the input is greater than largest uint120).\n     *\n     * Counterpart to Solidity's `uint120` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 120 bits\n     */\n    function toUint120(uint256 value) internal pure returns (uint120) {\n        if (value > type(uint120).max) {\n            revert SafeCastOverflowedUintDowncast(120, value);\n        }\n        return uint120(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint112 from uint256, reverting on\n     * overflow (when the input is greater than largest uint112).\n     *\n     * Counterpart to Solidity's `uint112` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 112 bits\n     */\n    function toUint112(uint256 value) internal pure returns (uint112) {\n        if (value > type(uint112).max) {\n            revert SafeCastOverflowedUintDowncast(112, value);\n        }\n        return uint112(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint104 from uint256, reverting on\n     * overflow (when the input is greater than largest uint104).\n     *\n     * Counterpart to Solidity's `uint104` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 104 bits\n     */\n    function toUint104(uint256 value) internal pure returns (uint104) {\n        if (value > type(uint104).max) {\n            revert SafeCastOverflowedUintDowncast(104, value);\n        }\n        return uint104(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint96 from uint256, reverting on\n     * overflow (when the input is greater than largest uint96).\n     *\n     * Counterpart to Solidity's `uint96` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 96 bits\n     */\n    function toUint96(uint256 value) internal pure returns (uint96) {\n        if (value > type(uint96).max) {\n            revert SafeCastOverflowedUintDowncast(96, value);\n        }\n        return uint96(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint88 from uint256, reverting on\n     * overflow (when the input is greater than largest uint88).\n     *\n     * Counterpart to Solidity's `uint88` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 88 bits\n     */\n    function toUint88(uint256 value) internal pure returns (uint88) {\n        if (value > type(uint88).max) {\n            revert SafeCastOverflowedUintDowncast(88, value);\n        }\n        return uint88(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint80 from uint256, reverting on\n     * overflow (when the input is greater than largest uint80).\n     *\n     * Counterpart to Solidity's `uint80` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 80 bits\n     */\n    function toUint80(uint256 value) internal pure returns (uint80) {\n        if (value > type(uint80).max) {\n            revert SafeCastOverflowedUintDowncast(80, value);\n        }\n        return uint80(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint72 from uint256, reverting on\n     * overflow (when the input is greater than largest uint72).\n     *\n     * Counterpart to Solidity's `uint72` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 72 bits\n     */\n    function toUint72(uint256 value) internal pure returns (uint72) {\n        if (value > type(uint72).max) {\n            revert SafeCastOverflowedUintDowncast(72, value);\n        }\n        return uint72(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint64 from uint256, reverting on\n     * overflow (when the input is greater than largest uint64).\n     *\n     * Counterpart to Solidity's `uint64` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 64 bits\n     */\n    function toUint64(uint256 value) internal pure returns (uint64) {\n        if (value > type(uint64).max) {\n            revert SafeCastOverflowedUintDowncast(64, value);\n        }\n        return uint64(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint56 from uint256, reverting on\n     * overflow (when the input is greater than largest uint56).\n     *\n     * Counterpart to Solidity's `uint56` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 56 bits\n     */\n    function toUint56(uint256 value) internal pure returns (uint56) {\n        if (value > type(uint56).max) {\n            revert SafeCastOverflowedUintDowncast(56, value);\n        }\n        return uint56(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint48 from uint256, reverting on\n     * overflow (when the input is greater than largest uint48).\n     *\n     * Counterpart to Solidity's `uint48` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 48 bits\n     */\n    function toUint48(uint256 value) internal pure returns (uint48) {\n        if (value > type(uint48).max) {\n            revert SafeCastOverflowedUintDowncast(48, value);\n        }\n        return uint48(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint40 from uint256, reverting on\n     * overflow (when the input is greater than largest uint40).\n     *\n     * Counterpart to Solidity's `uint40` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 40 bits\n     */\n    function toUint40(uint256 value) internal pure returns (uint40) {\n        if (value > type(uint40).max) {\n            revert SafeCastOverflowedUintDowncast(40, value);\n        }\n        return uint40(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint32 from uint256, reverting on\n     * overflow (when the input is greater than largest uint32).\n     *\n     * Counterpart to Solidity's `uint32` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 32 bits\n     */\n    function toUint32(uint256 value) internal pure returns (uint32) {\n        if (value > type(uint32).max) {\n            revert SafeCastOverflowedUintDowncast(32, value);\n        }\n        return uint32(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint24 from uint256, reverting on\n     * overflow (when the input is greater than largest uint24).\n     *\n     * Counterpart to Solidity's `uint24` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 24 bits\n     */\n    function toUint24(uint256 value) internal pure returns (uint24) {\n        if (value > type(uint24).max) {\n            revert SafeCastOverflowedUintDowncast(24, value);\n        }\n        return uint24(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint16 from uint256, reverting on\n     * overflow (when the input is greater than largest uint16).\n     *\n     * Counterpart to Solidity's `uint16` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 16 bits\n     */\n    function toUint16(uint256 value) internal pure returns (uint16) {\n        if (value > type(uint16).max) {\n            revert SafeCastOverflowedUintDowncast(16, value);\n        }\n        return uint16(value);\n    }\n\n    /**\n     * @dev Returns the downcasted uint8 from uint256, reverting on\n     * overflow (when the input is greater than largest uint8).\n     *\n     * Counterpart to Solidity's `uint8` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 8 bits\n     */\n    function toUint8(uint256 value) internal pure returns (uint8) {\n        if (value > type(uint8).max) {\n            revert SafeCastOverflowedUintDowncast(8, value);\n        }\n        return uint8(value);\n    }\n\n    /**\n     * @dev Converts a signed int256 into an unsigned uint256.\n     *\n     * Requirements:\n     *\n     * - input must be greater than or equal to 0.\n     */\n    function toUint256(int256 value) internal pure returns (uint256) {\n        if (value < 0) {\n            revert SafeCastOverflowedIntToUint(value);\n        }\n        return uint256(value);\n    }\n\n    /**\n     * @dev Returns the downcasted int248 from int256, reverting on\n     * overflow (when the input is less than smallest int248 or\n     * greater than largest int248).\n     *\n     * Counterpart to Solidity's `int248` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 248 bits\n     */\n    function toInt248(int256 value) internal pure returns (int248 downcasted) {\n        downcasted = int248(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(248, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int240 from int256, reverting on\n     * overflow (when the input is less than smallest int240 or\n     * greater than largest int240).\n     *\n     * Counterpart to Solidity's `int240` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 240 bits\n     */\n    function toInt240(int256 value) internal pure returns (int240 downcasted) {\n        downcasted = int240(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(240, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int232 from int256, reverting on\n     * overflow (when the input is less than smallest int232 or\n     * greater than largest int232).\n     *\n     * Counterpart to Solidity's `int232` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 232 bits\n     */\n    function toInt232(int256 value) internal pure returns (int232 downcasted) {\n        downcasted = int232(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(232, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int224 from int256, reverting on\n     * overflow (when the input is less than smallest int224 or\n     * greater than largest int224).\n     *\n     * Counterpart to Solidity's `int224` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 224 bits\n     */\n    function toInt224(int256 value) internal pure returns (int224 downcasted) {\n        downcasted = int224(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(224, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int216 from int256, reverting on\n     * overflow (when the input is less than smallest int216 or\n     * greater than largest int216).\n     *\n     * Counterpart to Solidity's `int216` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 216 bits\n     */\n    function toInt216(int256 value) internal pure returns (int216 downcasted) {\n        downcasted = int216(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(216, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int208 from int256, reverting on\n     * overflow (when the input is less than smallest int208 or\n     * greater than largest int208).\n     *\n     * Counterpart to Solidity's `int208` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 208 bits\n     */\n    function toInt208(int256 value) internal pure returns (int208 downcasted) {\n        downcasted = int208(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(208, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int200 from int256, reverting on\n     * overflow (when the input is less than smallest int200 or\n     * greater than largest int200).\n     *\n     * Counterpart to Solidity's `int200` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 200 bits\n     */\n    function toInt200(int256 value) internal pure returns (int200 downcasted) {\n        downcasted = int200(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(200, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int192 from int256, reverting on\n     * overflow (when the input is less than smallest int192 or\n     * greater than largest int192).\n     *\n     * Counterpart to Solidity's `int192` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 192 bits\n     */\n    function toInt192(int256 value) internal pure returns (int192 downcasted) {\n        downcasted = int192(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(192, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int184 from int256, reverting on\n     * overflow (when the input is less than smallest int184 or\n     * greater than largest int184).\n     *\n     * Counterpart to Solidity's `int184` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 184 bits\n     */\n    function toInt184(int256 value) internal pure returns (int184 downcasted) {\n        downcasted = int184(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(184, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int176 from int256, reverting on\n     * overflow (when the input is less than smallest int176 or\n     * greater than largest int176).\n     *\n     * Counterpart to Solidity's `int176` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 176 bits\n     */\n    function toInt176(int256 value) internal pure returns (int176 downcasted) {\n        downcasted = int176(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(176, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int168 from int256, reverting on\n     * overflow (when the input is less than smallest int168 or\n     * greater than largest int168).\n     *\n     * Counterpart to Solidity's `int168` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 168 bits\n     */\n    function toInt168(int256 value) internal pure returns (int168 downcasted) {\n        downcasted = int168(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(168, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int160 from int256, reverting on\n     * overflow (when the input is less than smallest int160 or\n     * greater than largest int160).\n     *\n     * Counterpart to Solidity's `int160` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 160 bits\n     */\n    function toInt160(int256 value) internal pure returns (int160 downcasted) {\n        downcasted = int160(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(160, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int152 from int256, reverting on\n     * overflow (when the input is less than smallest int152 or\n     * greater than largest int152).\n     *\n     * Counterpart to Solidity's `int152` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 152 bits\n     */\n    function toInt152(int256 value) internal pure returns (int152 downcasted) {\n        downcasted = int152(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(152, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int144 from int256, reverting on\n     * overflow (when the input is less than smallest int144 or\n     * greater than largest int144).\n     *\n     * Counterpart to Solidity's `int144` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 144 bits\n     */\n    function toInt144(int256 value) internal pure returns (int144 downcasted) {\n        downcasted = int144(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(144, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int136 from int256, reverting on\n     * overflow (when the input is less than smallest int136 or\n     * greater than largest int136).\n     *\n     * Counterpart to Solidity's `int136` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 136 bits\n     */\n    function toInt136(int256 value) internal pure returns (int136 downcasted) {\n        downcasted = int136(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(136, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int128 from int256, reverting on\n     * overflow (when the input is less than smallest int128 or\n     * greater than largest int128).\n     *\n     * Counterpart to Solidity's `int128` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 128 bits\n     */\n    function toInt128(int256 value) internal pure returns (int128 downcasted) {\n        downcasted = int128(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(128, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int120 from int256, reverting on\n     * overflow (when the input is less than smallest int120 or\n     * greater than largest int120).\n     *\n     * Counterpart to Solidity's `int120` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 120 bits\n     */\n    function toInt120(int256 value) internal pure returns (int120 downcasted) {\n        downcasted = int120(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(120, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int112 from int256, reverting on\n     * overflow (when the input is less than smallest int112 or\n     * greater than largest int112).\n     *\n     * Counterpart to Solidity's `int112` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 112 bits\n     */\n    function toInt112(int256 value) internal pure returns (int112 downcasted) {\n        downcasted = int112(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(112, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int104 from int256, reverting on\n     * overflow (when the input is less than smallest int104 or\n     * greater than largest int104).\n     *\n     * Counterpart to Solidity's `int104` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 104 bits\n     */\n    function toInt104(int256 value) internal pure returns (int104 downcasted) {\n        downcasted = int104(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(104, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int96 from int256, reverting on\n     * overflow (when the input is less than smallest int96 or\n     * greater than largest int96).\n     *\n     * Counterpart to Solidity's `int96` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 96 bits\n     */\n    function toInt96(int256 value) internal pure returns (int96 downcasted) {\n        downcasted = int96(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(96, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int88 from int256, reverting on\n     * overflow (when the input is less than smallest int88 or\n     * greater than largest int88).\n     *\n     * Counterpart to Solidity's `int88` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 88 bits\n     */\n    function toInt88(int256 value) internal pure returns (int88 downcasted) {\n        downcasted = int88(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(88, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int80 from int256, reverting on\n     * overflow (when the input is less than smallest int80 or\n     * greater than largest int80).\n     *\n     * Counterpart to Solidity's `int80` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 80 bits\n     */\n    function toInt80(int256 value) internal pure returns (int80 downcasted) {\n        downcasted = int80(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(80, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int72 from int256, reverting on\n     * overflow (when the input is less than smallest int72 or\n     * greater than largest int72).\n     *\n     * Counterpart to Solidity's `int72` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 72 bits\n     */\n    function toInt72(int256 value) internal pure returns (int72 downcasted) {\n        downcasted = int72(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(72, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int64 from int256, reverting on\n     * overflow (when the input is less than smallest int64 or\n     * greater than largest int64).\n     *\n     * Counterpart to Solidity's `int64` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 64 bits\n     */\n    function toInt64(int256 value) internal pure returns (int64 downcasted) {\n        downcasted = int64(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(64, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int56 from int256, reverting on\n     * overflow (when the input is less than smallest int56 or\n     * greater than largest int56).\n     *\n     * Counterpart to Solidity's `int56` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 56 bits\n     */\n    function toInt56(int256 value) internal pure returns (int56 downcasted) {\n        downcasted = int56(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(56, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int48 from int256, reverting on\n     * overflow (when the input is less than smallest int48 or\n     * greater than largest int48).\n     *\n     * Counterpart to Solidity's `int48` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 48 bits\n     */\n    function toInt48(int256 value) internal pure returns (int48 downcasted) {\n        downcasted = int48(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(48, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int40 from int256, reverting on\n     * overflow (when the input is less than smallest int40 or\n     * greater than largest int40).\n     *\n     * Counterpart to Solidity's `int40` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 40 bits\n     */\n    function toInt40(int256 value) internal pure returns (int40 downcasted) {\n        downcasted = int40(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(40, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int32 from int256, reverting on\n     * overflow (when the input is less than smallest int32 or\n     * greater than largest int32).\n     *\n     * Counterpart to Solidity's `int32` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 32 bits\n     */\n    function toInt32(int256 value) internal pure returns (int32 downcasted) {\n        downcasted = int32(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(32, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int24 from int256, reverting on\n     * overflow (when the input is less than smallest int24 or\n     * greater than largest int24).\n     *\n     * Counterpart to Solidity's `int24` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 24 bits\n     */\n    function toInt24(int256 value) internal pure returns (int24 downcasted) {\n        downcasted = int24(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(24, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int16 from int256, reverting on\n     * overflow (when the input is less than smallest int16 or\n     * greater than largest int16).\n     *\n     * Counterpart to Solidity's `int16` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 16 bits\n     */\n    function toInt16(int256 value) internal pure returns (int16 downcasted) {\n        downcasted = int16(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(16, value);\n        }\n    }\n\n    /**\n     * @dev Returns the downcasted int8 from int256, reverting on\n     * overflow (when the input is less than smallest int8 or\n     * greater than largest int8).\n     *\n     * Counterpart to Solidity's `int8` operator.\n     *\n     * Requirements:\n     *\n     * - input must fit into 8 bits\n     */\n    function toInt8(int256 value) internal pure returns (int8 downcasted) {\n        downcasted = int8(value);\n        if (downcasted != value) {\n            revert SafeCastOverflowedIntDowncast(8, value);\n        }\n    }\n\n    /**\n     * @dev Converts an unsigned uint256 into a signed int256.\n     *\n     * Requirements:\n     *\n     * - input must be less than or equal to maxInt256.\n     */\n    function toInt256(uint256 value) internal pure returns (int256) {\n        // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive\n        if (value > uint256(type(int256).max)) {\n            revert SafeCastOverflowedUintToInt(value);\n        }\n        return int256(value);\n    }\n\n    /**\n     * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.\n     */\n    function toUint(bool b) internal pure returns (uint256 u) {\n        assembly (\"memory-safe\") {\n            u := iszero(iszero(b))\n        }\n    }\n}\n"},"npm/@openzeppelin/contracts@5.6.1/token/ERC721/IERC721.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC721/IERC721.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC165} from \"../../utils/introspection/IERC165.sol\";\n\n/**\n * @dev Required interface of an ERC-721 compliant contract.\n */\ninterface IERC721 is IERC165 {\n    /**\n     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.\n     */\n    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);\n\n    /**\n     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.\n     */\n    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);\n\n    /**\n     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.\n     */\n    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);\n\n    /**\n     * @dev Returns the number of tokens in ``owner``'s account.\n     */\n    function balanceOf(address owner) external view returns (uint256 balance);\n\n    /**\n     * @dev Returns the owner of the `tokenId` token.\n     *\n     * Requirements:\n     *\n     * - `tokenId` must exist.\n     */\n    function ownerOf(uint256 tokenId) external view returns (address owner);\n\n    /**\n     * @dev Safely transfers `tokenId` token from `from` to `to`.\n     *\n     * Requirements:\n     *\n     * - `from` cannot be the zero address.\n     * - `to` cannot be the zero address.\n     * - `tokenId` token must exist and be owned by `from`.\n     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\n     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon\n     *   a safe transfer.\n     *\n     * Emits a {Transfer} event.\n     */\n    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;\n\n    /**\n     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients\n     * are aware of the ERC-721 protocol to prevent tokens from being forever locked.\n     *\n     * Requirements:\n     *\n     * - `from` cannot be the zero address.\n     * - `to` cannot be the zero address.\n     * - `tokenId` token must exist and be owned by `from`.\n     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or\n     *   {setApprovalForAll}.\n     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon\n     *   a safe transfer.\n     *\n     * Emits a {Transfer} event.\n     */\n    function safeTransferFrom(address from, address to, uint256 tokenId) external;\n\n    /**\n     * @dev Transfers `tokenId` token from `from` to `to`.\n     *\n     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC-721\n     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must\n     * understand this adds an external call which potentially creates a reentrancy vulnerability.\n     *\n     * Requirements:\n     *\n     * - `from` cannot be the zero address.\n     * - `to` cannot be the zero address.\n     * - `tokenId` token must be owned by `from`.\n     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transferFrom(address from, address to, uint256 tokenId) external;\n\n    /**\n     * @dev Gives permission to `to` to transfer `tokenId` token to another account.\n     * The approval is cleared when the token is transferred.\n     *\n     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.\n     *\n     * Requirements:\n     *\n     * - The caller must own the token or be an approved operator.\n     * - `tokenId` must exist.\n     *\n     * Emits an {Approval} event.\n     */\n    function approve(address to, uint256 tokenId) external;\n\n    /**\n     * @dev Approve or remove `operator` as an operator for the caller.\n     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.\n     *\n     * Requirements:\n     *\n     * - The `operator` cannot be the address zero.\n     *\n     * Emits an {ApprovalForAll} event.\n     */\n    function setApprovalForAll(address operator, bool approved) external;\n\n    /**\n     * @dev Returns the account approved for `tokenId` token.\n     *\n     * Requirements:\n     *\n     * - `tokenId` must exist.\n     */\n    function getApproved(uint256 tokenId) external view returns (address operator);\n\n    /**\n     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.\n     *\n     * See {setApprovalForAll}\n     */\n    function isApprovedForAll(address owner, address operator) external view returns (bool);\n}\n"},"npm/@openzeppelin/contracts@5.6.1/token/common/ERC2981.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/common/ERC2981.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC2981} from \"../../interfaces/IERC2981.sol\";\nimport {IERC165, ERC165} from \"../../utils/introspection/ERC165.sol\";\n\n/**\n * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.\n *\n * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for\n * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.\n *\n * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the\n * fee is specified in basis points by default.\n *\n * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See\n * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the ERC. Marketplaces are expected to\n * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.\n */\nabstract contract ERC2981 is IERC2981, ERC165 {\n    struct RoyaltyInfo {\n        address receiver;\n        uint96 royaltyFraction;\n    }\n\n    RoyaltyInfo private _defaultRoyaltyInfo;\n    mapping(uint256 tokenId => RoyaltyInfo) private _tokenRoyaltyInfo;\n\n    /**\n     * @dev The default royalty set is invalid (eg. (numerator / denominator) >= 1).\n     */\n    error ERC2981InvalidDefaultRoyalty(uint256 numerator, uint256 denominator);\n\n    /**\n     * @dev The default royalty receiver is invalid.\n     */\n    error ERC2981InvalidDefaultRoyaltyReceiver(address receiver);\n\n    /**\n     * @dev The royalty set for a specific `tokenId` is invalid (eg. (numerator / denominator) >= 1).\n     */\n    error ERC2981InvalidTokenRoyalty(uint256 tokenId, uint256 numerator, uint256 denominator);\n\n    /**\n     * @dev The royalty receiver for `tokenId` is invalid.\n     */\n    error ERC2981InvalidTokenRoyaltyReceiver(uint256 tokenId, address receiver);\n\n    /// @inheritdoc IERC165\n    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) {\n        return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId);\n    }\n\n    /// @inheritdoc IERC2981\n    function royaltyInfo(\n        uint256 tokenId,\n        uint256 salePrice\n    ) public view virtual returns (address receiver, uint256 amount) {\n        RoyaltyInfo storage _royaltyInfo = _tokenRoyaltyInfo[tokenId];\n        address royaltyReceiver = _royaltyInfo.receiver;\n        uint96 royaltyFraction = _royaltyInfo.royaltyFraction;\n\n        if (royaltyReceiver == address(0)) {\n            royaltyReceiver = _defaultRoyaltyInfo.receiver;\n            royaltyFraction = _defaultRoyaltyInfo.royaltyFraction;\n        }\n\n        uint256 royaltyAmount = (salePrice * royaltyFraction) / _feeDenominator();\n\n        return (royaltyReceiver, royaltyAmount);\n    }\n\n    /**\n     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a\n     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an\n     * override.\n     */\n    function _feeDenominator() internal pure virtual returns (uint96) {\n        return 10000;\n    }\n\n    /**\n     * @dev Sets the royalty information that all ids in this contract will default to.\n     *\n     * Requirements:\n     *\n     * - `receiver` cannot be the zero address.\n     * - `feeNumerator` cannot be greater than the fee denominator.\n     */\n    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {\n        uint256 denominator = _feeDenominator();\n        if (feeNumerator > denominator) {\n            // Royalty fee will exceed the sale price\n            revert ERC2981InvalidDefaultRoyalty(feeNumerator, denominator);\n        }\n        if (receiver == address(0)) {\n            revert ERC2981InvalidDefaultRoyaltyReceiver(address(0));\n        }\n\n        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);\n    }\n\n    /**\n     * @dev Removes default royalty information.\n     */\n    function _deleteDefaultRoyalty() internal virtual {\n        delete _defaultRoyaltyInfo;\n    }\n\n    /**\n     * @dev Sets the royalty information for a specific token id, overriding the global default.\n     *\n     * Requirements:\n     *\n     * - `receiver` cannot be the zero address.\n     * - `feeNumerator` cannot be greater than the fee denominator.\n     */\n    function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual {\n        uint256 denominator = _feeDenominator();\n        if (feeNumerator > denominator) {\n            // Royalty fee will exceed the sale price\n            revert ERC2981InvalidTokenRoyalty(tokenId, feeNumerator, denominator);\n        }\n        if (receiver == address(0)) {\n            revert ERC2981InvalidTokenRoyaltyReceiver(tokenId, address(0));\n        }\n\n        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);\n    }\n\n    /**\n     * @dev Resets royalty information for the token id back to the global default.\n     */\n    function _resetTokenRoyalty(uint256 tokenId) internal virtual {\n        delete _tokenRoyaltyInfo[tokenId];\n    }\n}\n"},"npm/@openzeppelin/contracts@5.6.1/utils/math/SignedMath.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.20;\n\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n    /**\n     * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n     *\n     * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n     * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n     * one branch when needed, making this function more expensive.\n     */\n    function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) {\n        unchecked {\n            // branchless ternary works because:\n            // b ^ (a ^ b) == a\n            // b ^ 0 == b\n            return b ^ ((a ^ b) * int256(SafeCast.toUint(condition)));\n        }\n    }\n\n    /**\n     * @dev Returns the largest of two signed numbers.\n     */\n    function max(int256 a, int256 b) internal pure returns (int256) {\n        return ternary(a > b, a, b);\n    }\n\n    /**\n     * @dev Returns the smallest of two signed numbers.\n     */\n    function min(int256 a, int256 b) internal pure returns (int256) {\n        return ternary(a < b, a, b);\n    }\n\n    /**\n     * @dev Returns the average of two signed numbers without overflow.\n     * The result is rounded towards zero.\n     */\n    function average(int256 a, int256 b) internal pure returns (int256) {\n        // Formula from the book \"Hacker's Delight\"\n        int256 x = (a & b) + ((a ^ b) >> 1);\n        return x + (int256(uint256(x) >> 255) & (a ^ b));\n    }\n\n    /**\n     * @dev Returns the absolute unsigned value of a signed value.\n     */\n    function abs(int256 n) internal pure returns (uint256) {\n        unchecked {\n            // Formula from the \"Bit Twiddling Hacks\" by Sean Eron Anderson.\n            // Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift,\n            // taking advantage of the most significant (or \"sign\" bit) in two's complement representation.\n            // This opcode adds new most significant bits set to the value of the previous most significant bit. As a result,\n            // the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative).\n            int256 mask = n >> 255;\n\n            // A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it.\n            return uint256((n + mask) ^ mask);\n        }\n    }\n}\n"},"npm/@openzeppelin/contracts@5.6.1/interfaces/draft-IERC6093.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.5.0) (interfaces/draft-IERC6093.sol)\n\npragma solidity >=0.8.4;\n\n/**\n * @dev Standard ERC-20 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.\n */\ninterface IERC20Errors {\n    /**\n     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     * @param balance Current balance for the interacting account.\n     * @param needed Minimum amount required to perform a transfer.\n     */\n    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);\n\n    /**\n     * @dev Indicates a failure with the token `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     */\n    error ERC20InvalidSender(address sender);\n\n    /**\n     * @dev Indicates a failure with the token `receiver`. Used in transfers.\n     * @param receiver Address to which tokens are being transferred.\n     */\n    error ERC20InvalidReceiver(address receiver);\n\n    /**\n     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.\n     * @param spender Address that may be allowed to operate on tokens without being their owner.\n     * @param allowance Amount of tokens a `spender` is allowed to operate with.\n     * @param needed Minimum amount required to perform a transfer.\n     */\n    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);\n\n    /**\n     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n     * @param approver Address initiating an approval operation.\n     */\n    error ERC20InvalidApprover(address approver);\n\n    /**\n     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.\n     * @param spender Address that may be allowed to operate on tokens without being their owner.\n     */\n    error ERC20InvalidSpender(address spender);\n}\n\n/**\n * @dev Standard ERC-721 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens.\n */\ninterface IERC721Errors {\n    /**\n     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-721.\n     * Used in balance queries.\n     * @param owner Address of the current owner of a token.\n     */\n    error ERC721InvalidOwner(address owner);\n\n    /**\n     * @dev Indicates a `tokenId` whose `owner` is the zero address.\n     * @param tokenId Identifier number of a token.\n     */\n    error ERC721NonexistentToken(uint256 tokenId);\n\n    /**\n     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     * @param tokenId Identifier number of a token.\n     * @param owner Address of the current owner of a token.\n     */\n    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);\n\n    /**\n     * @dev Indicates a failure with the token `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     */\n    error ERC721InvalidSender(address sender);\n\n    /**\n     * @dev Indicates a failure with the token `receiver`. Used in transfers.\n     * @param receiver Address to which tokens are being transferred.\n     */\n    error ERC721InvalidReceiver(address receiver);\n\n    /**\n     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     * @param tokenId Identifier number of a token.\n     */\n    error ERC721InsufficientApproval(address operator, uint256 tokenId);\n\n    /**\n     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n     * @param approver Address initiating an approval operation.\n     */\n    error ERC721InvalidApprover(address approver);\n\n    /**\n     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     */\n    error ERC721InvalidOperator(address operator);\n}\n\n/**\n * @dev Standard ERC-1155 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens.\n */\ninterface IERC1155Errors {\n    /**\n     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     * @param balance Current balance for the interacting account.\n     * @param needed Minimum amount required to perform a transfer.\n     * @param tokenId Identifier number of a token.\n     */\n    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);\n\n    /**\n     * @dev Indicates a failure with the token `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     */\n    error ERC1155InvalidSender(address sender);\n\n    /**\n     * @dev Indicates a failure with the token `receiver`. Used in transfers.\n     * @param receiver Address to which tokens are being transferred.\n     */\n    error ERC1155InvalidReceiver(address receiver);\n\n    /**\n     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     * @param owner Address of the current owner of a token.\n     */\n    error ERC1155MissingApprovalForAll(address operator, address owner);\n\n    /**\n     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n     * @param approver Address initiating an approval operation.\n     */\n    error ERC1155InvalidApprover(address approver);\n\n    /**\n     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     */\n    error ERC1155InvalidOperator(address operator);\n\n    /**\n     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.\n     * Used in batch transfers.\n     * @param idsLength Length of the array of token identifiers\n     * @param valuesLength Length of the array of token amounts\n     */\n    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);\n}\n"},"npm/@openzeppelin/contracts@5.6.1/utils/introspection/ERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/ERC165.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @dev Implementation of the {IERC165} interface.\n *\n * Contracts that want to implement ERC-165 should inherit from this contract and override {supportsInterface} to check\n * for the additional interface id that will be supported. For example:\n *\n * ```solidity\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\n * }\n * ```\n */\nabstract contract ERC165 is IERC165 {\n    /// @inheritdoc IERC165\n    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {\n        return interfaceId == type(IERC165).interfaceId;\n    }\n}\n"},"npm/@openzeppelin/contracts@5.6.1/utils/introspection/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n    /**\n     * @dev Returns true if this contract implements the interface defined by\n     * `interfaceId`. See the corresponding\n     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]\n     * to learn more about how these ids are created.\n     *\n     * This function call must use less than 30 000 gas.\n     */\n    function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n"},"npm/@openzeppelin/contracts@5.6.1/token/ERC721/IERC721Receiver.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC721/IERC721Receiver.sol)\n\npragma solidity >=0.5.0;\n\n/**\n * @title ERC-721 token receiver interface\n * @dev Interface for any contract that wants to support safeTransfers\n * from ERC-721 asset contracts.\n */\ninterface IERC721Receiver {\n    /**\n     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}\n     * by `operator` from `from`, this function is called.\n     *\n     * It must return its Solidity selector to confirm the token transfer.\n     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be\n     * reverted.\n     *\n     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.\n     */\n    function onERC721Received(\n        address operator,\n        address from,\n        uint256 tokenId,\n        bytes calldata data\n    ) external returns (bytes4);\n}\n"},"npm/@openzeppelin/contracts@5.6.1/token/ERC721/utils/ERC721Utils.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.5.0) (token/ERC721/utils/ERC721Utils.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC721Receiver} from \"../IERC721Receiver.sol\";\nimport {IERC721Errors} from \"../../../interfaces/draft-IERC6093.sol\";\n\n/**\n * @dev Library that provides common ERC-721 utility functions.\n *\n * See https://eips.ethereum.org/EIPS/eip-721[ERC-721].\n *\n * _Available since v5.1._\n */\nlibrary ERC721Utils {\n    /**\n     * @dev Performs an acceptance check for the provided `operator` by calling {IERC721Receiver-onERC721Received}\n     * on the `to` address. The `operator` is generally the address that initiated the token transfer (i.e. `msg.sender`).\n     *\n     * The acceptance call is not executed and treated as a no-op if the target address doesn't contain code (i.e. an EOA).\n     * Otherwise, the recipient must implement {IERC721Receiver-onERC721Received} and return the acceptance magic value to accept\n     * the transfer.\n     */\n    function checkOnERC721Received(\n        address operator,\n        address from,\n        address to,\n        uint256 tokenId,\n        bytes memory data\n    ) internal {\n        if (to.code.length > 0) {\n            try IERC721Receiver(to).onERC721Received(operator, from, tokenId, data) returns (bytes4 retval) {\n                if (retval != IERC721Receiver.onERC721Received.selector) {\n                    // Token rejected\n                    revert IERC721Errors.ERC721InvalidReceiver(to);\n                }\n            } catch (bytes memory reason) {\n                if (reason.length == 0) {\n                    // non-IERC721Receiver implementer\n                    revert IERC721Errors.ERC721InvalidReceiver(to);\n                } else {\n                    assembly (\"memory-safe\") {\n                        revert(add(reason, 0x20), mload(reason))\n                    }\n                }\n            }\n        }\n    }\n}\n"},"npm/@openzeppelin/contracts@5.6.1/token/ERC721/extensions/IERC721Metadata.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC721/extensions/IERC721Metadata.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC721} from \"../IERC721.sol\";\n\n/**\n * @title ERC-721 Non-Fungible Token Standard, optional metadata extension\n * @dev See https://eips.ethereum.org/EIPS/eip-721\n */\ninterface IERC721Metadata is IERC721 {\n    /**\n     * @dev Returns the token collection name.\n     */\n    function name() external view returns (string memory);\n\n    /**\n     * @dev Returns the token collection symbol.\n     */\n    function symbol() external view returns (string memory);\n\n    /**\n     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.\n     */\n    function tokenURI(uint256 tokenId) external view returns (string memory);\n}\n"}},"language":"Solidity","settings":{"viaIR":true,"optimizer":{"runs":200,"enabled":true},"evmVersion":"cancun","remappings":["project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.6.1/"]}},"stdJsonOutput":{"sources":{"project/contracts/Chastle.sol":{"id":18},"npm/@openzeppelin/contracts@5.6.1/utils/Bytes.sol":{"id":9},"npm/@openzeppelin/contracts@5.6.1/utils/Panic.sol":{"id":11},"npm/@openzeppelin/contracts@5.6.1/utils/Context.sol":{"id":10},"npm/@openzeppelin/contracts@5.6.1/utils/Strings.sol":{"id":12},"npm/@openzeppelin/contracts@5.6.1/access/Ownable.sol":{"id":0},"npm/@openzeppelin/contracts@5.6.1/utils/math/Math.sol":{"id":15},"npm/@openzeppelin/contracts@5.6.1/interfaces/IERC2981.sol":{"id":1},"npm/@openzeppelin/contracts@5.6.1/token/ERC721/ERC721.sol":{"id":3},"npm/@openzeppelin/contracts@5.6.1/utils/math/SafeCast.sol":{"id":16},"npm/@openzeppelin/contracts@5.6.1/token/ERC721/IERC721.sol":{"id":4},"npm/@openzeppelin/contracts@5.6.1/token/common/ERC2981.sol":{"id":8},"npm/@openzeppelin/contracts@5.6.1/utils/math/SignedMath.sol":{"id":17},"npm/@openzeppelin/contracts@5.6.1/interfaces/draft-IERC6093.sol":{"id":2},"npm/@openzeppelin/contracts@5.6.1/utils/introspection/ERC165.sol":{"id":13},"npm/@openzeppelin/contracts@5.6.1/utils/introspection/IERC165.sol":{"id":14},"npm/@openzeppelin/contracts@5.6.1/token/ERC721/IERC721Receiver.sol":{"id":5},"npm/@openzeppelin/contracts@5.6.1/token/ERC721/utils/ERC721Utils.sol":{"id":7},"npm/@openzeppelin/contracts@5.6.1/token/ERC721/extensions/IERC721Metadata.sol":{"id":6}},"contracts":{"project/contracts/Chastle.sol":{"Chastle":{"abi":[{"type":"constructor","inputs":[{"name":"initialOwner","type":"address","internalType":"address"}],"stateMutability":"nonpayable"},{"name":"ERC2981InvalidDefaultRoyalty","type":"error","inputs":[{"name":"numerator","type":"uint256","internalType":"uint256"},{"name":"denominator","type":"uint256","internalType":"uint256"}]},{"name":"ERC2981InvalidDefaultRoyaltyReceiver","type":"error","inputs":[{"name":"receiver","type":"address","internalType":"address"}]},{"name":"ERC2981InvalidTokenRoyalty","type":"error","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"numerator","type":"uint256","internalType":"uint256"},{"name":"denominator","type":"uint256","internalType":"uint256"}]},{"name":"ERC2981InvalidTokenRoyaltyReceiver","type":"error","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"receiver","type":"address","internalType":"address"}]},{"name":"ERC721IncorrectOwner","type":"error","inputs":[{"name":"sender","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"owner","type":"address","internalType":"address"}]},{"name":"ERC721InsufficientApproval","type":"error","inputs":[{"name":"operator","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}]},{"name":"ERC721InvalidApprover","type":"error","inputs":[{"name":"approver","type":"address","internalType":"address"}]},{"name":"ERC721InvalidOperator","type":"error","inputs":[{"name":"operator","type":"address","internalType":"address"}]},{"name":"ERC721InvalidOwner","type":"error","inputs":[{"name":"owner","type":"address","internalType":"address"}]},{"name":"ERC721InvalidReceiver","type":"error","inputs":[{"name":"receiver","type":"address","internalType":"address"}]},{"name":"ERC721InvalidSender","type":"error","inputs":[{"name":"sender","type":"address","internalType":"address"}]},{"name":"ERC721NonexistentToken","type":"error","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}]},{"name":"OwnableInvalidOwner","type":"error","inputs":[{"name":"owner","type":"address","internalType":"address"}]},{"name":"OwnableUnauthorizedAccount","type":"error","inputs":[{"name":"account","type":"address","internalType":"address"}]},{"name":"AgentGateChanged","type":"event","inputs":[{"name":"enabled","type":"bool","indexed":false,"internalType":"bool"},{"name":"registry","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"name":"Approval","type":"event","inputs":[{"name":"owner","type":"address","indexed":true,"internalType":"address"},{"name":"approved","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"name":"ApprovalForAll","type":"event","inputs":[{"name":"owner","type":"address","indexed":true,"internalType":"address"},{"name":"operator","type":"address","indexed":true,"internalType":"address"},{"name":"approved","type":"bool","indexed":false,"internalType":"bool"}],"anonymous":false},{"name":"BaseURIChanged","type":"event","inputs":[{"name":"newBaseURI","type":"string","indexed":false,"internalType":"string"}],"anonymous":false},{"name":"MintOpenChanged","type":"event","inputs":[{"name":"open","type":"bool","indexed":false,"internalType":"bool"}],"anonymous":false},{"name":"OwnershipTransferred","type":"event","inputs":[{"name":"previousOwner","type":"address","indexed":true,"internalType":"address"},{"name":"newOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"Transfer","type":"event","inputs":[{"name":"from","type":"address","indexed":true,"internalType":"address"},{"name":"to","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"name":"UnitClaimed","type":"event","inputs":[{"name":"minter","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"class_","type":"uint8","indexed":false,"internalType":"uint8"},{"name":"proofBits","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"FREE_PRICE","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"FREE_QUOTA","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"KING_BITS","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"KING_UNLOCK_MINTS","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"KNIGHT_BITS","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"MAX_PER_WALLET","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"MAX_SUPPLY","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"MIN_BITS","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"PAID_PRICE","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"QUEEN_BITS","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"QUOTA_KING","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"QUOTA_KNIGHT","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"QUOTA_PAWN","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"QUOTA_QUEEN","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"QUOTA_ROOK","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"ROOK_BITS","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"agentGateEnabled","type":"function","inputs":[],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"agentRegistry","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"approve","type":"function","inputs":[{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"assignClass","type":"function","inputs":[{"name":"bits","type":"uint256","internalType":"uint256"},{"name":"mintedNow","type":"uint256","internalType":"uint256"},{"name":"counts","type":"uint256[5]","internalType":"uint256[5]"}],"outputs":[{"name":"cls","type":"uint8","internalType":"uint8"},{"name":"seated","type":"bool","internalType":"bool"}],"stateMutability":"pure"},{"name":"balanceOf","type":"function","inputs":[{"name":"owner","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"baseURI","type":"function","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"name":"challengeFor","type":"function","inputs":[{"name":"wallet","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"name":"claim","type":"function","inputs":[{"name":"nonce","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"payable"},{"name":"claimPrice","type":"function","inputs":[{"name":"wallet","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"classCount","type":"function","inputs":[{"name":"","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"classForBits","type":"function","inputs":[{"name":"bits","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint8","internalType":"uint8"}],"stateMutability":"pure"},{"name":"className","type":"function","inputs":[{"name":"cls","type":"uint8","internalType":"uint8"}],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"pure"},{"name":"classOf","type":"function","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint8","internalType":"uint8"}],"stateMutability":"view"},{"name":"freeClaimed","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"freeRemaining","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getApproved","type":"function","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"hasAgentId","type":"function","inputs":[{"name":"wallet","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"isApprovedForAll","type":"function","inputs":[{"name":"owner","type":"address","internalType":"address"},{"name":"operator","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"kingUnlocked","type":"function","inputs":[],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"mintOpen","type":"function","inputs":[],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"mintedBy","type":"function","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"name","type":"function","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"name":"owner","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"ownerOf","type":"function","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"proofBitsOf","type":"function","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"proofHashOf","type":"function","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"name":"quotaOf","type":"function","inputs":[{"name":"cls","type":"uint8","internalType":"uint8"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"pure"},{"name":"renounceOwnership","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"royaltyInfo","type":"function","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"salePrice","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"receiver","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"safeTransferFrom","type":"function","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"safeTransferFrom","type":"function","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"data","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setAgentGate","type":"function","inputs":[{"name":"enabled","type":"bool","internalType":"bool"},{"name":"registry","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setApprovalForAll","type":"function","inputs":[{"name":"operator","type":"address","internalType":"address"},{"name":"approved","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setBaseURI","type":"function","inputs":[{"name":"newBaseURI","type":"string","internalType":"string"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setMintOpen","type":"function","inputs":[{"name":"open","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"supportsInterface","type":"function","inputs":[{"name":"interfaceId","type":"bytes4","internalType":"bytes4"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"symbol","type":"function","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"name":"tokenURI","type":"function","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"name":"totalMinted","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"totalSupply","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"transferFrom","type":"function","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"transferOwnership","type":"function","inputs":[{"name":"newOwner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"withdraw","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"}],"metadata":"{\"compiler\":{\"version\":\"0.8.28+commit.7893614a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"initialOwner\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"numerator\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"denominator\",\"type\":\"uint256\"}],\"name\":\"ERC2981InvalidDefaultRoyalty\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"ERC2981InvalidDefaultRoyaltyReceiver\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"numerator\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"denominator\",\"type\":\"uint256\"}],\"name\":\"ERC2981InvalidTokenRoyalty\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"ERC2981InvalidTokenRoyaltyReceiver\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"ERC721IncorrectOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ERC721InsufficientApproval\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"approver\",\"type\":\"address\"}],\"name\":\"ERC721InvalidApprover\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"ERC721InvalidOperator\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"ERC721InvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"ERC721InvalidReceiver\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"ERC721InvalidSender\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ERC721NonexistentToken\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"enabled\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"registry\",\"type\":\"address\"}],\"name\":\"AgentGateChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"approved\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"newBaseURI\",\"type\":\"string\"}],\"name\":\"BaseURIChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"open\",\"type\":\"bool\"}],\"name\":\"MintOpenChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"minter\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"class_\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"proofBits\",\"type\":\"uint256\"}],\"name\":\"UnitClaimed\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"FREE_PRICE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"FREE_QUOTA\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"KING_BITS\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"KING_UNLOCK_MINTS\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"KNIGHT_BITS\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAX_PER_WALLET\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAX_SUPPLY\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MIN_BITS\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PAID_PRICE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"QUEEN_BITS\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"QUOTA_KING\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"QUOTA_KNIGHT\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"QUOTA_PAWN\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"QUOTA_QUEEN\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"QUOTA_ROOK\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ROOK_BITS\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"agentGateEnabled\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"agentRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"bits\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"mintedNow\",\"type\":\"uint256\"},{\"internalType\":\"uint256[5]\",\"name\":\"counts\",\"type\":\"uint256[5]\"}],\"name\":\"assignClass\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"cls\",\"type\":\"uint8\"},{\"internalType\":\"bool\",\"name\":\"seated\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"baseURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"wallet\",\"type\":\"address\"}],\"name\":\"challengeFor\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"}],\"name\":\"claim\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"wallet\",\"type\":\"address\"}],\"name\":\"claimPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"classCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"bits\",\"type\":\"uint256\"}],\"name\":\"classForBits\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"cls\",\"type\":\"uint8\"}],\"name\":\"className\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"classOf\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"freeClaimed\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"freeRemaining\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getApproved\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"wallet\",\"type\":\"address\"}],\"name\":\"hasAgentId\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"kingUnlocked\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"mintOpen\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"mintedBy\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"proofBitsOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"proofHashOf\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"cls\",\"type\":\"uint8\"}],\"name\":\"quotaOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"salePrice\",\"type\":\"uint256\"}],\"name\":\"royaltyInfo\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"enabled\",\"type\":\"bool\"},{\"internalType\":\"address\",\"name\":\"registry\",\"type\":\"address\"}],\"name\":\"setAgentGate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"newBaseURI\",\"type\":\"string\"}],\"name\":\"setBaseURI\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"open\",\"type\":\"bool\"}],\"name\":\"setMintOpen\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"tokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalMinted\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"ERC2981InvalidDefaultRoyalty(uint256,uint256)\":[{\"details\":\"The default royalty set is invalid (eg. (numerator / denominator) >= 1).\"}],\"ERC2981InvalidDefaultRoyaltyReceiver(address)\":[{\"details\":\"The default royalty receiver is invalid.\"}],\"ERC2981InvalidTokenRoyalty(uint256,uint256,uint256)\":[{\"details\":\"The royalty set for a specific `tokenId` is invalid (eg. (numerator / denominator) >= 1).\"}],\"ERC2981InvalidTokenRoyaltyReceiver(uint256,address)\":[{\"details\":\"The royalty receiver for `tokenId` is invalid.\"}],\"ERC721IncorrectOwner(address,uint256,address)\":[{\"details\":\"Indicates an error related to the ownership over a particular token. Used in transfers.\",\"params\":{\"owner\":\"Address of the current owner of a token.\",\"sender\":\"Address whose tokens are being transferred.\",\"tokenId\":\"Identifier number of a token.\"}}],\"ERC721InsufficientApproval(address,uint256)\":[{\"details\":\"Indicates a failure with the `operator`’s approval. Used in transfers.\",\"params\":{\"operator\":\"Address that may be allowed to operate on tokens without being their owner.\",\"tokenId\":\"Identifier number of a token.\"}}],\"ERC721InvalidApprover(address)\":[{\"details\":\"Indicates a failure with the `approver` of a token to be approved. Used in approvals.\",\"params\":{\"approver\":\"Address initiating an approval operation.\"}}],\"ERC721InvalidOperator(address)\":[{\"details\":\"Indicates a failure with the `operator` to be approved. Used in approvals.\",\"params\":{\"operator\":\"Address that may be allowed to operate on tokens without being their owner.\"}}],\"ERC721InvalidOwner(address)\":[{\"details\":\"Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-721. Used in balance queries.\",\"params\":{\"owner\":\"Address of the current owner of a token.\"}}],\"ERC721InvalidReceiver(address)\":[{\"details\":\"Indicates a failure with the token `receiver`. Used in transfers.\",\"params\":{\"receiver\":\"Address to which tokens are being transferred.\"}}],\"ERC721InvalidSender(address)\":[{\"details\":\"Indicates a failure with the token `sender`. Used in transfers.\",\"params\":{\"sender\":\"Address whose tokens are being transferred.\"}}],\"ERC721NonexistentToken(uint256)\":[{\"details\":\"Indicates a `tokenId` whose `owner` is the zero address.\",\"params\":{\"tokenId\":\"Identifier number of a token.\"}}],\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}]},\"events\":{\"Approval(address,address,uint256)\":{\"details\":\"Emitted when `owner` enables `approved` to manage the `tokenId` token.\"},\"ApprovalForAll(address,address,bool)\":{\"details\":\"Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.\"},\"Transfer(address,address,uint256)\":{\"details\":\"Emitted when `tokenId` token is transferred from `from` to `to`.\"}},\"kind\":\"dev\",\"methods\":{\"approve(address,uint256)\":{\"details\":\"Gives permission to `to` to transfer `tokenId` token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - `tokenId` must exist. Emits an {Approval} event.\"},\"balanceOf(address)\":{\"details\":\"Returns the number of tokens in ``owner``'s account.\"},\"constructor\":{\"params\":{\"initialOwner\":\"The project wallet. Deployment goes through the         deterministic CREATE2 deployment proxy (0x4e59…4956C),         because the agentic wallet cannot send a bare creation         transaction — so the owner and the royalty receiver are set         explicitly here instead of relying on msg.sender.\"}},\"getApproved(uint256)\":{\"details\":\"Returns the account approved for `tokenId` token. Requirements: - `tokenId` must exist.\"},\"isApprovedForAll(address,address)\":{\"details\":\"Returns if the `operator` is allowed to manage all of the assets of `owner`. See {setApprovalForAll}\"},\"name()\":{\"details\":\"Returns the token collection name.\"},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"ownerOf(uint256)\":{\"details\":\"Returns the owner of the `tokenId` token. Requirements: - `tokenId` must exist.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"royaltyInfo(uint256,uint256)\":{\"details\":\"Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of exchange. The royalty amount is denominated and should be paid in that same unit of exchange. NOTE: ERC-2981 allows setting the royalty to 100% of the price. In that case all the price would be sent to the royalty receiver and 0 tokens to the seller. Contracts dealing with royalty should consider empty transfers.\"},\"safeTransferFrom(address,address,uint256)\":{\"details\":\"Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients are aware of the ERC-721 protocol to prevent tokens from being forever locked. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must have been allowed to move this token by either {approve} or   {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon   a safe transfer. Emits a {Transfer} event.\"},\"safeTransferFrom(address,address,uint256,bytes)\":{\"details\":\"Safely transfers `tokenId` token from `from` to `to`. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon   a safe transfer. Emits a {Transfer} event.\"},\"setApprovalForAll(address,bool)\":{\"details\":\"Approve or remove `operator` as an operator for the caller. Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. Requirements: - The `operator` cannot be the address zero. Emits an {ApprovalForAll} event.\"},\"symbol()\":{\"details\":\"Returns the token collection symbol.\"},\"tokenURI(uint256)\":{\"details\":\"Returns the Uniform Resource Identifier (URI) for `tokenId` token.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"Transfers `tokenId` token from `from` to `to`. WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC-721 or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must understand this adds an external call which potentially creates a reentrancy vulnerability. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"title\":\"CHASTLE — the Royal Court of Proof-of-Work (ERC-721, BNB Chain).\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"assignClass(uint256,uint256,uint256[5])\":{\"notice\":\"Pure seating rule, exposed so anyone can verify it off the         live counters: start at the proof's band (capped to Queen         while King is locked), then drop rank by rank until a rank         with a free seat is found. seated=false when the band and         every rank below it are full.\"},\"challengeFor(address)\":{\"notice\":\"The challenge a wallet must grind against right now. It         rotates after every successful claim because it binds the         wallet's claim count.\"},\"claim(uint256)\":{\"notice\":\"Claim one unit by presenting a nonce whose         keccak256(challengeFor(you) || nonce) has >= MIN_BITS         leading zero bits. You are seated at the highest open rank         at-or-below your proof's band (King locked until         KING_UNLOCK_MINTS total claims).\"},\"claimPrice(address)\":{\"notice\":\"Price of the NEXT claim for a wallet: claims 1-2 cost         FREE_PRICE while the global free quota lasts, then every         claim costs PAID_PRICE.\"},\"classForBits(uint256)\":{\"notice\":\"The rank band a proof's bit count belongs to, before seat         availability and the King lock are considered.\"},\"classOf(uint256)\":{\"notice\":\"The rank a unit was seated at when claimed (fixed forever).\"},\"freeRemaining()\":{\"notice\":\"Free-quota seats remaining for claims 1-2.\"},\"hasAgentId(address)\":{\"notice\":\"Whether a wallet currently passes the Agent ID gate         (always true when the gate is toggled off).\"},\"kingUnlocked()\":{\"notice\":\"Whether King seats are unlocked yet (1,000 total claims).\"},\"proofBitsOf(uint256)\":{\"notice\":\"The unit's power: the true bit count of its claim proof.\"},\"quotaOf(uint8)\":{\"notice\":\"Seat quota of a rank.\"},\"setAgentGate(bool,address)\":{\"notice\":\"Safety valve for the Agent ID gate: repoint the registry         or disable the gate if the registry ever misbehaves.\"},\"totalSupply()\":{\"notice\":\"Total units claimed so far. Indexers and marketplaces         expect a readable totalSupply().\"},\"withdraw()\":{\"notice\":\"Withdraw the full contract balance (all mint fees accrue         to the project; there is no reserve split).\"}},\"notice\":\"Five thousand seats in one royal court. Rank is not bought and         never drawn: it is PROVEN. A claim presents a nonce whose         keccak256(challengeFor(wallet) || nonce) carries leading zero         bits; the bit count sets the highest royal rank the proof may         take — Pawn 24-27, Rook 28-31, Knight 32-35, Queen 36-39,         King 40+. Unlike a pure band ladder, every rank holds a HARD         SEAT QUOTA (Pawn 2500, Rook 1500, Knight 700, Queen 250,         King 50; the quotas sum exactly to the supply). A proof is         seated at the highest rank at-or-below its band whose seats         remain: overflow from a full rank drops to the next rank down,         so a strong proof never fails merely because its own rank         filled. The one failure case is a proof whose band AND every         rank below it are all full — the remedy is public and fair:         grind a stronger proof for a rank that still has seats.         King seats stay locked until 1,000 units have been claimed;         before that, a King-band proof is seated as Queen.         The proof's TRUE bit count is stored on-chain as the unit's         power, whatever rank it received.         Pricing (per wallet, by claim order): claims 1-2 are the         court's \\\"FREEMINT 2\\\" — while the global free quota of 2,000         lasts, the contract charges 0.0002 BNB for each of them; once         the free quota is gone, claims 1-2 price like any other claim.         Claims 3-10 cost a flat 0.0004 BNB. Wallet cap: 10 for life.         All mint fees accrue to the contract and are withdrawable by         the owner in full (no reserve split). Royalty: 5%, fixed at         deployment with no setter. Claiming requires holding a         soulbound Agent ID; the owner can repoint or disable the gate         as a safety valve if the registry ever misbehaves.         Every unit is unique: its portrait is rendered off-chain in         the frozen court style, varying hair, accessories and         expression inside its rank's uniform and colours.         tokenURI(tokenId) is baseURI + tokenId.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"project/contracts/Chastle.sol\":\"Chastle\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\"project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.6.1/\"],\"viaIR\":true},\"sources\":{\"npm/@openzeppelin/contracts@5.6.1/access/Ownable.sol\":{\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8ed324d3920bb545059d66ab97d43e43ee85fd3bd52e03e401f020afb0b120f6\",\"dweb:/ipfs/QmfEckWLmZkDDcoWrkEvMWhms66xwTLff9DDhegYpvHo1a\"]},\"npm/@openzeppelin/contracts@5.6.1/interfaces/IERC2981.sol\":{\"keccak256\":\"0xafab0e6c71905303c47dd254168cb31efc91f0ae284cde609b0202f97f85469e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://824d05aec56eb82a2a3c28eece530dc0792d3a008b09d01444e57cf4aceb0445\",\"dweb:/ipfs/QmVvqmJ5UobuRU9Q4JMyXxBfzKs2cpjbWXMNpxX4binTX8\"]},\"npm/@openzeppelin/contracts@5.6.1/interfaces/draft-IERC6093.sol\":{\"keccak256\":\"0x1b88b3fb3d85ba5496d7d5f396f83ee1fddcdd6762059ff65992655b67920998\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://89393bb3212da1c0889601b9706a07b39419ddc4d2faab9eaf6e7f9152cf6a1c\",\"dweb:/ipfs/QmcCfzzxv1Bkdz1c1yF4gQCeYb6Us5BJANnzTFqawfd1HL\"]},\"npm/@openzeppelin/contracts@5.6.1/token/ERC721/ERC721.sol\":{\"keccak256\":\"0xf6bb0dc431a9c50e25756412ec14cfcd4dc61dd40b8dc0e1b58ec09fce6d5564\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://eb87fef7e8ed754b8600cd5d42e4f23128059006368ffd19e4d50cc166471ee5\",\"dweb:/ipfs/Qmc1vy1cevKreGUsG7S79gyhNvDtPnNz9qG47eYVHmMKLs\"]},\"npm/@openzeppelin/contracts@5.6.1/token/ERC721/IERC721.sol\":{\"keccak256\":\"0xf78f05f3b8c9f75570e85300d7b4600d7f6f6a198449273f31d44c1641adb46f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e28b872613b45e0e801d4995aa4380be2531147bfe2d85c1d6275f1de514fba3\",\"dweb:/ipfs/QmeeFcfShHYaS3BdgVj78nxR28ZaVUwbvr66ud8bT6kzw9\"]},\"npm/@openzeppelin/contracts@5.6.1/token/ERC721/IERC721Receiver.sol\":{\"keccak256\":\"0x88cd5e3bee2e8c36b8d9058fbcaa81ad5704281b25634122234b55ea853d8055\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8dc7e7ab5b8ea36c15027ab04221b05d1c970f47a53e9fd47ead8ca665d49c7e\",\"dweb:/ipfs/Qmeeph7fsDyfRr8vb2L8KcDEmKPb224TAayMvgqgGAnqpL\"]},\"npm/@openzeppelin/contracts@5.6.1/token/ERC721/extensions/IERC721Metadata.sol\":{\"keccak256\":\"0xf46268c37522320bb2119a5a394bc5c739a95c0c574c8d08e8c643f4d06e5c76\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://517e4b295f35b9947c72ad7379a6089439ece7bb6f4a2ea0a159da13046c039e\",\"dweb:/ipfs/QmZXzkSfLUbvujig3zVbpDHykpHhqLpvQtdiN3B5j4TA3u\"]},\"npm/@openzeppelin/contracts@5.6.1/token/ERC721/utils/ERC721Utils.sol\":{\"keccak256\":\"0xc7efbc23214ad7dced8bf2249460f4bda114d57f6a0079f84040654280f455bd\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1f5bd44efca8c8c0d74439e7b808d1f9c4af1df78f91fef8e8bbca8104645435\",\"dweb:/ipfs/Qmb42XSd8MKsEitp42sZkSFGqDRigk6QgGXtiJyJqUZJJ6\"]},\"npm/@openzeppelin/contracts@5.6.1/token/common/ERC2981.sol\":{\"keccak256\":\"0xa33062c6e0675a74a27b06a4ae4c6ad4d3b7219e27d9c146a4ac57295096d393\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://777543d88013fdd0ee7f47ac619fb13a1993bb667675d8816fde024f73cfbf2d\",\"dweb:/ipfs/QmfDS9uL1XZ2oUe1PH8eRCRyu3Hf98cK8ksGf4Ww7kg5zv\"]},\"npm/@openzeppelin/contracts@5.6.1/utils/Bytes.sol\":{\"keccak256\":\"0xf80e4b96b6849936ea0fabd76cf81b13d7276295fddb1e1c07afb3ddf650b0ac\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6430007255ac11c6e9c4331a418f3af52ff66fbbae959f645301d025b20aeb08\",\"dweb:/ipfs/QmQE5fjmBBRw9ndnzJuC2uskYss1gbaR7JdazoCf1FGoBj\"]},\"npm/@openzeppelin/contracts@5.6.1/utils/Context.sol\":{\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6a708e8a5bdb1011c2c381c9a5cfd8a9a956d7d0a9dc1bd8bcdaf52f76ef2f12\",\"dweb:/ipfs/Qmax9WHBnVsZP46ZxEMNRQpLQnrdE4dK8LehML1Py8FowF\"]},\"npm/@openzeppelin/contracts@5.6.1/utils/Panic.sol\":{\"keccak256\":\"0xf7fe324703a64fc51702311dc51562d5cb1497734f074e4f483bfb6717572d7a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c6a5ff4f9fd8649b7ee20800b7fa387d3465bd77cf20c2d1068cd5c98e1ed57a\",\"dweb:/ipfs/QmVSaVJf9FXFhdYEYeCEfjMVHrxDh5qL4CGkxdMWpQCrqG\"]},\"npm/@openzeppelin/contracts@5.6.1/utils/Strings.sol\":{\"keccak256\":\"0x1fdc2de9585ab0f1c417f02a873a2b6343cd64bb7ffec6b00ffa11a4a158d9e8\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1ab223a3d969c6cd7610049431dd42740960c477e45878f5d8b54411f7a32bdc\",\"dweb:/ipfs/QmWumhjvhpKcwx3vDPQninsNVTc3BGvqaihkQakFkQYpaS\"]},\"npm/@openzeppelin/contracts@5.6.1/utils/introspection/ERC165.sol\":{\"keccak256\":\"0x2d9dc2fe26180f74c11c13663647d38e259e45f95eb88f57b61d2160b0109d3e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://81233d1f98060113d9922180bb0f14f8335856fe9f339134b09335e9f678c377\",\"dweb:/ipfs/QmWh6R35SarhAn4z2wH8SU456jJSYL2FgucfTFgbHJJN4E\"]},\"npm/@openzeppelin/contracts@5.6.1/utils/introspection/IERC165.sol\":{\"keccak256\":\"0x8891738ffe910f0cf2da09566928589bf5d63f4524dd734fd9cedbac3274dd5c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://971f954442df5c2ef5b5ebf1eb245d7105d9fbacc7386ee5c796df1d45b21617\",\"dweb:/ipfs/QmadRjHbkicwqwwh61raUEapaVEtaLMcYbQZWs9gUkgj3u\"]},\"npm/@openzeppelin/contracts@5.6.1/utils/math/Math.sol\":{\"keccak256\":\"0x59973a93b1f983f94e10529f46ca46544a9fec2b5f56fb1390bbe9e0dc79f857\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c55ef8f0b9719790c2ae6f81d80a59ffb89f2f0abe6bc065585bd79edce058c5\",\"dweb:/ipfs/QmNNmCbX9NjPXKqHJN8R1WC2rNeZSQrPZLd6FF6AKLyH5Y\"]},\"npm/@openzeppelin/contracts@5.6.1/utils/math/SafeCast.sol\":{\"keccak256\":\"0xc8cae21c9ae4a46e5162ff9bf5b351d6fa6a6eba72d515f3bc1bdfeda7fdf083\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ce830ebcf28e31643caba318996db3763c36d52cd0f23798ba83c135355d45e9\",\"dweb:/ipfs/QmdGPcvptHN7UBCbUYBbRX3hiRVRFLRwno8b4uga6uFNif\"]},\"npm/@openzeppelin/contracts@5.6.1/utils/math/SignedMath.sol\":{\"keccak256\":\"0xb1970fac7b64e6c09611e6691791e848d5e3fe410fa5899e7df2e0afd77a99e3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://db5fbb3dddd8b7047465b62575d96231ba8a2774d37fb4737fbf23340fabbb03\",\"dweb:/ipfs/QmVUSvooZKEdEdap619tcJjTLcAuH6QBdZqAzWwnAXZAWJ\"]},\"project/contracts/Chastle.sol\":{\"keccak256\":\"0xc07580f4570c3c4047abc961f5e905cc810c49ce7c266336b920772e563cdc5f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://fa2ad4eb5c5056df9ca28c3bccd5ffe067a5bbaf229fccb54cb58fe1add4cad0\",\"dweb:/ipfs/QmSdeEVo3YJvfHmAd9uCGpxbUu7K2pzXhojWD8dsmhHwV5\"]}},\"version\":1}","userdoc":{"kind":"user","notice":"Five thousand seats in one royal court. Rank is not bought and         never drawn: it is PROVEN. A claim presents a nonce whose         keccak256(challengeFor(wallet) || nonce) carries leading zero         bits; the bit count sets the highest royal rank the proof may         take — Pawn 24-27, Rook 28-31, Knight 32-35, Queen 36-39,         King 40+. Unlike a pure band ladder, every rank holds a HARD         SEAT QUOTA (Pawn 2500, Rook 1500, Knight 700, Queen 250,         King 50; the quotas sum exactly to the supply). A proof is         seated at the highest rank at-or-below its band whose seats         remain: overflow from a full rank drops to the next rank down,         so a strong proof never fails merely because its own rank         filled. The one failure case is a proof whose band AND every         rank below it are all full — the remedy is public and fair:         grind a stronger proof for a rank that still has seats.         King seats stay locked until 1,000 units have been claimed;         before that, a King-band proof is seated as Queen.         The proof's TRUE bit count is stored on-chain as the unit's         power, whatever rank it received.         Pricing (per wallet, by claim order): claims 1-2 are the         court's \"FREEMINT 2\" — while the global free quota of 2,000         lasts, the contract charges 0.0002 BNB for each of them; once         the free quota is gone, claims 1-2 price like any other claim.         Claims 3-10 cost a flat 0.0004 BNB. Wallet cap: 10 for life.         All mint fees accrue to the contract and are withdrawable by         the owner in full (no reserve split). Royalty: 5%, fixed at         deployment with no setter. Claiming requires holding a         soulbound Agent ID; the owner can repoint or disable the gate         as a safety valve if the registry ever misbehaves.         Every unit is unique: its portrait is rendered off-chain in         the frozen court style, varying hair, accessories and         expression inside its rank's uniform and colours.         tokenURI(tokenId) is baseURI + tokenId.","methods":{"withdraw()":{"notice":"Withdraw the full contract balance (all mint fees accrue         to the project; there is no reserve split)."},"totalSupply()":{"notice":"Total units claimed so far. Indexers and marketplaces         expect a readable totalSupply()."},"claim(uint256)":{"notice":"Claim one unit by presenting a nonce whose         keccak256(challengeFor(you) || nonce) has >= MIN_BITS         leading zero bits. You are seated at the highest open rank         at-or-below your proof's band (King locked until         KING_UNLOCK_MINTS total claims)."},"kingUnlocked()":{"notice":"Whether King seats are unlocked yet (1,000 total claims)."},"quotaOf(uint8)":{"notice":"Seat quota of a rank."},"freeRemaining()":{"notice":"Free-quota seats remaining for claims 1-2."},"classOf(uint256)":{"notice":"The rank a unit was seated at when claimed (fixed forever)."},"claimPrice(address)":{"notice":"Price of the NEXT claim for a wallet: claims 1-2 cost         FREE_PRICE while the global free quota lasts, then every         claim costs PAID_PRICE."},"hasAgentId(address)":{"notice":"Whether a wallet currently passes the Agent ID gate         (always true when the gate is toggled off)."},"proofBitsOf(uint256)":{"notice":"The unit's power: the true bit count of its claim proof."},"challengeFor(address)":{"notice":"The challenge a wallet must grind against right now. It         rotates after every successful claim because it binds the         wallet's claim count."},"classForBits(uint256)":{"notice":"The rank band a proof's bit count belongs to, before seat         availability and the King lock are considered."},"setAgentGate(bool,address)":{"notice":"Safety valve for the Agent ID gate: repoint the registry         or disable the gate if the registry ever misbehaves."},"assignClass(uint256,uint256,uint256[5])":{"notice":"Pure seating rule, exposed so anyone can verify it off the         live counters: start at the proof's band (capped to Queen         while King is locked), then drop rank by rank until a rank         with a free seat is found. seated=false when the band and         every rank below it are full."}},"version":1},"devdoc":{"kind":"dev","title":"CHASTLE — the Royal Court of Proof-of-Work (ERC-721, BNB Chain).","errors":{"ERC721InvalidOwner(address)":[{"params":{"owner":"Address of the current owner of a token."},"details":"Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-721. Used in balance queries."}],"ERC721InvalidSender(address)":[{"params":{"sender":"Address whose tokens are being transferred."},"details":"Indicates a failure with the token `sender`. Used in transfers."}],"OwnableInvalidOwner(address)":[{"details":"The owner is not a valid owner account. (eg. `address(0)`)"}],"ERC721InvalidApprover(address)":[{"params":{"approver":"Address initiating an approval operation."},"details":"Indicates a failure with the `approver` of a token to be approved. Used in approvals."}],"ERC721InvalidOperator(address)":[{"params":{"operator":"Address that may be allowed to operate on tokens without being their owner."},"details":"Indicates a failure with the `operator` to be approved. Used in approvals."}],"ERC721InvalidReceiver(address)":[{"params":{"receiver":"Address to which tokens are being transferred."},"details":"Indicates a failure with the token `receiver`. Used in transfers."}],"ERC721NonexistentToken(uint256)":[{"params":{"tokenId":"Identifier number of a token."},"details":"Indicates a `tokenId` whose `owner` is the zero address."}],"OwnableUnauthorizedAccount(address)":[{"details":"The caller account is not authorized to perform an operation."}],"ERC721InsufficientApproval(address,uint256)":[{"params":{"tokenId":"Identifier number of a token.","operator":"Address that may be allowed to operate on tokens without being their owner."},"details":"Indicates a failure with the `operator`’s approval. Used in transfers."}],"ERC2981InvalidDefaultRoyalty(uint256,uint256)":[{"details":"The default royalty set is invalid (eg. (numerator / denominator) >= 1)."}],"ERC2981InvalidDefaultRoyaltyReceiver(address)":[{"details":"The default royalty receiver is invalid."}],"ERC721IncorrectOwner(address,uint256,address)":[{"params":{"owner":"Address of the current owner of a token.","sender":"Address whose tokens are being transferred.","tokenId":"Identifier number of a token."},"details":"Indicates an error related to the ownership over a particular token. Used in transfers."}],"ERC2981InvalidTokenRoyalty(uint256,uint256,uint256)":[{"details":"The royalty set for a specific `tokenId` is invalid (eg. (numerator / denominator) >= 1)."}],"ERC2981InvalidTokenRoyaltyReceiver(uint256,address)":[{"details":"The royalty receiver for `tokenId` is invalid."}]},"events":{"Approval(address,address,uint256)":{"details":"Emitted when `owner` enables `approved` to manage the `tokenId` token."},"Transfer(address,address,uint256)":{"details":"Emitted when `tokenId` token is transferred from `from` to `to`."},"ApprovalForAll(address,address,bool)":{"details":"Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets."}},"methods":{"name()":{"details":"Returns the token collection name."},"owner()":{"details":"Returns the address of the current owner."},"symbol()":{"details":"Returns the token collection symbol."},"constructor":{"params":{"initialOwner":"The project wallet. Deployment goes through the         deterministic CREATE2 deployment proxy (0x4e59…4956C),         because the agentic wallet cannot send a bare creation         transaction — so the owner and the royalty receiver are set         explicitly here instead of relying on msg.sender."}},"ownerOf(uint256)":{"details":"Returns the owner of the `tokenId` token. Requirements: - `tokenId` must exist."},"tokenURI(uint256)":{"details":"Returns the Uniform Resource Identifier (URI) for `tokenId` token."},"balanceOf(address)":{"details":"Returns the number of tokens in ``owner``'s account."},"renounceOwnership()":{"details":"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner."},"getApproved(uint256)":{"details":"Returns the account approved for `tokenId` token. Requirements: - `tokenId` must exist."},"approve(address,uint256)":{"details":"Gives permission to `to` to transfer `tokenId` token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - `tokenId` must exist. Emits an {Approval} event."},"transferOwnership(address)":{"details":"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."},"royaltyInfo(uint256,uint256)":{"details":"Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of exchange. The royalty amount is denominated and should be paid in that same unit of exchange. NOTE: ERC-2981 allows setting the royalty to 100% of the price. In that case all the price would be sent to the royalty receiver and 0 tokens to the seller. Contracts dealing with royalty should consider empty transfers."},"setApprovalForAll(address,bool)":{"details":"Approve or remove `operator` as an operator for the caller. Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. Requirements: - The `operator` cannot be the address zero. Emits an {ApprovalForAll} event."},"isApprovedForAll(address,address)":{"details":"Returns if the `operator` is allowed to manage all of the assets of `owner`. See {setApprovalForAll}"},"transferFrom(address,address,uint256)":{"details":"Transfers `tokenId` token from `from` to `to`. WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC-721 or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must understand this adds an external call which potentially creates a reentrancy vulnerability. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event."},"safeTransferFrom(address,address,uint256)":{"details":"Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients are aware of the ERC-721 protocol to prevent tokens from being forever locked. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must have been allowed to move this token by either {approve} or   {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon   a safe transfer. Emits a {Transfer} event."},"safeTransferFrom(address,address,uint256,bytes)":{"details":"Safely transfers `tokenId` token from `from` to `to`. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon   a safe transfer. Emits a {Transfer} event."}},"version":1},"storageLayout":{"types":{"t_bool":{"label":"bool","encoding":"inplace","numberOfBytes":"1"},"t_uint8":{"label":"uint8","encoding":"inplace","numberOfBytes":"1"},"t_uint96":{"label":"uint96","encoding":"inplace","numberOfBytes":"12"},"t_address":{"label":"address","encoding":"inplace","numberOfBytes":"20"},"t_bytes32":{"label":"bytes32","encoding":"inplace","numberOfBytes":"32"},"t_uint256":{"label":"uint256","encoding":"inplace","numberOfBytes":"32"},"t_string_storage":{"label":"string","encoding":"bytes","numberOfBytes":"32"},"t_array(t_uint256)5_storage":{"base":"t_uint256","label":"uint256[5]","encoding":"inplace","numberOfBytes":"160"},"t_mapping(t_address,t_bool)":{"key":"t_address","label":"mapping(address => bool)","value":"t_bool","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_uint256,t_uint8)":{"key":"t_uint256","label":"mapping(uint256 => uint8)","value":"t_uint8","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_address,t_uint256)":{"key":"t_address","label":"mapping(address => uint256)","value":"t_uint256","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_uint256,t_address)":{"key":"t_uint256","label":"mapping(uint256 => address)","value":"t_address","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_uint256,t_bytes32)":{"key":"t_uint256","label":"mapping(uint256 => bytes32)","value":"t_bytes32","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_uint256,t_uint256)":{"key":"t_uint256","label":"mapping(uint256 => uint256)","value":"t_uint256","encoding":"mapping","numberOfBytes":"32"},"t_struct(RoyaltyInfo)1533_storage":{"label":"struct ERC2981.RoyaltyInfo","members":[{"slot":"0","type":"t_address","astId":1530,"label":"receiver","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"0","type":"t_uint96","astId":1532,"label":"royaltyFraction","offset":20,"contract":"project/contracts/Chastle.sol:Chastle"}],"encoding":"inplace","numberOfBytes":"32"},"t_mapping(t_address,t_mapping(t_address,t_bool))":{"key":"t_address","label":"mapping(address => mapping(address => bool))","value":"t_mapping(t_address,t_bool)","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_uint256,t_struct(RoyaltyInfo)1533_storage)":{"key":"t_uint256","label":"mapping(uint256 => struct ERC2981.RoyaltyInfo)","value":"t_struct(RoyaltyInfo)1533_storage","encoding":"mapping","numberOfBytes":"32"}},"storage":[{"slot":"0","type":"t_string_storage","astId":337,"label":"_name","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"1","type":"t_string_storage","astId":339,"label":"_symbol","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"2","type":"t_mapping(t_uint256,t_address)","astId":343,"label":"_owners","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"3","type":"t_mapping(t_address,t_uint256)","astId":347,"label":"_balances","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"4","type":"t_mapping(t_uint256,t_address)","astId":351,"label":"_tokenApprovals","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"5","type":"t_mapping(t_address,t_mapping(t_address,t_bool))","astId":357,"label":"_operatorApprovals","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"6","type":"t_struct(RoyaltyInfo)1533_storage","astId":1536,"label":"_defaultRoyaltyInfo","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"7","type":"t_mapping(t_uint256,t_struct(RoyaltyInfo)1533_storage)","astId":1541,"label":"_tokenRoyaltyInfo","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"8","type":"t_address","astId":8,"label":"_owner","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"9","type":"t_address","astId":7849,"label":"agentRegistry","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"9","type":"t_bool","astId":7852,"label":"agentGateEnabled","offset":20,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"10","type":"t_uint256","astId":7854,"label":"totalMinted","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"11","type":"t_uint256","astId":7856,"label":"freeClaimed","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"12","type":"t_bool","astId":7859,"label":"mintOpen","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"13","type":"t_string_storage","astId":7862,"label":"_baseTokenURI","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"14","type":"t_array(t_uint256)5_storage","astId":7866,"label":"classCount","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"19","type":"t_mapping(t_uint256,t_uint8)","astId":7870,"label":"_classOf","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"20","type":"t_mapping(t_uint256,t_uint256)","astId":7874,"label":"_proofBits","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"21","type":"t_mapping(t_uint256,t_bytes32)","astId":7878,"label":"_proofHash","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"},{"slot":"22","type":"t_mapping(t_address,t_uint256)","astId":7882,"label":"mintedBy","offset":0,"contract":"project/contracts/Chastle.sol:Chastle"}]},"transientStorageLayout":{"types":null,"storage":[]},"evm":{"bytecode":{"object":"60806040523461040057604051601f61272238819003918201601f19168301916001600160401b038311848410176103335780849260209460405283398101031261040057516001600160a01b038116908190036104005761005f610404565b90600782526643484153544c4560c81b602083015261007c610404565b600781526643484153544c4560c81b602082015282519091906001600160401b038111610333576100ad5f54610423565b601f81116103b3575b506020601f821160011461035257819293945f92610347575b50508160011b915f199060031b1c1916175f555b81516001600160401b038111610333576100fe600154610423565b601f81116102da575b50602092601f821160011461027957928192935f9261026e575b50508160011b915f199060031b1c1916176001555b801561025b57600880546001600160a01b03198116831790915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3600980546001600160a81b031916740160b9262456de011f7d15a54cdd8c48baaa8b022f179055600c805460ff19169055600d546101bc90610423565b601f811161021d575b507f697066733a2f2f43484153544c455f4d455441444154415f424153452f00003a600d556101f460206101f7610404565b83815201526001600160a01b0316607d60a21b176006556040516122b090816104728239f35b600d5f5261025590601f0160051c7fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb59081019061045b565b5f6101c5565b631e4fbdf760e01b5f525f60045260245ffd5b015190505f80610121565b601f1982169360015f52805f20915f5b8681106102c257508360019596106102aa575b505050811b01600155610136565b01515f1960f88460031b161c191690555f808061029c565b91926020600181928685015181550194019201610289565b60015f52610323907fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6601f840160051c81019160208510610329575b601f0160051c019061045b565b5f610107565b9091508190610316565b634e487b7160e01b5f52604160045260245ffd5b015190505f806100cf565b601f198216905f8052805f20915f5b81811061039b57509583600195969710610383575b505050811b015f556100e3565b01515f1960f88460031b161c191690555f8080610376565b9192602060018192868b015181550194019201610361565b5f80526103fa907f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563601f840160051c8101916020851061032957601f0160051c019061045b565b5f6100b6565b5f80fd5b60408051919082016001600160401b0381118382101761033357604052565b90600182811c92168015610451575b602083101461043d57565b634e487b7160e01b5f52602260045260245ffd5b91607f1691610432565b818110610466575050565b5f815560010161045b56fe6080806040526004361015610012575f80fd5b5f3560e01c90816301ffc9a7146119b75750806306fdde0314611915578063081812fc146118d9578063095ea7b3146117ef5780630d1cfcae146117c75780630f2cdd6c146117ac57806313f9dcf414611790578063149b8885146116dd57806318160ddd146108c55780631b47ec3a146116c05780631ec5ae53146116a55780632238c8ac1461168a57806323b872dd1461167357806324bbd049146116515780632a55205a146115c65780632bddfe6f146115aa57806332cb6b0c1461158e578063379607f51461105c5780633ccfd60b14610fa55780633ce1650314610f895780633cef28d214610f5157806342842e0e14610f225780634324aa2114610eeb5780634590027914610ecf5780634753600b14610eaa5780634eab3ef214610e7d578063519d6d7e14610e6257806355f804b314610c6d5780635a781a6b14610c1c5780636352211e14610bec578063645bbbb914610bd25780636c0360eb14610bb757806370a0823114610b66578063715018a614610b0b57806374799bcc14610af05780637a06fff714610ad4578063867b817a14610ab15780638da5cb5b14610a895780639530895214610a6057806395d89b4114610996578063a22cb465146108e2578063a2309ff8146108c5578063b17e0eb5146108aa578063b45c6f2114610888578063b52f2c331461085d578063b58bdab5146107cb578063b7a3538e146107a2578063b88d4fde1461070c578063bc034ea5146106d8578063c37b8362146106b7578063c87b56dd146104c1578063caa1bb2d1461048d578063d309161514610472578063e62a1f2d14610452578063e985e9c5146103fb578063ef0e0157146103cf578063f2fde38b14610349578063f319428d146103075763f8004d31146102a5575f80fd5b34610303576020366003190112610303577fa9f739ee29a6336acdfe5b044a6dce0d70579031be6dbdece2ac0848d8c2a08060206102e1611a8c565b6102e96120f1565b151560ff19600c541660ff821617600c55604051908152a1005b5f80fd5b346103035760203660031901126103035760043560ff811681036103035761033161034591611fed565b604051918291602083526020830190611a3c565b0390f35b3461030357602036600319011261030357610362611a60565b61036a6120f1565b6001600160a01b031680156103bc57600880546001600160a01b0319811683179091556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3005b631e4fbdf760e01b5f525f60045260245ffd5b3461030357602036600319011261030357600435600581101561030357602090600e0154604051908152f35b3461030357604036600319011261030357610414611a60565b61041c611a76565b9060018060a01b03165f52600560205260405f209060018060a01b03165f52602052602060ff60405f2054166040519015158152f35b34610303575f36600319011261030357602060405165b5e620f480008152f35b34610303575f36600319011261030357602060405160188152f35b34610303576020366003190112610303576004356104aa816120bd565b505f526015602052602060405f2054604051908152f35b34610303576020366003190112610303576004356104de816120bd565b506104e7611b4b565b80519091901561069c575f818072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b811015610676575b50806d04ee2d6d415b85acef8100000000600a92101561065b575b662386f26fc10000811015610647575b6305f5e100811015610636575b612710811015610627575b6064811015610619575b1015610611575b6001810191600a602161059261057c86611af7565b9561058a6040519788611ad5565b808752611af7565b602086019490601f19013686378501015b5f1901916f181899199a1a9b1b9c1cb0b131b232b360811b8282061a8353049081156105d157600a906105a3565b50506103459260206103319281946040519584879551918291018587015e840190838201905f8252519283915e01015f815203601f198101835282611ad5565b600101610567565b606460029104920191610560565b61271060049104920191610556565b6305f5e1006008910492019161054b565b662386f26fc100006010910492019161053e565b6d04ee2d6d415b85acef81000000006020910492019161052e565b6040925072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b90049050600a610513565b50506103456040516106af602082611ad5565b5f8152610331565b34610303575f36600319011261030357602060405166016bcc41e900008152f35b34610303576020366003190112610303576004356106f5816120bd565b505f526014602052602060405f2054604051908152f35b3461030357608036600319011261030357610725611a60565b61072d611a76565b906044356064359267ffffffffffffffff841161030357366023850112156103035783600401359261075e84611af7565b9361076c6040519586611ad5565b8085523660248288010111610303576020815f9260246107a09901838901378601015261079a838383611bef565b3361214b565b005b346103035760203660031901126103035760206107c0600435611faf565b60ff60405191168152f35b346103035760e03660031901126103035736606312156103035760405160a0810181811067ffffffffffffffff82111761084957604052803660e411610303576044905b60e4821061083957604061082884602435600435611f17565b60ff83519216825215156020820152f35b813581526020918201910161080f565b634e487b7160e01b5f52604160045260245ffd5b3461030357602036600319011261030357602061088061087b611a60565b611ec6565b604051908152f35b34610303575f3660031901126103035760206103e8600a541015604051908152f35b34610303575f36600319011261030357602060405160288152f35b34610303575f366003190112610303576020600a54604051908152f35b34610303576040366003190112610303576108fb611a60565b60243590811515809203610303573315610983576001600160a01b031690811561097057335f52600560205260405f20825f5260205260405f2060ff1981541660ff83161790556040519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b50630b61174360e31b5f5260045260245ffd5b63a9fbf51f60e01b5f525f60045260245ffd5b34610303575f366003190112610303576040515f6001546109b681611b13565b8084529060018116908115610a3c57506001146109de575b6103458361033181850382611ad5565b60015f9081527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6939250905b808210610a22575090915081016020016103316109ce565b919260018160209254838588010152019101909291610a0a565b60ff191660208086019190915291151560051b8401909101915061033190506109ce565b346103035760203660031901126103035760043560ff8116810361030357610880602091611e87565b34610303575f366003190112610303576008546040516001600160a01b039091168152602090f35b34610303576020366003190112610303576020610880610acf611a60565b611e41565b34610303575f3660031901126103035760206040516103e88152f35b34610303575f36600319011261030357602060405160248152f35b34610303575f36600319011261030357610b236120f1565b600880546001600160a01b031981169091555f906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b34610303576020366003190112610303576001600160a01b03610b87611a60565b168015610ba4575f526003602052602060405f2054604051908152f35b6322718ad960e21b5f525f60045260245ffd5b34610303575f36600319011261030357610345610331611b4b565b34610303575f366003190112610303576020604051818152f35b34610303576020366003190112610303576020610c0a6004356120bd565b6040516001600160a01b039091168152f35b34610303575f36600319011261030357600b546107d08110610c44575060205f604051908152f35b6107d0036107d08111610c5957602090610880565b634e487b7160e01b5f52601160045260245ffd5b346103035760203660031901126103035760043567ffffffffffffffff8111610303573660238201121561030357806004013567ffffffffffffffff811161030357366024828401011161030357610cc36120f1565b610cce600d54611b13565b601f8111610dfa575b505f601f8211600114610d60577f5411e8ebf1636d9e83d5fc4900bf80cbac82e8790da2a4c94db4895e889eedf692826024936040935f91610d53575b508160011b905f198360031b1c191617600d555b8083519485936020855282602086015201848401375f828201840152601f01601f19168101030190a1005b8591508301013586610d14565b601f19821690600d5f525f51602061225b5f395f51905f52915f5b818110610ddf5750926040927f5411e8ebf1636d9e83d5fc4900bf80cbac82e8790da2a4c94db4895e889eedf695928260249610610dc4575b5050600181811b01600d55610d28565b83018501355f19600384901b60f8161c191690558580610db4565b91926020600181926024878a01013581550194019201610d7b565b600d5f52601f820160051c5f51602061225b5f395f51905f52019060208310610e4d575b601f0160051c5f51602061225b5f395f51905f5201905b818110610e425750610cd7565b5f8155600101610e35565b5f51602061225b5f395f51905f529150610e1e565b34610303575f36600319011261030357602060405160fa8152f35b34610303576020366003190112610303576020610ea0610e9b611a60565b611db4565b6040519015158152f35b34610303575f36600319011261030357602060ff60095460a01c166040519015158152f35b34610303575f3660031901126103035760206040516109c48152f35b3461030357602036600319011261030357600435610f08816120bd565b505f526013602052602060ff60405f205416604051908152f35b34610303576107a0610f3336611a9b565b9060405192610f43602085611ad5565b5f845261079a838383611bef565b34610303576020366003190112610303576001600160a01b03610f72611a60565b165f526016602052602060405f2054604051908152f35b34610303575f3660031901126103035760206040516107d08152f35b34610303575f36600319011261030357610fbd6120f1565b478015611021576008545f918291829182916001600160a01b03165af1610fe2611d85565b5015610fea57005b60405162461bcd60e51b815260206004820152600f60248201526e1dda5d1a191c985dc819985a5b1959608a1b6044820152606490fd5b60405162461bcd60e51b81526020600482015260136024820152726e6f7468696e6720746f20776974686472617760681b6044820152606490fd5b60203660031901126103035760ff600c5416156115585761107c33611db4565b1561151f57335f526016602052600a60405f205410156114eb57600a546113888110156114bb576110ac33611e41565b80340361148a576110bc33611ec6565b604051602081019182526004356040820152604081526110dd606082611ad5565b519020906110ea82612118565b926018841061145457604051600e5f825b6005821061143e575050508061111560a061111c93611ad5565b8286611f17565b929092156113ee5765b5e620f48000146113d4575b61113a90611d77565b9182600a5560058210156113c05781600e0180549060018201809211610c595755825f52601360205260ff60405f209216918260ff19825416179055825f5260146020528360405f2055825f52601560205260405f2055335f52601660205260405f2080549060018201809211610c5957556020926040516111bc8582611ad5565b5f815233156113ad575f8481526002865260409020546001600160a01b0316801515908161137c575b335f8181526003895260408082208054600101905588825260028a52812080546001600160a01b0319168317905587919083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9080a45061136957333b61127b575b50836040519283528201527fdeec4c70f5cd118981863a7abd648939032c7622cd6b55c633423285cbf2d3c060403392a3005b846112b49160405180938192630a85bd0160e11b83523360048401525f6024840152886044840152608060648401526084830190611a3c565b03815f335af15f9181611329575b506112ef57846112d0611d85565b80519190826112ec57633250574960e11b5f523360045260245ffd5b01fd5b929391929091906001600160e01b03191663757a42ff60e11b016113165792919084611248565b633250574960e11b5f523360045260245ffd5b9091508581813d8311611362575b6113418183611ad5565b8101031261030357516001600160e01b0319811681036103035790866112c2565b503d611337565b6339e3563760e11b5f525f60045260245ffd5b5f8681526004602052604080822080546001600160a01b031916905582825260038952902080545f190190556111e5565b633250574960e11b5f525f60045260245ffd5b634e487b7160e01b5f52603260045260245ffd5b600b549060018201809211610c5957600b91909155611131565b60405162461bcd60e51b815260206004820152602260248201527f72616e6b2066756c6c202d206772696e642061207374726f6e6765722070726f60448201526137b360f11b6064820152608490fd5b60016020819285548152019301910190916110fb565b60405162461bcd60e51b815260206004820152600e60248201526d70726f6f6620746f6f207765616b60901b6044820152606490fd5b60405162461bcd60e51b815260206004820152600960248201526877726f6e672066656560b81b6044820152606490fd5b60405162461bcd60e51b81526020600482015260086024820152671cdbdb19081bdd5d60c21b6044820152606490fd5b60405162461bcd60e51b815260206004820152600c60248201526b1dd85b1b195d081b1a5b5a5d60a21b6044820152606490fd5b60405162461bcd60e51b81526020600482015260116024820152701059d95b9d081251081c995c5d5a5c9959607a1b6044820152606490fd5b60405162461bcd60e51b815260206004820152600e60248201526d1b5a5b9d081a5cc818db1bdcd95960921b6044820152606490fd5b34610303575f3660031901126103035760206040516113888152f35b34610303575f3660031901126103035760206040516105dc8152f35b34610303576040366003190112610303576004355f90815260076020526040902054602435906001600160a01b0381169060a01c8115611639575b6001600160601b031691828102928184041490151715610c5957604080516001600160a01b0390921682526127109092046020820152f35b50506006546001600160a01b0381169060a01c611601565b34610303575f36600319011261030357602060ff600c54166040519015158152f35b34610303576107a061168436611a9b565b91611bef565b34610303575f36600319011261030357602060405160328152f35b34610303575f366003190112610303576020604051601c8152f35b34610303575f366003190112610303576020600b54604051908152f35b34610303576040366003190112610303577fb63421408d6b6f7e6fbc43340faaef44856b54d08fc7b3d82a59185fce4c9c126040611719611a8c565b611721611a76565b9061172a6120f1565b6009805460ff60a01b19811692151560a081901b60ff60a01b1693841790925590926001600160a01b0316919082611779575b505060095483519283526001600160a01b0316602083015250a1005b6001600160a81b031916171760095583808061175d565b34610303575f3660031901126103035760206040516102bc8152f35b34610303575f366003190112610303576020604051600a8152f35b34610303575f366003190112610303576009546040516001600160a01b039091168152602090f35b3461030357604036600319011261030357611808611a60565b602435611814816120bd565b331515806118c6575b80611899575b6118865781906001600160a01b0384811691167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9255f80a45f90815260046020526040902080546001600160a01b0319166001600160a01b03909216919091179055005b63a9fbf51f60e01b5f523360045260245ffd5b506001600160a01b0381165f90815260056020908152604080832033845290915290205460ff1615611823565b506001600160a01b03811633141561181d565b34610303576020366003190112610303576004356118f6816120bd565b505f526004602052602060018060a01b0360405f205416604051908152f35b34610303575f366003190112610303576040515f5f5461193481611b13565b8084529060018116908115610a3c575060011461195b576103458361033181850382611ad5565b5f8080527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563939250905b80821061199d575090915081016020016103316109ce565b919260018160209254838588010152019101909291611985565b34610303576020366003190112610303576004359063ffffffff60e01b82168092036103035760209163152a902d60e11b81149081156119f9575b5015158152f35b6380ac58cd60e01b811491508115611a2b575b8115611a1a575b50836119f2565b6301ffc9a760e01b14905083611a13565b635b5e139f60e01b81149150611a0c565b805180835260209291819084018484015e5f828201840152601f01601f1916010190565b600435906001600160a01b038216820361030357565b602435906001600160a01b038216820361030357565b60043590811515820361030357565b6060906003190112610303576004356001600160a01b038116810361030357906024356001600160a01b0381168103610303579060443590565b90601f8019910116810190811067ffffffffffffffff82111761084957604052565b67ffffffffffffffff811161084957601f01601f191660200190565b90600182811c92168015611b41575b6020831014611b2d57565b634e487b7160e01b5f52602260045260245ffd5b91607f1691611b22565b604051905f82600d5491611b5e83611b13565b8083529260018116908115611bd05750600114611b84575b611b8292500383611ad5565b565b50600d5f90815290915f51602061225b5f395f51905f525b818310611bb4575050906020611b8292820101611b76565b6020919350806001915483858901015201910190918492611b9c565b60209250611b8294915060ff191682840152151560051b820101611b76565b6001600160a01b03909116919082156113ad575f828152600260205260409020546001600160a01b031692829033151580611ce2575b5084611caf575b805f52600360205260405f2060018154019055815f52600260205260405f20816001600160601b0360a01b825416179055847fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a46001600160a01b0316808303611c9757505050565b6364283d7b60e01b5f5260045260245260445260645ffd5b5f82815260046020526040902080546001600160a01b0319169055845f52600360205260405f205f198154019055611c2c565b90915080611d26575b15611cf85782905f611c25565b8284611d1057637e27328960e01b5f5260045260245ffd5b63177e802f60e01b5f523360045260245260445ffd5b503384148015611d55575b80611ceb57505f838152600460205260409020546001600160a01b03163314611ceb565b505f84815260056020908152604080832033845290915290205460ff16611d31565b5f198114610c595760010190565b3d15611daf573d90611d9682611af7565b91611da46040519384611ad5565b82523d5f602084013e565b606090565b6009549060ff8260a01c1615611e3a576040516370a0823160e01b81526001600160a01b0391821660048201529160209183916024918391165afa5f9181611e06575b50611e0157505f90565b151590565b9091506020813d602011611e32575b81611e2260209383611ad5565b810103126103035751905f611df7565b3d9150611e15565b5050600190565b6001600160a01b03165f9081526016602052604090205460021180611e7a575b611e705766016bcc41e9000090565b65b5e620f4800090565b506107d0600b5410611e61565b60ff168015611ebf5760018114611eb85760028114611eb157600314611eac57603290565b60fa90565b506102bc90565b506105dc90565b506109c490565b60018060a01b0381165f52601660205260405f20546040519060208201923060601b84526001600160601b03199060601b166034830152604882015260488152611f11606882611ad5565b51902090565b611f249093929193611faf565b92600460ff8516149081611fa3575b50611f9a575b915b60ff811660058110156113c057611fe08260051b16840151611f5c83611e87565b11611f925715611f8a5760ff5f1991160160ff811115611f3b57634e487b7160e01b5f52601160045260245ffd5b505f91508190565b509150600190565b60039250611f39565b6103e89150105f611f33565b6028811015611fe7576024811015611fe1576020811015611fdb57601c1115611fd6575f90565b600190565b50600290565b50600390565b50600490565b60ff16801561209a576001811461207757600281146120525760031461202f5760405161201b604082611ad5565b60048152634b696e6760e01b602082015290565b60405161203d604082611ad5565b600581526428bab2b2b760d91b602082015290565b50604051612061604082611ad5565b600681526512db9a59da1d60d21b602082015290565b50604051612086604082611ad5565b6004815263526f6f6b60e01b602082015290565b506040516120a9604082611ad5565b60048152632830bbb760e11b602082015290565b5f818152600260205260409020546001600160a01b03169081156120df575090565b637e27328960e01b5f5260045260245ffd5b6008546001600160a01b0316330361210557565b63118cdaa760e01b5f523360045260245ffd5b905f918015612143575b600160ff1b81106121305750565b61213d9060011b92611d77565b91612122565b506101009150565b823b612159575b5050505050565b604051630a85bd0160e11b81526001600160a01b0391821660048201529181166024830152604482019390935260806064820152911691602090829081906121a5906084830190611a3c565b03815f865af15f9181612215575b506121e157506121c1611d85565b805190816121dc5782633250574960e11b5f5260045260245ffd5b602001fd5b6001600160e01b03191663757a42ff60e11b0161220357505f80808080612152565b633250574960e11b5f5260045260245ffd5b9091506020813d602011612252575b8161223160209383611ad5565b8101031261030357516001600160e01b03198116810361030357905f6121b3565b3d915061222456fed7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb5a2646970667358221220b0127c9eee0fb1819c76cc0d075136ab26a8451f931527014e128306d799e3fc64736f6c634300081c0033","sourceMap":"2637:10201:18:-:0;;;;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;-1:-1:-1;;;;;2637:10201:18;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2637:10201:18;;;;;;;;;;:::i;:::-;;;;;-1:-1:-1;;;2637:10201:18;;;;;;:::i;:::-;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;-1:-1:-1;;;;;2637:10201:18;;;;;-1:-1:-1;2637:10201:18;;:::i;:::-;;;;;;-1:-1:-1;2637:10201:18;;;;;;;;;;;;;-1:-1:-1;2637:10201:18;;;;;;;;;;;;;;;;;;;-1:-1:-1;2637:10201:18;;;;-1:-1:-1;;;;;2637:10201:18;;;;;1469:17:3;2637:10201:18;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2637:10201:18;;;;;;;1469:17:3;2637:10201:18;;;;;;;;;;;1469:17:3;2637:10201:18;;1273:26:0;;1269:95;;3004:6;2637:10201:18;;-1:-1:-1;;;;;;2637:10201:18;;;;;;;;;-1:-1:-1;;;;;2637:10201:18;3052:40:0;-1:-1:-1;;3052:40:0;3767:42:18;2637:10201;;-1:-1:-1;;;;;;2637:10201:18;;;;;4086:5;2637:10201;;-1:-1:-1;;2637:10201:18;;;4267:31;2637:10201;;;;:::i;:::-;;;;;;;-1:-1:-1;2637:10201:18;4267:31;2637:10201;5427:3;2637:10201;;;:::i;:::-;;;;4083:35:8;2637:10201:18;-1:-1:-1;;;;;2637:10201:18;-1:-1:-1;;;2637:10201:18;4061:57:8;2637:10201:18;;;;;;;;;;;4267:31;-1:-1:-1;2637:10201:18;;;;;;;;;;;;;:::i;:::-;;;;1269:95:0;1322:31;;;-1:-1:-1;1322:31:0;-1:-1:-1;1322:31:0;2637:10201:18;;-1:-1:-1;1322:31:0;2637:10201:18;;;;-1:-1:-1;2637:10201:18;;;;;;;;;;1469:17:3;-1:-1:-1;2637:10201:18;;-1:-1:-1;2637:10201:18;;-1:-1:-1;2637:10201:18;;;;;;;;1469:17:3;2637:10201:18;;;;;;;;;;;;1469:17:3;2637:10201:18;;;;;;;;;;;;;;;;;;;;;;;;;;;1469:17:3;2637:10201:18;;;;;;;;;;;;;;;;1469:17:3;-1:-1:-1;2637:10201:18;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;2637:10201:18;;;;;;;;-1:-1:-1;2637:10201:18;;;;;-1:-1:-1;2637:10201:18;;;;;-1:-1:-1;2637:10201:18;;;;;;;;;;-1:-1:-1;2637:10201:18;;;-1:-1:-1;2637:10201:18;;-1:-1:-1;2637:10201:18;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2637:10201:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2637:10201:18;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;-1:-1:-1;2637:10201:18;;;;;;;;;;-1:-1:-1;;;;;2637:10201:18;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;","linkReferences":{}},"deployedBytecode":{"object":"6080806040526004361015610012575f80fd5b5f3560e01c90816301ffc9a7146119b75750806306fdde0314611915578063081812fc146118d9578063095ea7b3146117ef5780630d1cfcae146117c75780630f2cdd6c146117ac57806313f9dcf414611790578063149b8885146116dd57806318160ddd146108c55780631b47ec3a146116c05780631ec5ae53146116a55780632238c8ac1461168a57806323b872dd1461167357806324bbd049146116515780632a55205a146115c65780632bddfe6f146115aa57806332cb6b0c1461158e578063379607f51461105c5780633ccfd60b14610fa55780633ce1650314610f895780633cef28d214610f5157806342842e0e14610f225780634324aa2114610eeb5780634590027914610ecf5780634753600b14610eaa5780634eab3ef214610e7d578063519d6d7e14610e6257806355f804b314610c6d5780635a781a6b14610c1c5780636352211e14610bec578063645bbbb914610bd25780636c0360eb14610bb757806370a0823114610b66578063715018a614610b0b57806374799bcc14610af05780637a06fff714610ad4578063867b817a14610ab15780638da5cb5b14610a895780639530895214610a6057806395d89b4114610996578063a22cb465146108e2578063a2309ff8146108c5578063b17e0eb5146108aa578063b45c6f2114610888578063b52f2c331461085d578063b58bdab5146107cb578063b7a3538e146107a2578063b88d4fde1461070c578063bc034ea5146106d8578063c37b8362146106b7578063c87b56dd146104c1578063caa1bb2d1461048d578063d309161514610472578063e62a1f2d14610452578063e985e9c5146103fb578063ef0e0157146103cf578063f2fde38b14610349578063f319428d146103075763f8004d31146102a5575f80fd5b34610303576020366003190112610303577fa9f739ee29a6336acdfe5b044a6dce0d70579031be6dbdece2ac0848d8c2a08060206102e1611a8c565b6102e96120f1565b151560ff19600c541660ff821617600c55604051908152a1005b5f80fd5b346103035760203660031901126103035760043560ff811681036103035761033161034591611fed565b604051918291602083526020830190611a3c565b0390f35b3461030357602036600319011261030357610362611a60565b61036a6120f1565b6001600160a01b031680156103bc57600880546001600160a01b0319811683179091556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3005b631e4fbdf760e01b5f525f60045260245ffd5b3461030357602036600319011261030357600435600581101561030357602090600e0154604051908152f35b3461030357604036600319011261030357610414611a60565b61041c611a76565b9060018060a01b03165f52600560205260405f209060018060a01b03165f52602052602060ff60405f2054166040519015158152f35b34610303575f36600319011261030357602060405165b5e620f480008152f35b34610303575f36600319011261030357602060405160188152f35b34610303576020366003190112610303576004356104aa816120bd565b505f526015602052602060405f2054604051908152f35b34610303576020366003190112610303576004356104de816120bd565b506104e7611b4b565b80519091901561069c575f818072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b811015610676575b50806d04ee2d6d415b85acef8100000000600a92101561065b575b662386f26fc10000811015610647575b6305f5e100811015610636575b612710811015610627575b6064811015610619575b1015610611575b6001810191600a602161059261057c86611af7565b9561058a6040519788611ad5565b808752611af7565b602086019490601f19013686378501015b5f1901916f181899199a1a9b1b9c1cb0b131b232b360811b8282061a8353049081156105d157600a906105a3565b50506103459260206103319281946040519584879551918291018587015e840190838201905f8252519283915e01015f815203601f198101835282611ad5565b600101610567565b606460029104920191610560565b61271060049104920191610556565b6305f5e1006008910492019161054b565b662386f26fc100006010910492019161053e565b6d04ee2d6d415b85acef81000000006020910492019161052e565b6040925072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b90049050600a610513565b50506103456040516106af602082611ad5565b5f8152610331565b34610303575f36600319011261030357602060405166016bcc41e900008152f35b34610303576020366003190112610303576004356106f5816120bd565b505f526014602052602060405f2054604051908152f35b3461030357608036600319011261030357610725611a60565b61072d611a76565b906044356064359267ffffffffffffffff841161030357366023850112156103035783600401359261075e84611af7565b9361076c6040519586611ad5565b8085523660248288010111610303576020815f9260246107a09901838901378601015261079a838383611bef565b3361214b565b005b346103035760203660031901126103035760206107c0600435611faf565b60ff60405191168152f35b346103035760e03660031901126103035736606312156103035760405160a0810181811067ffffffffffffffff82111761084957604052803660e411610303576044905b60e4821061083957604061082884602435600435611f17565b60ff83519216825215156020820152f35b813581526020918201910161080f565b634e487b7160e01b5f52604160045260245ffd5b3461030357602036600319011261030357602061088061087b611a60565b611ec6565b604051908152f35b34610303575f3660031901126103035760206103e8600a541015604051908152f35b34610303575f36600319011261030357602060405160288152f35b34610303575f366003190112610303576020600a54604051908152f35b34610303576040366003190112610303576108fb611a60565b60243590811515809203610303573315610983576001600160a01b031690811561097057335f52600560205260405f20825f5260205260405f2060ff1981541660ff83161790556040519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b50630b61174360e31b5f5260045260245ffd5b63a9fbf51f60e01b5f525f60045260245ffd5b34610303575f366003190112610303576040515f6001546109b681611b13565b8084529060018116908115610a3c57506001146109de575b6103458361033181850382611ad5565b60015f9081527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6939250905b808210610a22575090915081016020016103316109ce565b919260018160209254838588010152019101909291610a0a565b60ff191660208086019190915291151560051b8401909101915061033190506109ce565b346103035760203660031901126103035760043560ff8116810361030357610880602091611e87565b34610303575f366003190112610303576008546040516001600160a01b039091168152602090f35b34610303576020366003190112610303576020610880610acf611a60565b611e41565b34610303575f3660031901126103035760206040516103e88152f35b34610303575f36600319011261030357602060405160248152f35b34610303575f36600319011261030357610b236120f1565b600880546001600160a01b031981169091555f906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b34610303576020366003190112610303576001600160a01b03610b87611a60565b168015610ba4575f526003602052602060405f2054604051908152f35b6322718ad960e21b5f525f60045260245ffd5b34610303575f36600319011261030357610345610331611b4b565b34610303575f366003190112610303576020604051818152f35b34610303576020366003190112610303576020610c0a6004356120bd565b6040516001600160a01b039091168152f35b34610303575f36600319011261030357600b546107d08110610c44575060205f604051908152f35b6107d0036107d08111610c5957602090610880565b634e487b7160e01b5f52601160045260245ffd5b346103035760203660031901126103035760043567ffffffffffffffff8111610303573660238201121561030357806004013567ffffffffffffffff811161030357366024828401011161030357610cc36120f1565b610cce600d54611b13565b601f8111610dfa575b505f601f8211600114610d60577f5411e8ebf1636d9e83d5fc4900bf80cbac82e8790da2a4c94db4895e889eedf692826024936040935f91610d53575b508160011b905f198360031b1c191617600d555b8083519485936020855282602086015201848401375f828201840152601f01601f19168101030190a1005b8591508301013586610d14565b601f19821690600d5f525f51602061225b5f395f51905f52915f5b818110610ddf5750926040927f5411e8ebf1636d9e83d5fc4900bf80cbac82e8790da2a4c94db4895e889eedf695928260249610610dc4575b5050600181811b01600d55610d28565b83018501355f19600384901b60f8161c191690558580610db4565b91926020600181926024878a01013581550194019201610d7b565b600d5f52601f820160051c5f51602061225b5f395f51905f52019060208310610e4d575b601f0160051c5f51602061225b5f395f51905f5201905b818110610e425750610cd7565b5f8155600101610e35565b5f51602061225b5f395f51905f529150610e1e565b34610303575f36600319011261030357602060405160fa8152f35b34610303576020366003190112610303576020610ea0610e9b611a60565b611db4565b6040519015158152f35b34610303575f36600319011261030357602060ff60095460a01c166040519015158152f35b34610303575f3660031901126103035760206040516109c48152f35b3461030357602036600319011261030357600435610f08816120bd565b505f526013602052602060ff60405f205416604051908152f35b34610303576107a0610f3336611a9b565b9060405192610f43602085611ad5565b5f845261079a838383611bef565b34610303576020366003190112610303576001600160a01b03610f72611a60565b165f526016602052602060405f2054604051908152f35b34610303575f3660031901126103035760206040516107d08152f35b34610303575f36600319011261030357610fbd6120f1565b478015611021576008545f918291829182916001600160a01b03165af1610fe2611d85565b5015610fea57005b60405162461bcd60e51b815260206004820152600f60248201526e1dda5d1a191c985dc819985a5b1959608a1b6044820152606490fd5b60405162461bcd60e51b81526020600482015260136024820152726e6f7468696e6720746f20776974686472617760681b6044820152606490fd5b60203660031901126103035760ff600c5416156115585761107c33611db4565b1561151f57335f526016602052600a60405f205410156114eb57600a546113888110156114bb576110ac33611e41565b80340361148a576110bc33611ec6565b604051602081019182526004356040820152604081526110dd606082611ad5565b519020906110ea82612118565b926018841061145457604051600e5f825b6005821061143e575050508061111560a061111c93611ad5565b8286611f17565b929092156113ee5765b5e620f48000146113d4575b61113a90611d77565b9182600a5560058210156113c05781600e0180549060018201809211610c595755825f52601360205260ff60405f209216918260ff19825416179055825f5260146020528360405f2055825f52601560205260405f2055335f52601660205260405f2080549060018201809211610c5957556020926040516111bc8582611ad5565b5f815233156113ad575f8481526002865260409020546001600160a01b0316801515908161137c575b335f8181526003895260408082208054600101905588825260028a52812080546001600160a01b0319168317905587919083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9080a45061136957333b61127b575b50836040519283528201527fdeec4c70f5cd118981863a7abd648939032c7622cd6b55c633423285cbf2d3c060403392a3005b846112b49160405180938192630a85bd0160e11b83523360048401525f6024840152886044840152608060648401526084830190611a3c565b03815f335af15f9181611329575b506112ef57846112d0611d85565b80519190826112ec57633250574960e11b5f523360045260245ffd5b01fd5b929391929091906001600160e01b03191663757a42ff60e11b016113165792919084611248565b633250574960e11b5f523360045260245ffd5b9091508581813d8311611362575b6113418183611ad5565b8101031261030357516001600160e01b0319811681036103035790866112c2565b503d611337565b6339e3563760e11b5f525f60045260245ffd5b5f8681526004602052604080822080546001600160a01b031916905582825260038952902080545f190190556111e5565b633250574960e11b5f525f60045260245ffd5b634e487b7160e01b5f52603260045260245ffd5b600b549060018201809211610c5957600b91909155611131565b60405162461bcd60e51b815260206004820152602260248201527f72616e6b2066756c6c202d206772696e642061207374726f6e6765722070726f60448201526137b360f11b6064820152608490fd5b60016020819285548152019301910190916110fb565b60405162461bcd60e51b815260206004820152600e60248201526d70726f6f6620746f6f207765616b60901b6044820152606490fd5b60405162461bcd60e51b815260206004820152600960248201526877726f6e672066656560b81b6044820152606490fd5b60405162461bcd60e51b81526020600482015260086024820152671cdbdb19081bdd5d60c21b6044820152606490fd5b60405162461bcd60e51b815260206004820152600c60248201526b1dd85b1b195d081b1a5b5a5d60a21b6044820152606490fd5b60405162461bcd60e51b81526020600482015260116024820152701059d95b9d081251081c995c5d5a5c9959607a1b6044820152606490fd5b60405162461bcd60e51b815260206004820152600e60248201526d1b5a5b9d081a5cc818db1bdcd95960921b6044820152606490fd5b34610303575f3660031901126103035760206040516113888152f35b34610303575f3660031901126103035760206040516105dc8152f35b34610303576040366003190112610303576004355f90815260076020526040902054602435906001600160a01b0381169060a01c8115611639575b6001600160601b031691828102928184041490151715610c5957604080516001600160a01b0390921682526127109092046020820152f35b50506006546001600160a01b0381169060a01c611601565b34610303575f36600319011261030357602060ff600c54166040519015158152f35b34610303576107a061168436611a9b565b91611bef565b34610303575f36600319011261030357602060405160328152f35b34610303575f366003190112610303576020604051601c8152f35b34610303575f366003190112610303576020600b54604051908152f35b34610303576040366003190112610303577fb63421408d6b6f7e6fbc43340faaef44856b54d08fc7b3d82a59185fce4c9c126040611719611a8c565b611721611a76565b9061172a6120f1565b6009805460ff60a01b19811692151560a081901b60ff60a01b1693841790925590926001600160a01b0316919082611779575b505060095483519283526001600160a01b0316602083015250a1005b6001600160a81b031916171760095583808061175d565b34610303575f3660031901126103035760206040516102bc8152f35b34610303575f366003190112610303576020604051600a8152f35b34610303575f366003190112610303576009546040516001600160a01b039091168152602090f35b3461030357604036600319011261030357611808611a60565b602435611814816120bd565b331515806118c6575b80611899575b6118865781906001600160a01b0384811691167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9255f80a45f90815260046020526040902080546001600160a01b0319166001600160a01b03909216919091179055005b63a9fbf51f60e01b5f523360045260245ffd5b506001600160a01b0381165f90815260056020908152604080832033845290915290205460ff1615611823565b506001600160a01b03811633141561181d565b34610303576020366003190112610303576004356118f6816120bd565b505f526004602052602060018060a01b0360405f205416604051908152f35b34610303575f366003190112610303576040515f5f5461193481611b13565b8084529060018116908115610a3c575060011461195b576103458361033181850382611ad5565b5f8080527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563939250905b80821061199d575090915081016020016103316109ce565b919260018160209254838588010152019101909291611985565b34610303576020366003190112610303576004359063ffffffff60e01b82168092036103035760209163152a902d60e11b81149081156119f9575b5015158152f35b6380ac58cd60e01b811491508115611a2b575b8115611a1a575b50836119f2565b6301ffc9a760e01b14905083611a13565b635b5e139f60e01b81149150611a0c565b805180835260209291819084018484015e5f828201840152601f01601f1916010190565b600435906001600160a01b038216820361030357565b602435906001600160a01b038216820361030357565b60043590811515820361030357565b6060906003190112610303576004356001600160a01b038116810361030357906024356001600160a01b0381168103610303579060443590565b90601f8019910116810190811067ffffffffffffffff82111761084957604052565b67ffffffffffffffff811161084957601f01601f191660200190565b90600182811c92168015611b41575b6020831014611b2d57565b634e487b7160e01b5f52602260045260245ffd5b91607f1691611b22565b604051905f82600d5491611b5e83611b13565b8083529260018116908115611bd05750600114611b84575b611b8292500383611ad5565b565b50600d5f90815290915f51602061225b5f395f51905f525b818310611bb4575050906020611b8292820101611b76565b6020919350806001915483858901015201910190918492611b9c565b60209250611b8294915060ff191682840152151560051b820101611b76565b6001600160a01b03909116919082156113ad575f828152600260205260409020546001600160a01b031692829033151580611ce2575b5084611caf575b805f52600360205260405f2060018154019055815f52600260205260405f20816001600160601b0360a01b825416179055847fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a46001600160a01b0316808303611c9757505050565b6364283d7b60e01b5f5260045260245260445260645ffd5b5f82815260046020526040902080546001600160a01b0319169055845f52600360205260405f205f198154019055611c2c565b90915080611d26575b15611cf85782905f611c25565b8284611d1057637e27328960e01b5f5260045260245ffd5b63177e802f60e01b5f523360045260245260445ffd5b503384148015611d55575b80611ceb57505f838152600460205260409020546001600160a01b03163314611ceb565b505f84815260056020908152604080832033845290915290205460ff16611d31565b5f198114610c595760010190565b3d15611daf573d90611d9682611af7565b91611da46040519384611ad5565b82523d5f602084013e565b606090565b6009549060ff8260a01c1615611e3a576040516370a0823160e01b81526001600160a01b0391821660048201529160209183916024918391165afa5f9181611e06575b50611e0157505f90565b151590565b9091506020813d602011611e32575b81611e2260209383611ad5565b810103126103035751905f611df7565b3d9150611e15565b5050600190565b6001600160a01b03165f9081526016602052604090205460021180611e7a575b611e705766016bcc41e9000090565b65b5e620f4800090565b506107d0600b5410611e61565b60ff168015611ebf5760018114611eb85760028114611eb157600314611eac57603290565b60fa90565b506102bc90565b506105dc90565b506109c490565b60018060a01b0381165f52601660205260405f20546040519060208201923060601b84526001600160601b03199060601b166034830152604882015260488152611f11606882611ad5565b51902090565b611f249093929193611faf565b92600460ff8516149081611fa3575b50611f9a575b915b60ff811660058110156113c057611fe08260051b16840151611f5c83611e87565b11611f925715611f8a5760ff5f1991160160ff811115611f3b57634e487b7160e01b5f52601160045260245ffd5b505f91508190565b509150600190565b60039250611f39565b6103e89150105f611f33565b6028811015611fe7576024811015611fe1576020811015611fdb57601c1115611fd6575f90565b600190565b50600290565b50600390565b50600490565b60ff16801561209a576001811461207757600281146120525760031461202f5760405161201b604082611ad5565b60048152634b696e6760e01b602082015290565b60405161203d604082611ad5565b600581526428bab2b2b760d91b602082015290565b50604051612061604082611ad5565b600681526512db9a59da1d60d21b602082015290565b50604051612086604082611ad5565b6004815263526f6f6b60e01b602082015290565b506040516120a9604082611ad5565b60048152632830bbb760e11b602082015290565b5f818152600260205260409020546001600160a01b03169081156120df575090565b637e27328960e01b5f5260045260245ffd5b6008546001600160a01b0316330361210557565b63118cdaa760e01b5f523360045260245ffd5b905f918015612143575b600160ff1b81106121305750565b61213d9060011b92611d77565b91612122565b506101009150565b823b612159575b5050505050565b604051630a85bd0160e11b81526001600160a01b0391821660048201529181166024830152604482019390935260806064820152911691602090829081906121a5906084830190611a3c565b03815f865af15f9181612215575b506121e157506121c1611d85565b805190816121dc5782633250574960e11b5f5260045260245ffd5b602001fd5b6001600160e01b03191663757a42ff60e11b0161220357505f80808080612152565b633250574960e11b5f5260045260245ffd5b9091506020813d602011612252575b8161223160209383611ad5565b8101031261030357516001600160e01b03198116810361030357905f6121b3565b3d915061222456fed7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb5a2646970667358221220b0127c9eee0fb1819c76cc0d075136ab26a8451f931527014e128306d799e3fc64736f6c634300081c0033","sourceMap":"2637:10201:18:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3201:2;2637:10201;3201:2;;;2637:10201;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;11688:21;2637:10201;;;:::i;:::-;1500:62:0;;:::i;:::-;2637:10201:18;;;;11658:15;2637:10201;;;;;;11658:15;2637:10201;;;;;;11688:21;2637:10201;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;:::i;:::-;1500:62:0;;:::i;:::-;-1:-1:-1;;;;;2637:10201:18;2627:22:0;;2623:91;;3004:6;2637:10201:18;;-1:-1:-1;;;;;;2637:10201:18;;;;;;;-1:-1:-1;;;;;2637:10201:18;3052:40:0;-1:-1:-1;;3052:40:0;2637:10201:18;2623:91:0;2672:31;;;2637:10201:18;2672:31:0;2637:10201:18;;;;;2672:31:0;2637:10201:18;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;4305:28;;;;;2637:10201;;4305:28;2637:10201;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;:::i;:::-;;;:::i;:::-;;;;;;;;;;3776:18:3;2637:10201:18;;;;;3776:35:3;2637:10201:18;;;;;;-1:-1:-1;2637:10201:18;;;;;;-1:-1:-1;2637:10201:18;;;;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;2868:12;2637:10201;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;3097:2;2637:10201;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;11219:22;;;:::i;:::-;;2637:10201;;11258:10;2637:10201;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;2618:22:3;;;:::i;:::-;;2637:10201:18;;:::i;:::-;;;;;;2702:25:3;:75;;2637:10201:18;2753:18:3;;-1:-1:-1;;;29599:17:15;;;29595:103;;2702:75:3;29715:17:15;;29724:8;30295:7;29715:17;;;29711:103;;2702:75:3;29840:8:15;29831:17;;;29827:103;;2702:75:3;29956:7:15;29947:16;;;29943:100;;2702:75:3;30069:7:15;30060:16;;;30056:100;;2702:75:3;30182:7:15;30173:16;;;30169:100;;2702:75:3;30286:16:15;;30282:66;;2702:75:3;2637:10201:18;;;;30295:7:15;1488:94:12;2637:10201:18;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;:::i;:::-;;;;;;-1:-1:-1;;2637:10201:18;;;;1488:94:12;;;1595:247;-1:-1:-1;;2637:10201:18;;-1:-1:-1;;;1649:111:12;;;;2637:10201:18;1649:111:12;2637:10201:18;1810:10:12;;;1806:21;;30295:7:15;;1595:247:12;;1806:21;1822:5;;2637:10201:18;1822:5:12;2637:10201:18;;1822:5:12;;;2637:10201:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;30282:66:15:-;2637:10201:18;;30282:66:15;;30169:100;30182:7;30253:1;2637:10201:18;;;;30169:100:15;;;30056;30069:7;2637:10201:18;;;;;30056:100:15;;;29943;29956:7;30027:1;2637:10201:18;;;;29943:100:15;;;29827:103;29840:8;29913:2;2637:10201:18;;;;29827:103:15;;;29711;29724:8;2637:10201:18;;;;;29711:103:15;;;29595;2637:10201:18;;-1:-1:-1;;;;2637:10201:18;;;-1:-1:-1;30295:7:15;29595:103;;2702:75:3;2637:10201:18;;;;;;;;;:::i;:::-;;;;2702:75:3;;2637:10201:18;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;2923:12;2637:10201;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;11070:22;;;:::i;:::-;;2637:10201;;11109:10;2637:10201;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;:::i;:::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;4851:4:3;2637:10201:18;;;;;;;;;;4766:7:3;;;;;:::i;:::-;735:10:10;4851:4:3;:::i;:::-;2637:10201:18;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;2985:4;9714:11;2637:10201;9714:32;;2637:10201;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;3290:2;2637:10201;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;3857:26;2637:10201;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;:::i;:::-;;;;;;;;;;;;735:10:10;15418:19:3;15414:90;;-1:-1:-1;;;;;2637:10201:18;;15517:22:3;;15513:91;;735:10:10;2637:10201:18;;15613:18:3;2637:10201:18;;;;;;-1:-1:-1;2637:10201:18;;;;-1:-1:-1;2637:10201:18;;;;;;;;;;;;;;;;;15674:41:3;2637:10201:18;735:10:10;15674:41:3;;2637:10201:18;15513:91:3;15562:31;;;;2637:10201:18;15562:31:3;2637:10201:18;;;;15562:31:3;15414:90;14909:27;;;2637:10201:18;15460:33:3;2637:10201:18;;;;;15460:33:3;2637:10201:18;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;2473:7:3;2637:10201:18;;;;:::i;:::-;;;;;2473:7:3;2637:10201:18;;;2473:7:3;;;;2637:10201:18;;;;;;;;;;;;;;:::i;:::-;2473:7:3;2637:10201:18;;;;;;;-1:-1:-1;2637:10201:18;;;;;;;-1:-1:-1;2637:10201:18;;-1:-1:-1;2637:10201:18;;;;;;;;;;2473:7:3;2637:10201:18;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2637:10201:18;;-1:-1:-1;2637:10201:18;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;-1:-1:-1;;2637:10201:18;;;;1710:6:0;2637:10201:18;;;-1:-1:-1;;;;;2637:10201:18;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;2985:4;2637:10201;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;3246:2;2637:10201;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;1500:62:0;;:::i;:::-;3004:6;2637:10201:18;;-1:-1:-1;;;;;;2637:10201:18;;;;;;;-1:-1:-1;;;;;2637:10201:18;3052:40:0;2637:10201:18;;3052:40:0;2637:10201:18;;;;;;;-1:-1:-1;;2637:10201:18;;;;-1:-1:-1;;;;;2637:10201:18;;:::i;:::-;;1947:19:3;;1943:87;;2637:10201:18;;2046:9:3;2637:10201:18;;;;;;;;;;;;;1943:87:3;1989:30;;;2637:10201:18;1989:30:3;2637:10201:18;;;;;1989:30:3;2637:10201:18;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;:::i;:::-;;;;;;-1:-1:-1;;2637:10201:18;;;;3201:2;2637:10201;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;2192:22:3;2637:10201:18;;2192:22:3;:::i;:::-;2637:10201:18;;-1:-1:-1;;;;;2637:10201:18;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;9890:11;2637:10201;2821:4;9890:25;;2821:4;;9890:56;2637:10201;;;;;;;;9890:56;2821:4;2637:10201;2821:4;2637:10201;;;;;9890:56;;;2637:10201;;;;;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1500:62:0;;:::i;:::-;2637:10201:18;11799:26;2637:10201;;:::i;:::-;;;;;;;;;;;;;;;;11840:26;2637:10201;;;;;;;;;;;;;;;;;;;;;;;;;11799:26;2637:10201;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;11840:26;;;;2637:10201;;;;;;;;;;;;;;;;;;11799:26;2637:10201;;-1:-1:-1;;;;;;;;;;;2637:10201:18;;;;;;;;;;;;11840:26;2637:10201;;;;;;;;;;;;;;;;11799:26;2637:10201;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11799:26;2637:10201;;;;;;;-1:-1:-1;;;;;;;;;;;2637:10201:18;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2637:10201:18;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2637:10201:18;-1:-1:-1;2637:10201:18;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;3606:3;2637:10201;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;3815:35;2637:10201;;;;;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;3463:4;2637:10201;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;10597:22;;;:::i;:::-;;2637:10201;;10636:8;2637:10201;;;;;;;;;;;;;;;;;;;4851:4:3;2637:10201:18;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;4766:7:3;;;;;:::i;2637:10201:18:-;;;;;;-1:-1:-1;;2637:10201:18;;;;-1:-1:-1;;;;;2637:10201:18;;:::i;:::-;;;;4636:43;2637:10201;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;2821:4;2637:10201;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;1500:62:0;;:::i;:::-;12456:21:18;12495:7;;2637:10201;;1710:6:0;2637:10201:18;;;;;;;;;-1:-1:-1;;;;;2637:10201:18;12550:37;;;;:::i;:::-;;2637:10201;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;7093:8;2637:10201;;;;;7138:22;7149:10;7138:22;:::i;:::-;2637:10201;;;7149:10;2637:10201;;7200:8;2637:10201;;2776:2;2637:10201;;;;7200:37;2637:10201;;;2776:2;2637:10201;2725:4;7272:24;;2637:10201;;;7335:22;7149:10;7335:22;:::i;:::-;7375:9;;:18;2637:10201;;7460:24;7149:10;7460:24;:::i;:::-;2637:10201;;;7443:49;;2637:10201;;;;;;;;;;7443:49;;;;;;:::i;:::-;2637:10201;7433:60;;7518:22;;;;:::i;:::-;7558:16;3097:2;7558:16;;2637:10201;;;;7662:10;2637:10201;;;;;;;;;;;;;;7631:42;2637:10201;;:::i;:::-;7631:42;;;:::i;:::-;2637:10201;;;;;;2868:12;7751:19;7747:41;;2637:10201;7816:13;;;:::i;:::-;2637:10201;;2776:2;2637:10201;;;;;;;;7662:10;2637:10201;;;;;;;;;;;;;;;;7869:8;2637:10201;;;;;;;;;;;;;;;;;;;;;7902:10;2637:10201;;;;;;;;;;7938:10;2637:10201;;;;;;7149:10;2637:10201;;7200:8;2637:10201;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;7149:10;9691:16:3;9687:87;;2637:10201:18;;;;5470:7:3;2637:10201:18;;;;;;-1:-1:-1;;;;;2637:10201:18;8830:18:3;;;;;8826:256;;2637:10201:18;7149:10;2637:10201;;;;;;;;;;;;;;;;;;;;5470:7:3;2637:10201:18;;;;;;-1:-1:-1;;;;;;2637:10201:18;;;;;;;7149:10;9246:27:3;;;;2637:10201:18;9246:27:3;9849:96;;;7149:10:18;1174:14:7;1170:744;;2637:10201:18;;;;;;;;;;;8055:43;2637:10201;7149:10;8055:43;;2637:10201;1170:744:7;2637:10201:18;;;;;;;;;;;;1212:67:7;;7149:10:18;2637:10201;1212:67:7;;2637:10201:18;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1212:67:7;7149:10:18;2637:10201;7149:10;1212:67:7;;2637:10201:18;;1212:67:7;;;1170:744;-1:-1:-1;1208:696:7;;1519:385;;;:::i;:::-;2637:10201:18;;;;1569:18:7;;;9730:33:3;;;2637:10201:18;1673:39:7;7149:10:18;2637:10201;;;;1673:39:7;1565:325;1759:113;;1208:696;2637:10201:18;;;;;;;-1:-1:-1;;;;;;2637:10201:18;-1:-1:-1;;;1326:51:7;1322:182;;1170:744;;;;;;1322:182;9730:33:3;;;2637:10201:18;1446:39:7;7149:10:18;2637:10201;;;;1446:39:7;1212:67;;;;;;;;;;;;;;;;;:::i;:::-;;;2637:10201:18;;;;;-1:-1:-1;;;;;;2637:10201:18;;;;;;1212:67:7;;;;;;;;;9849:96:3;9903:31;;;2637:10201:18;9903:31:3;2637:10201:18;;;;;9903:31:3;8826:256;2637:10201:18;;;;15066:15:3;2637:10201:18;;;;;;;;-1:-1:-1;;;;;;2637:10201:18;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;8826:256:3;;9687:87;9730:33;;;2637:10201:18;9730:33:3;2637:10201:18;;;;;9730:33:3;2637:10201:18;;;;;;;;;;;;7747:41;7772:16;2637:10201;;;;;;;;;;7772:16;2637:10201;;;;7747:41;;2637:10201;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;7093:8;2637:10201;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;2725:4;2637:10201;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;3510:4;2637:10201;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;;;;2517:17:8;2637:10201:18;;;;;;;;;-1:-1:-1;;;;;2637:10201:18;;;;;2678:29:8;;2674:173;;2637:10201:18;-1:-1:-1;;;;;2637:10201:18;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2637:10201:18;;;;;;;;;;;;;;2674:173:8;-1:-1:-1;;2741:19:8;2637:10201:18;-1:-1:-1;;;;;2637:10201:18;;;;;2674:173:8;;2637:10201:18;;;;;;-1:-1:-1;;2637:10201:18;;;;;;4063:28;2637:10201;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::i;:::-;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;3652:2;2637:10201;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;3155:2;2637:10201;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;3889:26;2637:10201;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;12207:40;2637:10201;;;:::i;:::-;;;:::i;:::-;1500:62:0;;;:::i;:::-;12104:26:18;2637:10201;;-1:-1:-1;;;;2637:10201:18;;;;;;;;;-1:-1:-1;;;2637:10201:18;;;;;;;;;-1:-1:-1;;;;;2637:10201:18;;;;12140:52;;2637:10201;-1:-1:-1;;12104:26:18;2637:10201;;;;;;-1:-1:-1;;;;;2637:10201:18;;;;;-1:-1:-1;12207:40:18;2637:10201;12140:52;-1:-1:-1;;;;;;2637:10201:18;;;12104:26;2637:10201;12140:52;;;;;2637:10201;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;3559:3;2637:10201;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;2776:2;2637:10201;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;3736:73;2637:10201;;;-1:-1:-1;;;;;2637:10201:18;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;:::i;:::-;;;14663:22:3;;;:::i;:::-;735:10:10;14813:18:3;;:35;;;2637:10201:18;14813:69:3;;;2637:10201:18;14809:142:3;;2637:10201:18;;-1:-1:-1;;;;;2637:10201:18;;;;;15003:28:3;2637:10201:18;;15003:28:3;2637:10201:18;;;;;;;;;;;;-1:-1:-1;;;;;;2637:10201:18;-1:-1:-1;;;;;2637:10201:18;;;;;;;;;;14809:142:3;14909:27;;;2637:10201:18;14909:27:3;735:10:10;2637:10201:18;;;;14909:27:3;14813:69;-1:-1:-1;;;;;;2637:10201:18;;;;;;3776:18:3;2637:10201:18;;;;;;;;735:10:10;2637:10201:18;;;;;;;;;;14852:30:3;14813:69;;:35;-1:-1:-1;;;;;;2637:10201:18;;735:10:10;14835:13:3;;14813:35;;2637:10201:18;;;;;;-1:-1:-1;;2637:10201:18;;;;;;3385:22:3;;;:::i;:::-;;2637:10201:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;-1:-1:-1;2637:10201:18;;;;;;;-1:-1:-1;2637:10201:18;;-1:-1:-1;2637:10201:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2637:10201:18;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2207:41:8;;;:81;;;;2637:10201:18;;;;;;;2207:81:8;-1:-1:-1;;;1664:40:3;;;-1:-1:-1;1664:104:3;;;;2207:81:8;1664:156:3;;;;2207:81:8;;;;;1664:156:3;-1:-1:-1;;;829:40:13;;-1:-1:-1;1664:156:3;;;:104;-1:-1:-1;;;1720:48:3;;;-1:-1:-1;1664:104:3;;2637:10201:18;;;;;;;;;;;;;;;;;-1:-1:-1;2637:10201:18;;;;;;;;-1:-1:-1;;2637:10201:18;;;;:::o;:::-;;;;-1:-1:-1;;;;;2637:10201:18;;;;;;:::o;:::-;;;;-1:-1:-1;;;;;2637:10201:18;;;;;;:::o;:::-;;;;;;;;;;;:::o;:::-;;;;;;;;;;;-1:-1:-1;;;;;2637:10201:18;;;;;;;;;-1:-1:-1;;;;;2637:10201:18;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;-1:-1:-1;;2637:10201:18;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2637:10201:18;11413:13;2637:10201;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:::o;:::-;-1:-1:-1;11413:13:18;-1:-1:-1;2637:10201:18;;;;;-1:-1:-1;;;;;;;;;;;2637:10201:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3852:578:3;-1:-1:-1;;;;;2637:10201:18;;;;3852:578:3;3946:16;;3942:87;;3960:1;2637:10201:18;;;5470:7:3;2637:10201:18;;;;;;-1:-1:-1;;;;;2637:10201:18;;;;735:10:10;8704:18:3;;;8700:86;;3852:578;8830:18;;8826:256;;3852:578;2637:10201:18;3960:1:3;2637:10201:18;9156:9:3;2637:10201:18;;;3960:1:3;2637:10201:18;9096:16:3;2637:10201:18;;;;;;3960:1:3;2637:10201:18;5470:7:3;2637:10201:18;;;3960:1:3;2637:10201:18;;-1:-1:-1;;;;;2637:10201:18;;;;;;;;9246:27:3;;3960:1;9246:27;;-1:-1:-1;;;;;2637:10201:18;4319:21:3;;;4315:109;;3852:578;;;:::o;4315:109::-;4363:50;;;3960:1;4363:50;;2637:10201:18;;;;;;3960:1:3;4363:50;8826:256;2637:10201:18;;;;15066:15:3;2637:10201:18;;;;;;;-1:-1:-1;;;;;;2637:10201:18;;;;3960:1:3;2637:10201:18;9037:9:3;2637:10201:18;;;3960:1:3;2637:10201:18;;;;;;;;8826:256:3;;8700:86;6185:127;;-1:-1:-1;6185:127:3;;;8700:86;6862:39;6858:255;;8700:86;;;;;6858:255;6921:19;;2637:10201:18;;6967:31:3;;;3960:1;6967:31;;2637:10201:18;;3960:1:3;6967:31;6917:186;7044:44;;;3960:1;7044:44;735:10:10;7044:44:3;2637:10201:18;;;;3960:1:3;7044:44;6185:127;735:10:10;;6223:16:3;;:52;;;;6185:127;6223:88;6185:127;6223:88;-1:-1:-1;3960:1:3;2637:10201:18;;;5705:15:3;2637:10201:18;;;;;;-1:-1:-1;;;;;2637:10201:18;735:10:10;6279:32:3;6185:127;;6223:52;-1:-1:-1;3960:1:3;2637:10201:18;;;3776:18:3;2637:10201:18;;;;;;;;735:10:10;2637:10201:18;;;;;;;;;;6223:52:3;;2637:10201:18;-1:-1:-1;;2637:10201:18;;;;;;;:::o;:::-;;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;-1:-1:-1;2637:10201:18;;;;:::o;:::-;;;:::o;6424:280::-;6502:16;2637:10201;;;;;;;6501:17;6497:34;;2637:10201;;-1:-1:-1;;;6545:47:18;;-1:-1:-1;;;;;2637:10201:18;;;6545:47;;;2637:10201;;;;;;6545:47;;2637:10201;;;6545:47;;2637:10201;;6545:47;;;6424:280;-1:-1:-1;6541:157:18;;6675:12;2637:10201;6675:12;:::o;6541:157::-;6636:7;;6629:14;:::o;6545:47::-;;;;2637:10201;6545:47;;2637:10201;6545:47;;;;;;2637:10201;6545:47;;;:::i;:::-;;;2637:10201;;;;;6545:47;;;;;;;-1:-1:-1;6545:47:18;;6497:34;6520:11;;6527:4;6520:11;:::o;6109:181::-;-1:-1:-1;;;;;2637:10201:18;;;;;6189:8;2637:10201;;;;;;6208:1;-1:-1:-1;6189:20:18;:48;;6109:181;6185:71;;2923:12;6109:181;:::o;6185:71::-;2868:12;6239:17;:::o;6189:48::-;2637:10201;2821:4;6213:11;2637:10201;6213:24;6189:48;;8548:259;2637:10201;;8620:8;;8616:31;;8668:1;8661:8;;8657:31;;8709:1;8702:8;;8698:33;;8752:1;8745:8;8741:32;;3652:2;8548:259;:::o;8741:32::-;3606:3;8755:18;:::o;8698:33::-;8712:19;3559:3;8712:19;:::o;8657:31::-;8671:17;3510:4;8671:17;:::o;8616:31::-;8630:17;3463:4;8630:17;:::o;5760:160::-;2637:10201;;;;;;;-1:-1:-1;2637:10201:18;5895:8;2637:10201;;;-1:-1:-1;2637:10201:18;;;;5855:57;2637:10201;5855:57;;5880:4;;2637:10201;;;;-1:-1:-1;;;;;2637:10201:18;;;;;;;;;;;;;;5855:57;;;;;;:::i;:::-;2637:10201;5845:68;;5760:160;:::o;9157:409::-;9326:18;9157:409;;;;;9326:18;:::i;:::-;2637:10201;9365:1;2637:10201;;;9358:8;:41;;;;9157:409;9354:54;;;9157:409;9418:114;;2637:10201;;;;;;;;;;;;;;;;;9440:12;;;:::i;:::-;-1:-1:-1;9425:27:18;;9472:8;9468:31;;2637:10201;;;;;;;;;;9418:114;2637:10201;;;;;;;9365:1;2637:10201;;;;9468:31;-1:-1:-1;2637:10201:18;;-1:-1:-1;2637:10201:18;;9482:17::o;9425:27::-;-1:-1:-1;9425:27:18;-1:-1:-1;9520:1:18;;9157:409::o;9354:54::-;9407:1;;-1:-1:-1;9354:54:18;;9358:41;2985:4;9370:29;;;9358:41;;;8248:256;3290:2;8326:17;;;8322:31;;3246:2;8367:18;;;8363:32;;3201:2;8409:19;;;8405:33;;3155:2;-1:-1:-1;8452:17:18;8448:31;;2637:10201;8248:256;:::o;8448:31::-;8478:1;8471:8;:::o;8405:33::-;8430:8;8437:1;8430:8;:::o;8363:32::-;8387:8;8394:1;8387:8;:::o;8322:31::-;8345:8;8352:1;8345:8;:::o;10666:247::-;2637:10201;;10746:8;;10742:27;;10790:1;10783:8;;10779:27;;10827:1;10820:8;;10816:29;;10866:1;10859:8;10855:28;;2637:10201;;;;;;:::i;:::-;;;;-1:-1:-1;;;2637:10201:18;;;;10666:247;:::o;10855:28::-;2637:10201;;;;;;:::i;:::-;;;;-1:-1:-1;;;2637:10201:18;;;;10869:14;:::o;10816:29::-;2637:10201;;;;;;;:::i;:::-;;;;-1:-1:-1;;;2637:10201:18;;;;10830:15;:::o;10779:27::-;2637:10201;;;;;;;:::i;:::-;;;;-1:-1:-1;;;2637:10201:18;;;;10793:13;:::o;10742:27::-;2637:10201;;;;;;;:::i;:::-;;;;-1:-1:-1;;;2637:10201:18;;;;10756:13;:::o;15957:241:3:-;-1:-1:-1;2637:10201:18;;;5470:7:3;2637:10201:18;;;;;;-1:-1:-1;;;;;2637:10201:18;;16086:19:3;;16082:88;;16179:12;15957:241;:::o;16082:88::-;6967:31;;;-1:-1:-1;16128:31:3;;2637:10201:18;;-1:-1:-1;16128:31:3;1796:162:0;1710:6;2637:10201:18;-1:-1:-1;;;;;2637:10201:18;735:10:10;1855:23:0;1851:101;;1796:162::o;1851:101::-;1901:40;;;-1:-1:-1;1901:40:0;735:10:10;1901:40:0;2637:10201:18;;-1:-1:-1;1901:40:0;9959:223:18;;2637:10201;10040:22;;10076:6;10072:22;;10111:14;-1:-1:-1;;;10111:14:18;;;;9959:223;:::o;10104:72::-;10162:3;2637:10201;10147:1;2637:10201;10162:3;;:::i;:::-;10104:72;;;10072:22;-1:-1:-1;10091:3:18;;-1:-1:-1;10084:10:18:o;994:926:7:-;1174:14;;1170:744;;994:926;;;;;;:::o;1170:744::-;2637:10201:18;;-1:-1:-1;;;1212:67:7;;-1:-1:-1;;;;;2637:10201:18;;;1212:67:7;;;2637:10201:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1212:67:7;;1191:1;1212:67;;;1191:1;;1212:67;;;1170:744;-1:-1:-1;1208:696:7;;1519:385;;;:::i;:::-;2637:10201:18;;;1569:18:7;;;9730:33:3;;;;1191:1:7;1673:39;1212:67;2637:10201:18;;1191:1:7;1673:39;1565:325;2637:10201:18;1759:113:7;;1208:696;-1:-1:-1;;;;;;2637:10201:18;-1:-1:-1;;;1326:51:7;1322:182;;1208:696;1170:744;;;;;;;1322:182;9730:33:3;;;1191:1:7;1446:39;1212:67;2637:10201:18;;1191:1:7;1446:39;1212:67;;;;2637:10201:18;1212:67:7;;2637:10201:18;1212:67:7;;;;;;2637:10201:18;1212:67:7;;;:::i;:::-;;;2637:10201:18;;;;;-1:-1:-1;;;;;;2637:10201:18;;;;;;1212:67:7;;;;;;;-1:-1:-1;1212:67:7;","linkReferences":{},"immutableReferences":{}}}}}}},"signatures":{"function":[{"signature":"agentGateEnabled()","signatureHash4":"0x4753600b","signatureHash32":"0x4753600b9c17e507094a59fbec8bd4e62125ef42b268bdb640b235143b4b0314"},{"signature":"agentRegistry()","signatureHash4":"0x0d1cfcae","signatureHash32":"0x0d1cfcaec1235c6723b00c412b39849920b0a3c21d8fea1865c92fb34252ceca"},{"signature":"approve(address,uint256)","signatureHash4":"0x095ea7b3","signatureHash32":"0x095ea7b334ae44009aa867bfb386f5c3b4b443ac6f0ee573fa91c4608fbadfba"},{"signature":"assignClass(uint256,uint256,uint256[5])","signatureHash4":"0xb58bdab5","signatureHash32":"0xb58bdab5b0a41871e1b3201c36cbc445f6c884d5d233b232a36c24d69611119c"},{"signature":"balanceOf(address)","signatureHash4":"0x70a08231","signatureHash32":"0x70a08231b98ef4ca268c9cc3f6b4590e4bfec28280db06bb5d45e689f2a360be"},{"signature":"baseURI()","signatureHash4":"0x6c0360eb","signatureHash32":"0x6c0360ebdf68e0f62377a9a6e37fcfe105deb69715aa51e836946fccbad7b496"},{"signature":"challengeFor(address)","signatureHash4":"0xb52f2c33","signatureHash32":"0xb52f2c336c38d468eff0d0c94eb499aeaaa9a785e5316022003839d053d9b793"},{"signature":"claimPrice(address)","signatureHash4":"0x867b817a","signatureHash32":"0x867b817ab747443e6d696bd9dec39f1eb38bf30c31c6280869a840307977cca7"},{"signature":"claim(uint256)","signatureHash4":"0x379607f5","signatureHash32":"0x379607f58d976a91dd60b78d74592fb4bb001d7e08e70945c78343ec21864f46"},{"signature":"classCount(uint256)","signatureHash4":"0xef0e0157","signatureHash32":"0xef0e0157c5a2d25945779945a85d5021bca75d2c40adbe6ab9d1b6710d3d0b65"},{"signature":"classForBits(uint256)","signatureHash4":"0xb7a3538e","signatureHash32":"0xb7a3538e6c502a1e12d567dd78c51de9c1c8fe86491699db673b81ad64351f53"},{"signature":"className(uint8)","signatureHash4":"0xf319428d","signatureHash32":"0xf319428deb321407d9d2c9f95e5c7877178145ba7cabbc5498b7786b7bd1771d"},{"signature":"classOf(uint256)","signatureHash4":"0x4324aa21","signatureHash32":"0x4324aa214802ed47855a44270ce3e4ae6a8aa880d70c91e6625e84689e79818c"},{"signature":"freeClaimed()","signatureHash4":"0x1b47ec3a","signatureHash32":"0x1b47ec3a3f554c5c42962ff6cf38f51f58840471b71ee4126f2230bbc00149c3"},{"signature":"FREE_PRICE()","signatureHash4":"0xe62a1f2d","signatureHash32":"0xe62a1f2d8e4b53827f23d51fdddac774a8b366429053590339d4c86b03404ad8"},{"signature":"FREE_QUOTA()","signatureHash4":"0x3ce16503","signatureHash32":"0x3ce165032a687e1372e81f83e2c9639af5c7892cf2bce937be73f526c4539f1c"},{"signature":"freeRemaining()","signatureHash4":"0x5a781a6b","signatureHash32":"0x5a781a6bf33a835c0330483bf1329d56f180a355f57036b30d6059933d718cdf"},{"signature":"getApproved(uint256)","signatureHash4":"0x081812fc","signatureHash32":"0x081812fc55e34fdc7cf5d8b5cf4e3621fa6423fde952ec6ab24afdc0d85c0b2e"},{"signature":"hasAgentId(address)","signatureHash4":"0x4eab3ef2","signatureHash32":"0x4eab3ef2fa23cba79252762797184b21c85f705a6b8f7d2ce3917152642d3ec9"},{"signature":"isApprovedForAll(address,address)","signatureHash4":"0xe985e9c5","signatureHash32":"0xe985e9c5c6636c6879256001057b28ccac7718ef0ac56553ff9b926452cab8a3"},{"signature":"KING_BITS()","signatureHash4":"0xb17e0eb5","signatureHash32":"0xb17e0eb58c51eeafd1d5d10e0821d29c1b4c6cc046a60adf9baee40143ffb5fb"},{"signature":"kingUnlocked()","signatureHash4":"0xb45c6f21","signatureHash32":"0xb45c6f216912ad3327fe16d752732193a5d356f1b7bd7bdc56b8ca85a42f366a"},{"signature":"KING_UNLOCK_MINTS()","signatureHash4":"0x7a06fff7","signatureHash32":"0x7a06fff7f6434f28f76d4f46d020d80022493b4b3f68b54fcaeb26c86845eca4"},{"signature":"KNIGHT_BITS()","signatureHash4":"0x645bbbb9","signatureHash32":"0x645bbbb9b2f18e34145f1841d0867f108f3f32c76a94cfd515c8092ae72d0361"},{"signature":"MAX_PER_WALLET()","signatureHash4":"0x0f2cdd6c","signatureHash32":"0x0f2cdd6cd2d6b96a106f015e0c005331df6139f3a1c34460fde7b644b1ae8e68"},{"signature":"MAX_SUPPLY()","signatureHash4":"0x32cb6b0c","signatureHash32":"0x32cb6b0c9d125b1472513cbeeb7f75e981364c137d7d7140f52eb5e4e9cbb979"},{"signature":"MIN_BITS()","signatureHash4":"0xd3091615","signatureHash32":"0xd3091615dbbf483e5a356daed8c3b032eaf45c5c84c6d45650cc421f6c2bac0b"},{"signature":"mintedBy(address)","signatureHash4":"0x3cef28d2","signatureHash32":"0x3cef28d2a347eb7b15200f788ef3c7d0d847423cdf0ff5ffe4229b4ce296ca90"},{"signature":"mintOpen()","signatureHash4":"0x24bbd049","signatureHash32":"0x24bbd049b398cb3c8e328beccb6e7271655b0e9711e6216d7d3a382fa2eb29ff"},{"signature":"name()","signatureHash4":"0x06fdde03","signatureHash32":"0x06fdde0383f15d582d1a74511486c9ddf862a882fb7904b3d9fe9b8b8e58a796"},{"signature":"owner()","signatureHash4":"0x8da5cb5b","signatureHash32":"0x8da5cb5b36e7f68c1d2e56001220cdbdd3ba2616072f718acfda4a06441a807d"},{"signature":"ownerOf(uint256)","signatureHash4":"0x6352211e","signatureHash32":"0x6352211e6566aa027e75ac9dbf2423197fbd9b82b9d981a3ab367d355866aa1c"},{"signature":"PAID_PRICE()","signatureHash4":"0xc37b8362","signatureHash32":"0xc37b83623029276c8cc49e26fe83ca51cc0e2b24d589a2bdedacc955938afa32"},{"signature":"proofBitsOf(uint256)","signatureHash4":"0xbc034ea5","signatureHash32":"0xbc034ea5f8caf01fb34616bb6b26f4b29bb010d81dbde776716f62bf6ed6c4d5"},{"signature":"proofHashOf(uint256)","signatureHash4":"0xcaa1bb2d","signatureHash32":"0xcaa1bb2d989d29009df36dc11c4eea0d43c43c9a154f8f6993a529ac6ba32bfd"},{"signature":"QUEEN_BITS()","signatureHash4":"0x74799bcc","signatureHash32":"0x74799bcc2dcd0cb307ec20ac2316863865a46d486ea7eb92a8b85a490aa8d102"},{"signature":"QUOTA_KING()","signatureHash4":"0x2238c8ac","signatureHash32":"0x2238c8acd7ff48bad9ca28f11987e0ed4063660e5d3e58bfeec43cf3178c3ed9"},{"signature":"QUOTA_KNIGHT()","signatureHash4":"0x13f9dcf4","signatureHash32":"0x13f9dcf4c41691bfac88128db5115c104cdbab21f1c4fd9fcfd2c91e514fcc5f"},{"signature":"quotaOf(uint8)","signatureHash4":"0x95308952","signatureHash32":"0x95308952e6107d1d8cc21d1e94bc9903cd1c51365d6b7d0c47b4b93379cff2bd"},{"signature":"QUOTA_PAWN()","signatureHash4":"0x45900279","signatureHash32":"0x45900279e24207536ab779dfd0d17eebfabe7b48f4a0651cd5baea2126189d5e"},{"signature":"QUOTA_QUEEN()","signatureHash4":"0x519d6d7e","signatureHash32":"0x519d6d7e6cdd681ee164f8185b063711e60b9e07d9c501a4348591b921b06797"},{"signature":"QUOTA_ROOK()","signatureHash4":"0x2bddfe6f","signatureHash32":"0x2bddfe6fb956c52bd6e20e340d49613118fe844b8979cb88a9112206719c647d"},{"signature":"renounceOwnership()","signatureHash4":"0x715018a6","signatureHash32":"0x715018a616b5f2044428f6fadb7deef4ce9ca76ef60ea57978964ad137bbe7ae"},{"signature":"ROOK_BITS()","signatureHash4":"0x1ec5ae53","signatureHash32":"0x1ec5ae53ed39c3bc9da0cf8911fc8315e376d7b6d3a1d4030c4637459b64ebd7"},{"signature":"royaltyInfo(uint256,uint256)","signatureHash4":"0x2a55205a","signatureHash32":"0x2a55205a9d4720a297dfcf892a8ff23e6f95ca084ce993231bd653f83741ac42"},{"signature":"safeTransferFrom(address,address,uint256)","signatureHash4":"0x42842e0e","signatureHash32":"0x42842e0eb38857a7775b4e7364b2775df7325074d088e7fb39590cd6281184ed"},{"signature":"safeTransferFrom(address,address,uint256,bytes)","signatureHash4":"0xb88d4fde","signatureHash32":"0xb88d4fde60196325a28bb7f99a2582e0b46de55b18761e960c14ad7a32099465"},{"signature":"setAgentGate(bool,address)","signatureHash4":"0x149b8885","signatureHash32":"0x149b888585286bc90f17b8ce6e13a8415d37df99e3c166a5b246bd0f5408d0ea"},{"signature":"setApprovalForAll(address,bool)","signatureHash4":"0xa22cb465","signatureHash32":"0xa22cb4651ab9570f89bb516380c40ce76762284fb1f21337ceaf6adab99e7d4a"},{"signature":"setBaseURI(string)","signatureHash4":"0x55f804b3","signatureHash32":"0x55f804b373ab21b346f6f172ca5e118cfcad05163bcea59b35420499bf7e074b"},{"signature":"setMintOpen(bool)","signatureHash4":"0xf8004d31","signatureHash32":"0xf8004d31b84b5f19ac0cf522f7f0bc19d42a65b8f199e640c1670b5de5f6dfea"},{"signature":"supportsInterface(bytes4)","signatureHash4":"0x01ffc9a7","signatureHash32":"0x01ffc9a7a5cef8baa21ed3c5c0d7e23accb804b619e9333b597f47a0d84076e2"},{"signature":"symbol()","signatureHash4":"0x95d89b41","signatureHash32":"0x95d89b41e2f5f391a79ec54e9d87c79d6e777c63e32c28da95b4e9e4a79250ec"},{"signature":"tokenURI(uint256)","signatureHash4":"0xc87b56dd","signatureHash32":"0xc87b56dda752230262935940d907f047a9f86bb5ee6aa33511fc86db33fea6cc"},{"signature":"totalMinted()","signatureHash4":"0xa2309ff8","signatureHash32":"0xa2309ff8a1f86a4fb15fe22cc66ca2240889c22973a8705ca226daf66b420ca7"},{"signature":"totalSupply()","signatureHash4":"0x18160ddd","signatureHash32":"0x18160ddd7f15c72528c2f94fd8dfe3c8d5aa26e2c50c7d81f4bc7bee8d4b7932"},{"signature":"transferFrom(address,address,uint256)","signatureHash4":"0x23b872dd","signatureHash32":"0x23b872dd7302113369cda2901243429419bec145408fa8b352b3dd92b66c680b"},{"signature":"transferOwnership(address)","signatureHash4":"0xf2fde38b","signatureHash32":"0xf2fde38b092330466c661fc723d5289b90272a3e580e3187d1d7ef788506c557"},{"signature":"withdraw()","signatureHash4":"0x3ccfd60b","signatureHash32":"0x3ccfd60b2e3ddce51ab210bfb9db13577f03a21684fa35e4bcd739dd5a30bda2"}],"event":[{"signature":"AgentGateChanged(bool,address)","signatureHash4":"0xb6342140","signatureHash32":"0xb63421408d6b6f7e6fbc43340faaef44856b54d08fc7b3d82a59185fce4c9c12"},{"signature":"Approval(address,address,uint256)","signatureHash4":"0x8c5be1e5","signatureHash32":"0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925"},{"signature":"ApprovalForAll(address,address,bool)","signatureHash4":"0x17307eab","signatureHash32":"0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31"},{"signature":"BaseURIChanged(string)","signatureHash4":"0x5411e8eb","signatureHash32":"0x5411e8ebf1636d9e83d5fc4900bf80cbac82e8790da2a4c94db4895e889eedf6"},{"signature":"MintOpenChanged(bool)","signatureHash4":"0xa9f739ee","signatureHash32":"0xa9f739ee29a6336acdfe5b044a6dce0d70579031be6dbdece2ac0848d8c2a080"},{"signature":"OwnershipTransferred(address,address)","signatureHash4":"0x8be0079c","signatureHash32":"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0"},{"signature":"Transfer(address,address,uint256)","signatureHash4":"0xddf252ad","signatureHash32":"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"},{"signature":"UnitClaimed(address,uint256,uint8,uint256)","signatureHash4":"0xdeec4c70","signatureHash32":"0xdeec4c70f5cd118981863a7abd648939032c7622cd6b55c633423285cbf2d3c0"}],"error":[{"signature":"ERC2981InvalidDefaultRoyaltyReceiver(address)","signatureHash4":"0xb6d9900a","signatureHash32":"0xb6d9900a710828c2d05fe8061d6309d02a20eaa45cd00228c2c2dfbfa2b86fc3"},{"signature":"ERC2981InvalidDefaultRoyalty(uint256,uint256)","signatureHash4":"0x6f483d09","signatureHash32":"0x6f483d09b3a1c4c035367ae09146a8a08a718cb6617416cc12a2457ab3d65514"},{"signature":"ERC2981InvalidTokenRoyaltyReceiver(uint256,address)","signatureHash4":"0x969f0852","signatureHash32":"0x969f0852135afead3ca9a1ff1e4fe485d35593f81a91d5dbe3a5737302cdbda8"},{"signature":"ERC2981InvalidTokenRoyalty(uint256,uint256,uint256)","signatureHash4":"0xdfd1fc1b","signatureHash32":"0xdfd1fc1b5658265f0993b87b75dd02b2fdcb36b128879bccdcf260effa0856bf"},{"signature":"ERC721IncorrectOwner(address,uint256,address)","signatureHash4":"0x64283d7b","signatureHash32":"0x64283d7b313c8117c125f736876fa2b4e90ea3831a4716dfdb87d2f540e26289"},{"signature":"ERC721InsufficientApproval(address,uint256)","signatureHash4":"0x177e802f","signatureHash32":"0x177e802f6f313bc89797ecace66d6d29ab4719cbaaacbb87367264048b1eb861"},{"signature":"ERC721InvalidApprover(address)","signatureHash4":"0xa9fbf51f","signatureHash32":"0xa9fbf51f86b8e03595d59dc726bb10c329bb24f62589be276d8dd193ca0b69ea"},{"signature":"ERC721InvalidOperator(address)","signatureHash4":"0x5b08ba18","signatureHash32":"0x5b08ba185e8f577075361f3a3555a6580a227ce22734dcc979c1aeadf894658b"},{"signature":"ERC721InvalidOwner(address)","signatureHash4":"0x89c62b64","signatureHash32":"0x89c62b6479af2e623826dcc39c5133061d35b66d72de92833401dd2fd6567480"},{"signature":"ERC721InvalidReceiver(address)","signatureHash4":"0x64a0ae92","signatureHash32":"0x64a0ae9278f805eaf991dcd18ca78756d280b7508b764ef1b255c55845c11df9"},{"signature":"ERC721InvalidSender(address)","signatureHash4":"0x73c6ac6e","signatureHash32":"0x73c6ac6e10798e95d99e1f130d923eb40193ecb8d094ec3dce93292564eb3b17"},{"signature":"ERC721NonexistentToken(uint256)","signatureHash4":"0x7e273289","signatureHash32":"0x7e273289a3a9ef6670f06df7dca227856fc925e956db96980692764a8bc734d7"},{"signature":"OwnableInvalidOwner(address)","signatureHash4":"0x1e4fbdf7","signatureHash32":"0x1e4fbdf7f3ef8bcaa855599e3abf48b232380f183f08f6f813d9ffa5bd585188"},{"signature":"OwnableUnauthorizedAccount(address)","signatureHash4":"0x118cdaa7","signatureHash32":"0x118cdaa7a341953d1887a2245fd6665d741c67c8c50581daa59e1d03373fa188"}]},"proxyResolution":{"isProxy":false,"proxyType":null,"implementations":[]},"match":"exact_match","chainId":"56","address":"0xce79Ef82426A72d44C4306e73B06e9e44e7E407B"}