false
true
0

Contract Address Details

0x4D4278f70004b1AD93D8c429295Ff717FFEaEDB7

Contract Name
Shield
Creator
0x89969f–8cb3c3 at 0x67dbd0–9ba697
Balance
0 tPLS
Tokens
Fetching tokens...
Transactions
Fetching transactions...
Transfers
Fetching transfers...
Gas Used
Fetching gas used...
Last Balance Update
26048724
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
Shield




Optimization enabled
false
Compiler version
v0.8.24+commit.e11b9ed9




EVM Version




Verified at
2026-09-17T19:06:14.716247Z

Constructor Arguments

000000000000000000000000688d8bf5237a42432ee6b4092e15e73c6bcbb80a000000000000000000000000c3e342768f7d68b0c501cb2cab1ade1a7cd57387

Arg [0] (address) : 0x688d8bf5237a42432ee6b4092e15e73c6bcbb80a
Arg [1] (address) : 0xc3e342768f7d68b0c501cb2cab1ade1a7cd57387

              

contracts/shield/Shield.sol

// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.24;

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import {MerkleTreeWithHistory} from "./MerkleTreeWithHistory.sol";

interface IShieldVerifier {
    function verifyProof(
        uint256[2] calldata a,
        uint256[2][2] calldata b,
        uint256[2] calldata c,
        uint256[7] calldata publicSignals
    ) external view returns (bool);
}

/// @dev The three EKG functions the Shield touches beyond plain ERC-20. All
///      three are permissionless on EKG's side and none of them can move the
///      Shield's tokens.
interface IEKGDividends {
    function claimable(address account) external view returns (uint256);
    function claim() external;
    function distribute() external payable;
    function eligibleSupply() external view returns (uint256);
}

/// @title EKG Shield
/// @notice A shielded pool for EKG. Deposit EKG and receive a note; transfer
///         notes privately; withdraw to any address. The pool learns nothing
///         about who owns what, and neither does anybody watching the chain.
///
/// ============================================================================
///  WHAT THIS CONTRACT DELIBERATELY DOES NOT HAVE
/// ============================================================================
///
///  No owner. No admin. No proxy, no implementation slot, no initializer. No
///  pause. No fee, to us or to anyone. No upgrade path. No emergency anything.
///  Every storage slot in this contract and its base is written by user
///  transactions or by the constructor, and there is no function anywhere that
///  a privileged caller could use to change one. The constructor takes the
///  token and the verifier and nothing else, and even the Poseidon hasher is
///  deployed by the constructor rather than handed in, so there is no address
///  anywhere that a deployer could point somewhere useful to themselves.
///
///  This is not an aesthetic choice. Van Loon v. Treasury turned on the
///  immutable contracts being nobody's property: there was no owner to
///  sanction and no entity that could have stopped them. And the Samourai
///  Wallet prosecution led with the fee stream - the DOJ's first exhibit was
///  roughly six million dollars of fees - as the evidence that the defendants
///  were operating a money transmitting business. A contract with an admin key
///  and a fee switch is a business. This one is a published algorithm.
///
///  The relayer is the one soft spot and it is handled the only safe way: a
///  user MAY name a relayer and a relayer fee, both of which are hashed into
///  the proof's public inputs, so neither the pool nor a front-runner can
///  change them. We do not run a relayer, we do not have a default relayer,
///  and there is no code path that pays this contract's authors anything.
///
/// ============================================================================
///  THE TURNSTILE
/// ============================================================================
///
///  `totalShielded` counts EKG that has entered the pool and not left. Every
///  shield adds to it, every unshield and every relayer fee subtracts, and an
///  unshield that would take it below zero reverts.
///
///  It is redundant with the circuit. That is the whole point. If the circuit
///  is unsound - a missing constraint, a bad gadget, a botched ceremony - the
///  first symptom is a proof that conjures value, and without a turnstile that
///  proof quietly drains every other user's deposit. With one, the forged
///  withdrawal is refused at the boundary the moment it tries to take out more
///  than was ever put in, and the pool's own books say so out loud.
///
///  This is exactly the defence that bounded the Zcash Orchard incident of
///  May 2026: a missing equality constraint in a scalar-multiplication gadget
///  had allowed counterfeiting for four years, and what limited the realised
///  damage was value-balance accounting at the pool boundary rather than
///  anything inside the proof system. A ZK pool without a turnstile is a pool
///  whose worst case is unbounded.
///
///  `assertSolvent()` is the same idea aimed outwards: it reverts if the pool
///  holds less EKG than it owes. Anybody can call it, in a monitoring loop, in
///  a block explorer, or from another contract.
contract Shield is MerkleTreeWithHistory, ReentrancyGuard {
    using SafeERC20 for IERC20;

    /// @notice The largest amount that may cross the pool boundary in one
    ///         transaction, in either direction, and the largest relayer fee.
    ///
    ///         2**128 is roughly 3.4e38. EKG's entire cap is 3.69e26, so this
    ///         bound can never bind on a real transaction; it exists so that
    ///         the field arithmetic in `_publicAmount` is obviously safe rather
    ///         than subtly safe. With |extAmount| and fee both under 2**128,
    ///         their difference is under 2**129, far below the 2**248 the
    ///         circuit range-checks every amount to, which is in turn far below
    ///         the BN254 field. See docs/SHIELD.md, "Why the sums cannot wrap".
    uint256 public constant MAX_EXT_AMOUNT = 1 << 128;

    IERC20 public immutable token;
    IShieldVerifier public immutable verifier;

    /// @notice EKG held by the pool on behalf of notes that have not been spent
    ///         out. See "THE TURNSTILE" above.
    uint256 public totalShielded;

    mapping(bytes32 => bool) public nullifiers;

    struct Proof {
        uint256[2] a;
        uint256[2][2] b;
        uint256[2] c;
    }

    /// @notice The proof's public signals, in the order the circuit declares
    ///         them. Everything here is checked: `root` against the history,
    ///         `publicAmount` against extData, `extDataHash` against the
    ///         keccak of extData, and all seven against the verifying key.
    struct PublicInputs {
        bytes32 root;
        uint256 publicAmount;
        bytes32 extDataHash;
        bytes32[2] inputNullifiers;
        bytes32[2] outputCommitments;
    }

    /// @notice Everything the transaction does on the outside. It is hashed
    ///         into `extDataHash`, which is a public input to the proof, so
    ///         none of it can be altered by a relayer, a searcher or a
    ///         reorganised mempool without invalidating the proof.
    ///
    ///         `extAmount` is signed: positive shields, zero is a private
    ///         transfer, negative unshields.
    struct ExtData {
        address recipient;
        int256 extAmount;
        address relayer;
        uint256 relayerFee;
        bytes encryptedOutput0;
        bytes encryptedOutput1;
    }

    /// @notice Emitted once per output note. `index` is the leaf index, so a
    ///         wallet that has read every one of these events has the whole
    ///         tree and can build any Merkle path without trusting a server.
    ///         `encryptedOutput` is the note sealed to the recipient's viewing
    ///         key; only they can open it, and the chain is the only place it
    ///         needs to exist.
    event NewCommitment(bytes32 indexed commitment, uint256 index, bytes encryptedOutput);
    event NewNullifier(bytes32 indexed nullifier);
    event ShieldTransaction(
        bytes32 indexed root, int256 extAmount, uint256 relayerFee, uint256 totalShielded
    );
    event DividendsSwept(address indexed caller, uint256 amount);

    error UnknownRoot();
    error AlreadySpent();
    error DuplicateNullifier();
    error InvalidProof();
    error ExtDataMismatch();
    error PublicAmountMismatch();
    error AmountTooLarge();
    error BadRecipient();
    error BadRelayer();
    error TurnstileUnderflow();
    error UnexpectedTokenBehaviour();
    error Insolvent(uint256 held, uint256 owed);
    error NothingToSweep();
    error NoEligibleSupply();

    constructor(address token_, address verifier_) MerkleTreeWithHistory() {
        token = IERC20(token_);
        verifier = IShieldVerifier(verifier_);
    }

    // -------------------------------------------------------------- the pool

    /// @notice Shield, transfer privately, or unshield. Which one it is, is the
    ///         sign of `ext.extAmount`, and it is the same code path either way
    ///         so an observer cannot tell the three apart from the shape of the
    ///         call - only from the value, which is zero for a transfer.
    ///
    ///         Anybody may submit. For a shield the tokens come from
    ///         `msg.sender`, so a relayer cannot shield on your behalf without
    ///         holding your tokens; for a transfer or an unshield `msg.sender`
    ///         is irrelevant and can be a relayer being paid by `relayerFee`.
    function transact(Proof calldata proof, PublicInputs calldata pi, ExtData calldata ext)
        external
        nonReentrant
    {
        // ---- checks --------------------------------------------------------
        if (!isKnownRoot(pi.root)) revert UnknownRoot();

        if (pi.inputNullifiers[0] == pi.inputNullifiers[1]) revert DuplicateNullifier();
        if (nullifiers[pi.inputNullifiers[0]] || nullifiers[pi.inputNullifiers[1]]) {
            revert AlreadySpent();
        }

        if (ext.extAmount > int256(MAX_EXT_AMOUNT) || ext.extAmount < -int256(MAX_EXT_AMOUNT)) {
            revert AmountTooLarge();
        }
        if (ext.relayerFee > MAX_EXT_AMOUNT) revert AmountTooLarge();

        // The whole of extData, hashed into the field. Change one byte of the
        // recipient, the relayer, the fee or either encrypted blob and this
        // stops matching the value the proof committed to.
        if (uint256(pi.extDataHash) != uint256(keccak256(abi.encode(ext))) % FIELD_SIZE) {
            revert ExtDataMismatch();
        }
        if (pi.publicAmount != _publicAmount(ext.extAmount, ext.relayerFee)) {
            revert PublicAmountMismatch();
        }

        // Checked here rather than beside the transfers below so that a
        // malformed transaction fails before it pays for a pairing check, and
        // so the interactions section is nothing but interactions. Sending to
        // the pool itself is refused because it would leave the pool holding
        // more than its books say, silently and for nobody's benefit.
        if (ext.extAmount < 0 && (ext.recipient == address(0) || ext.recipient == address(this))) {
            revert BadRecipient();
        }
        if (ext.relayerFee > 0 && (ext.relayer == address(0) || ext.relayer == address(this))) {
            revert BadRelayer();
        }

        if (
            !verifier.verifyProof(
                proof.a,
                proof.b,
                proof.c,
                [
                    uint256(pi.root),
                    pi.publicAmount,
                    uint256(pi.extDataHash),
                    uint256(pi.inputNullifiers[0]),
                    uint256(pi.inputNullifiers[1]),
                    uint256(pi.outputCommitments[0]),
                    uint256(pi.outputCommitments[1])
                ]
            )
        ) revert InvalidProof();

        // ---- effects -------------------------------------------------------
        nullifiers[pi.inputNullifiers[0]] = true;
        nullifiers[pi.inputNullifiers[1]] = true;

        _turnstile(ext.extAmount, ext.relayerFee);

        uint32 index = _insert(pi.outputCommitments[0], pi.outputCommitments[1]);

        emit NewNullifier(pi.inputNullifiers[0]);
        emit NewNullifier(pi.inputNullifiers[1]);
        emit NewCommitment(pi.outputCommitments[0], index, ext.encryptedOutput0);
        emit NewCommitment(pi.outputCommitments[1], index + 1, ext.encryptedOutput1);
        emit ShieldTransaction(pi.root, ext.extAmount, ext.relayerFee, totalShielded);

        // ---- interactions --------------------------------------------------
        if (ext.extAmount > 0) {
            _pullExactly(msg.sender, uint256(ext.extAmount));
        } else if (ext.extAmount < 0) {
            token.safeTransfer(ext.recipient, uint256(-ext.extAmount));
        }

        if (ext.relayerFee > 0) {
            token.safeTransfer(ext.relayer, ext.relayerFee);
        }
    }

    /// @dev The turnstile. `extAmount - relayerFee` is the pool's net change,
    ///      and it is the same number the circuit calls `publicAmount`.
    function _turnstile(int256 extAmount, uint256 fee) private {
        if (extAmount > 0) {
            // The fee, if any, is paid out of what is arriving.
            uint256 shielded = totalShielded + uint256(extAmount);
            if (shielded < fee) revert TurnstileUnderflow();
            totalShielded = shielded - fee;
        } else {
            uint256 leaving = uint256(-extAmount) + fee;
            if (totalShielded < leaving) revert TurnstileUnderflow();
            totalShielded -= leaving;
        }
    }

    /// @dev EKG does not take a cut on transfer and does not rebase. This does
    ///      not assume that: it measures the balance either side and refuses
    ///      anything but an exact credit, because a pool that believes it
    ///      received more than it did is a pool that is already insolvent and
    ///      does not know it yet.
    function _pullExactly(address from, uint256 amount) private {
        uint256 before = token.balanceOf(address(this));
        token.safeTransferFrom(from, address(this), amount);
        if (token.balanceOf(address(this)) - before != amount) revert UnexpectedTokenBehaviour();
    }

    /// @notice `extAmount - fee`, mapped into the BN254 scalar field. A
    ///         negative net becomes p - |net|, which is what the circuit's
    ///         value equation adds.
    function _publicAmount(int256 extAmount, uint256 fee) private pure returns (uint256) {
        // Both operands are bounded by MAX_EXT_AMOUNT = 2**128 before this is
        // reached, so neither the cast nor the subtraction can overflow int256.
        int256 net = extAmount - int256(fee);
        if (net >= 0) return uint256(net);
        return FIELD_SIZE - uint256(-net);
    }

    // ------------------------------------------------------------- solvency

    /// @notice Reverts unless the pool holds at least what it owes. Nothing
    ///         calls this internally; it exists so that a monitor, a block
    ///         explorer or another contract can assert the pool's books from
    ///         the outside, for free, at any block.
    ///
    ///         A donation makes `held` exceed `owed`, which is fine and not
    ///         recoverable by anyone, including us. The direction that matters
    ///         is the other one, and it should be impossible.
    function assertSolvent() external view {
        uint256 held = token.balanceOf(address(this));
        if (held < totalShielded) revert Insolvent(held, totalShielded);
    }

    function solvency() external view returns (uint256 held, uint256 owed, bool ok) {
        held = token.balanceOf(address(this));
        owed = totalShielded;
        ok = held >= owed;
    }

    // ------------------------------------------------------------ dividends

    /// @notice EKG pays native PLS to holders by balance, and this contract is
    ///         a holder. It cannot split that PLS back to the notes it holds
    ///         without roughly doubling the circuit, and it must not be able to
    ///         keep it or hand it to anybody in particular.
    ///
    ///         So: anybody may call this, it takes no arguments, and everything
    ///         it collects goes straight back into EKG's own distributor to be
    ///         paid to every eligible holder by balance. There is no recipient
    ///         parameter and no address in this function that a caller
    ///         controls. The caller gets nothing but the gas bill.
    ///
    ///         This also cleans up PLS that arrived by any other route,
    ///         including a contract destroying itself into this address.
    ///
    ///         The pool keeps back its own pro-rata slice, because it is itself
    ///         an eligible holder and EKG has no way to exclude it - see
    ///         docs/SHIELD.md, "The dividend problem", for why `wire()` cannot
    ///         help and what that costs. Calling this repeatedly drives the
    ///         retained amount geometrically to nothing.
    function sweepDividends() external nonReentrant returns (uint256 swept) {
        IEKGDividends ekg = IEKGDividends(address(token));
        if (ekg.claimable(address(this)) > 0) ekg.claim();

        swept = address(this).balance;
        if (swept == 0) revert NothingToSweep();
        if (ekg.eligibleSupply() == 0) revert NoEligibleSupply();

        emit DividendsSwept(msg.sender, swept);
        ekg.distribute{value: swept}();
    }

    /// @notice Accepts PLS so that EKG's `claim()` can push dividends in.
    ///         Without this, `claim()` would revert and the pool's dividends
    ///         would be stranded inside EKG forever. Anything that lands here
    ///         leaves again through `sweepDividends`, to holders, and there is
    ///         no other way out.
    receive() external payable {}
}
        

contracts/shield/MerkleZeros.sol

// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.24;

/// @title MerkleZeros
/// @notice GENERATED FILE. Do not edit. Regenerate with
///         `node scripts/shield/gen-zeros.js`.
///
///         The root of an empty subtree at each level of the Shield's tree.
///         zeros(0) is keccak256("EKG Shield v1") reduced into the BN254
///         scalar field, and zeros(i) = Poseidon(zeros(i-1), zeros(i-1)).
///
///         These are constants rather than storage on purpose: an insert reads
///         one of them at every level, and 20 cold SLOADs per transaction is
///         42,000 gas paid forever for a value that can never change.
///
///         test/shield.test.js recomputes every one of them against the
///         deployed Poseidon and fails if a single digit is wrong. A wrong
///         zero does not fail loudly on its own: it silently produces a tree
///         the circuit cannot prove against.
abstract contract MerkleZeros {
    /// @notice The empty-leaf value, zeros(0).
    bytes32 internal constant ZERO_VALUE =
        bytes32(uint256(0x1e7c14b5f0b1b399c711cdc960b2c14844c85743b8b51786d8b7da7b806affc6));

    function zeros(uint256 i) internal pure returns (bytes32) {
        if (i == 0) return bytes32(uint256(0x1e7c14b5f0b1b399c711cdc960b2c14844c85743b8b51786d8b7da7b806affc6));
        if (i == 1) return bytes32(uint256(0x1468d3a28fc9553ff025d172e3b410bc7ddf929a78f7ea5346a20edeaeee611d));
        if (i == 2) return bytes32(uint256(0x0e9322780626822896cb896a3b647d0e4436a3707edfff89953e220914758221));
        if (i == 3) return bytes32(uint256(0x2c8ff24c7915abcb794b39b0656ec58bf0bbcc995439c6fbe640a63306e86746));
        if (i == 4) return bytes32(uint256(0x0e72770edb4aeee28ef2a0e454792ed302fa8e1ebc86e1be461a23fee5632c0f));
        if (i == 5) return bytes32(uint256(0x0cc51259a07f392105d126fcfcc78d45e9f8376bb9f859426d414d3dda020a5d));
        if (i == 6) return bytes32(uint256(0x11e09b59022165c4f108066c3459d2ee56797dd6ab52e666e119502bc5d1acb3));
        if (i == 7) return bytes32(uint256(0x2c66b1c3a82515b03697cfb307eafd8fb8b654bd97b0e70efd70eab5827fc50b));
        if (i == 8) return bytes32(uint256(0x28bb1d2a364755b8c92fc8be1ecafa3f854e1df343e35c9f84cee7e4d7deabc6));
        if (i == 9) return bytes32(uint256(0x10d09e0cf47554dae640a6bf1535238f378c7353f6866afafd57a4e26629994b));
        if (i == 10) return bytes32(uint256(0x04688f2886700a52b6f7bdb85beae33f0985a0721b748f02d7600c20bd99e40c));
        if (i == 11) return bytes32(uint256(0x2355a4c7f033dd56057c23aff0773b86767e55b609260480e94e71fa55720a42));
        if (i == 12) return bytes32(uint256(0x21ba17487fd86205dbb8bd169eef71b7e9f515755536ef7924709aabf51f15b3));
        if (i == 13) return bytes32(uint256(0x10a83b6bb8dff62436b71da044da394f295c8b8b5a3363983b9d88c4b9c7433c));
        if (i == 14) return bytes32(uint256(0x1b1cee8e5b31f145985cda39953a8a12b7393f74b58786a693885e7031ead254));
        if (i == 15) return bytes32(uint256(0x20b23472f405b6772e4f3907790b4b0ef898c9e59f5e72863aa93f0fadfbc190));
        if (i == 16) return bytes32(uint256(0x1cb5feb963dcddda940a48c020a4c7d674743d42b5cb7c0259f00ba68119dd42));
        if (i == 17) return bytes32(uint256(0x014958a33307215f9f40692cc8716402434465c699bd21134a3489f82b99eccd));
        if (i == 18) return bytes32(uint256(0x25fce33397f1f3bd3f01053aad671c6d2ec4257064eab184df62d3e88789f75e));
        if (i == 19) return bytes32(uint256(0x01efea8e3492d63e2aa5e6d5197cfac3787f11f5e62e108d1b15e46f7ff16f26));
        if (i == 20) return bytes32(uint256(0x22d9e770f091b1bbca424f7f2c6632d1ace845e07d4e2476c859e9e9b0c8f80a));
        if (i == 21) return bytes32(uint256(0x006198587a4191f0778f6f85fbc8cf6cbce1fc472a7c5d28e5448c67e1329632));
        if (i == 22) return bytes32(uint256(0x1aba80eea5bc32d65cf25a3f29695439d4cbdf5d8c7c025b0af0314e4e648c94));
        if (i == 23) return bytes32(uint256(0x243d2267eaed0fdae3d3b6aa8b95c9932a01c332ecfbd73c54736264855620d0));
        if (i == 24) return bytes32(uint256(0x0eb659ebda15c14b6fbbfdb8a091ea85bd319b3860ef2f322d55c6c14e16e9f9));
        if (i == 25) return bytes32(uint256(0x23250e63bebc7d68bcbaccb39874b32b589599aee840fc735a5729b835def2cb));
        if (i == 26) return bytes32(uint256(0x206c8e66ced7d1a7a602b630aa799f768c38157076c083f7f959671f985c66d5));
        if (i == 27) return bytes32(uint256(0x0ae88d7eff0e5703e3d7c418d807086265ebcb8ffe41e28ed686b944f30a8898));
        if (i == 28) return bytes32(uint256(0x2fba5c4099333dc1878b1975a7df1dbc88679fe95fcb524d4abbaea691053fde));
        if (i == 29) return bytes32(uint256(0x1e2f5591db978dd165be88b97ab5f950f12fe024a58ef032fd41e21af2c548af));
        if (i == 30) return bytes32(uint256(0x27c28fd9f8501f9d5f5db87d70964cfbf446f40766fb7fe7fb680fa47e6e2741));
        revert("MerkleZeros: level out of range");
    }
}
          

@openzeppelin/contracts/interfaces/IERC20.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)

pragma solidity >=0.4.16;

import {IERC20} from "../token/ERC20/IERC20.sol";
          

contracts/shield/MerkleTreeWithHistory.sol

// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.24;

import {MerkleZeros} from "./MerkleZeros.sol";
import {PoseidonT3} from "./PoseidonT3.sol";

/// @title MerkleTreeWithHistory
/// @notice The Shield's append-only commitment tree: a fixed-depth binary
///         Merkle tree over Poseidon, with a rolling window of the last 30
///         roots.
///
///         WHY A ROLLING HISTORY. A proof is built off-chain against whatever
///         root was current when the wallet fetched it. Between then and the
///         transaction landing, somebody else's transaction may have inserted
///         two leaves and moved the root. Without a history every busy moment
///         would be a race and most proofs would be wasted work. Thirty roots
///         is fifteen transactions of slack, which on a chain with short
///         blocks is a comfortable number of seconds, and it costs nothing:
///         the window is a ring buffer, so it is a fixed 30 slots forever.
///
///         WHY A WINDOW AND NOT EVERY ROOT. Keeping every root would let a
///         proof be built against a root from a year ago. That is not a
///         soundness problem - the nullifier set is global, so nothing can be
///         double spent - but it is an anonymity problem: a proof against a
///         very old root narrows the anonymity set to the leaves that existed
///         back then. Thirty is short enough that this leaks almost nothing
///         and long enough that honest proofs land.
///
///         TWO LEAVES AT A TIME. Every transaction creates exactly two output
///         notes, so the tree is only ever appended to in pairs and the next
///         index is always even. Hashing the pair together first and then
///         walking from level 1 costs `LEVELS` hashes instead of `2 * LEVELS`.
///         At 30 levels that is 30 Poseidon calls per transaction rather than
///         60, which is the single biggest gas saving in this contract - about
///         a million gas, at roughly 33,000 gas a hash.
///
///         WHY THE TREE IS THIS DEEP. A full tree is not a full car park, it is
///         a locked vault: `transact` always inserts two outputs, so once
///         `nextIndex` reaches the end nothing can be spent either and every
///         note in the pool is frozen forever. There is no owner to migrate
///         anything. The depth is therefore set by how hard it must be to fill
///         the tree on purpose, not by how many users are expected. 30 levels
///         is 536,870,912 transactions, which at roughly 1.4 million gas each
///         is about 7.9e14 gas - years of an entire chain's capacity, with
///         EIP-1559's base fee climbing the whole way. At 20 levels it would
///         have been about two days. See docs/SHIELD.md, "Filling the tree".
abstract contract MerkleTreeWithHistory is MerkleZeros {
    /// @notice BN254's scalar field. Everything that goes into Poseidon, and
    ///         every public signal the verifier reads, must be below this.
    uint256 public constant FIELD_SIZE =
        21888242871839275222246405745257275088548364400416034343698204186575808495617;

    uint256 public constant LEVELS = 30;
    uint32 public constant ROOT_HISTORY_SIZE = 30;
    /// @notice 2**LEVELS leaves, so 2**(LEVELS-1) transactions.
    uint32 public constant MAX_LEAVES = uint32(1) << uint32(LEVELS);

    /// @notice The Poseidon hasher, deployed by this contract's own
    ///         constructor. It is not a constructor argument on purpose: a
    ///         Shield that could be handed a hasher address could be handed a
    ///         lying one, and a lying hasher is a forged tree.
    address public immutable hasher;

    /// @dev Written only by `_insert`, and by the constructor. There is no
    ///      setter, no owner and no other writer anywhere in this codebase.
    bytes32[LEVELS] public filledSubtrees;
    bytes32[ROOT_HISTORY_SIZE] public roots;
    uint32 public currentRootIndex;
    /// @notice The index the next leaf will take. Always even.
    uint32 public nextIndex;

    error TreeFull();
    error NotInField();
    error HasherFailed();

    constructor() {
        hasher = PoseidonT3.deploy();

        // Level 0 is never a "filled subtree" because leaves only ever arrive
        // in pairs and are hashed together immediately, so filledSubtrees[0]
        // stays zero forever and is never read.
        for (uint256 i = 1; i < LEVELS; i++) {
            filledSubtrees[i] = zeros(i);
        }
        roots[0] = zeros(LEVELS);
    }

    /// @notice Poseidon over two field elements, through the deployed hasher.
    function hashLeftRight(bytes32 left, bytes32 right) public view returns (bytes32 out) {
        if (uint256(left) >= FIELD_SIZE || uint256(right) >= FIELD_SIZE) revert NotInField();
        (bool ok, bytes memory ret) =
            hasher.staticcall(abi.encodeWithSignature("poseidon(bytes32[2])", [left, right]));
        if (!ok || ret.length != 32) revert HasherFailed();
        out = abi.decode(ret, (bytes32));
    }

    /// @notice Appends two leaves and returns the index the FIRST one took.
    ///         The second is at that index + 1.
    function _insert(bytes32 leaf0, bytes32 leaf1) internal returns (uint32 index) {
        uint32 startIndex = nextIndex;
        if (startIndex + 2 > MAX_LEAVES) revert TreeFull();

        // Level 1: the two new leaves are each other's siblings, always.
        bytes32 currentLevelHash = hashLeftRight(leaf0, leaf1);
        uint32 currentIndex = startIndex >> 1;

        bytes32 left;
        bytes32 right;
        for (uint256 i = 1; i < LEVELS; i++) {
            if (currentIndex & 1 == 0) {
                // We are the left child; the right half of this subtree is
                // still empty. Park the value for the sibling that will arrive.
                left = currentLevelHash;
                right = zeros(i);
                filledSubtrees[i] = currentLevelHash;
            } else {
                // The left half was parked by an earlier insert. It is always
                // present: index i only becomes odd after it has been even.
                left = filledSubtrees[i];
                right = currentLevelHash;
            }
            currentLevelHash = hashLeftRight(left, right);
            currentIndex >>= 1;
        }

        uint32 newRootIndex = (currentRootIndex + 1) % ROOT_HISTORY_SIZE;
        currentRootIndex = newRootIndex;
        roots[newRootIndex] = currentLevelHash;
        nextIndex = startIndex + 2;
        return startIndex;
    }

    /// @notice True if `root` is the current root or one of the last 29.
    function isKnownRoot(bytes32 root) public view returns (bool) {
        if (root == bytes32(0)) return false;
        uint32 i = currentRootIndex;
        for (uint32 n = 0; n < ROOT_HISTORY_SIZE; n++) {
            if (roots[i] == root) return true;
            if (i == 0) i = ROOT_HISTORY_SIZE;
            i--;
        }
        return false;
    }

    function getLastRoot() public view returns (bytes32) {
        return roots[currentRootIndex];
    }
}
          

@openzeppelin/contracts/utils/ReentrancyGuard.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.5.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

import {StorageSlot} from "./StorageSlot.sol";

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If EIP-1153 (transient storage) is available on the chain you're deploying at,
 * consider using {ReentrancyGuardTransient} instead.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 *
 * IMPORTANT: Deprecated. This storage-based reentrancy guard will be removed and replaced
 * by the {ReentrancyGuardTransient} variant in v6.0.
 *
 * @custom:stateless
 */
abstract contract ReentrancyGuard {
    using StorageSlot for bytes32;

    // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.ReentrancyGuard")) - 1)) & ~bytes32(uint256(0xff))
    bytes32 private constant REENTRANCY_GUARD_STORAGE =
        0x9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00;

    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant NOT_ENTERED = 1;
    uint256 private constant ENTERED = 2;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    constructor() {
        _reentrancyGuardStorageSlot().getUint256Slot().value = NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    /**
     * @dev A `view` only version of {nonReentrant}. Use to block view functions
     * from being called, preventing reading from inconsistent contract state.
     *
     * CAUTION: This is a "view" modifier and does not change the reentrancy
     * status. Use it only on view functions. For payable or non-payable functions,
     * use the standard {nonReentrant} modifier instead.
     */
    modifier nonReentrantView() {
        _nonReentrantBeforeView();
        _;
    }

    function _nonReentrantBeforeView() private view {
        if (_reentrancyGuardEntered()) {
            revert ReentrancyGuardReentrantCall();
        }
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        _nonReentrantBeforeView();

        // Any calls to nonReentrant after this point will fail
        _reentrancyGuardStorageSlot().getUint256Slot().value = ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _reentrancyGuardStorageSlot().getUint256Slot().value = NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _reentrancyGuardStorageSlot().getUint256Slot().value == ENTERED;
    }

    function _reentrancyGuardStorageSlot() internal pure virtual returns (bytes32) {
        return REENTRANCY_GUARD_STORAGE;
    }
}
          

contracts/shield/PoseidonT3.sol

// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.24;

/// @title PoseidonT3
/// @notice GENERATED FILE. Do not edit. Regenerate with
///         `node scripts/shield/gen-poseidon.js`.
///
///         The creation code below is emitted by circomlibjs' poseidonContract
///         generator for two inputs. It is the same Poseidon permutation that
///         circomlib's `Poseidon(2)` template constrains inside the circuit, so
///         the tree the contract builds and the tree the proof checks are the
///         same tree. That equality is asserted in the test suite rather than
///         assumed.
///
///         LICENCE: circomlibjs is GPL-3.0 and so is this blob, and therefore
///         so is anything that links it. See docs/SHIELD.md, "Licensing".
///
///         Creation code length: 9755 bytes.
library PoseidonT3 {
    bytes internal constant CREATION_CODE =
        hex"38600c60003961260f6000f37c010000000000000000000000000000000000000000000000000000000060003504806329a5f2f6149063299e566014"
        hex"176200003757fe5b7f109b7f411ba0e4c9b2b70caf5c36a7b194be7c11ad24378bfedb68592ba8118b6020527f16ed41e13bb9c0c66ae119424fddbc"
        hex"bc9314dc9fdbdeea55d6c64543dc4903e06040527f2b90bba00fca0589f617e7dcbfe82e0df706ab640ceb247b791a93b74e36736d6060527f2969f2"
        hex"7eed31a480b9c36c764379dbca2cc8fdd1415c3dded62940bcde0bd7716080527f2e2419f9ec02ec394c9871c832963dc1b89d743c8c7b964029b231"
        hex"1687b1fe2360a0527f101071f0032379b697315876690f053d148d4e109f5fb065c8aacc55a0f89bfa60c0527f143021ec686a3f330d5f9e65463806"
        hex"5ce6cd79e28c5b3753326244ee65a1b1a760e0527f176cc029695ad02582a70eff08a6fd99d057e12e58e7d7b6b16cdfabc8ee2911610100527f19a3"
        hex"fc0a56702bf417ba7fee3802593fa644470307043f7773279cd71d25d5e0610120527f30644e72e131a029b85045b68181585d2833e84879b9709143"
        hex"e1f593f00000016024356004356000837f0ee9a592ba9a9518d05986d656f40c2114c4993c11bb29938d21d47304cd8e6e82089050837f00f1445235"
        hex"f2148c5986587169fc1bcd887b08d4d00868df5696fff40956e86483089150837f08dff3487e8ac99e1f29a058d0fa80b930c728730b7ab36ce879f3"
        hex"890ecf73f58408925083818180828009800909905083828180828009800909915083838180828009800909925062000249600052620025ba565b837f"
        hex"2f27be690fdaee46c3ce28f7532b13c856c35342c84bda6e20966310fadc01d082089050837f2b2ae1acf68b7b8d2416bebf3d4f6234b763fe04b804"
        hex"3ee48b8327bebca16cf283089150837f0319d062072bef7ecca5eac06f97d4d55952c175ab6b03eae64b44c7dbf11cfa840892508381818082800980"
        hex"09099050838281808280098009099150838381808280098009099250620002ec600052620025ba565b837f28813dcaebaeaa828a376df87af4a63bc8"
        hex"b7bf27ad49c6298ef7b387bf28526d82089050837f2727673b2ccbc903f181bf38e1c1d40d2033865200c352bc150928adddf9cb7883089150837f23"
        hex"4ec45ca27727c2e74abd2b2a1494cd6efbd43e340587d6b8fb9e31e65cc6328408925083818180828009800909905083828180828009800909915083"
        hex"83818082800980090992506200038f600052620025ba565b837f15b52534031ae18f7f862cb2cf7cf760ab10a8150a337b1ccd99ff6e8797d4288208"
        hex"9050837f0dc8fad6d9e4b35f5ed9a3d186b79ce38e0e8a8d1b58b132d701d4eecf68d1f683089150837f1bcd95ffc211fbca600f705fad3fb567ea4e"
        hex"b378f62e1fec97805518a47e4d9c84089250838181808280098009099050838281808280098009099150838381808280098009099250620004326000"
        hex"52620025ba565b837f10520b0ab721cadfe9eff81b016fc34dc76da36c2578937817cb978d069de55982089050837f1f6d48149b8e7f7d9b257d8ed5"
        hex"fbbaf42932498075fed0ace88a9eb81f5627f683089150837f1d9655f652309014d29e00ef35a2089bfff8dc1c816f0dc9ca34bdb5460c8705840892"
        hex"50838181808280098009099050620004bd600052620025ba565b837f04df5a56ff95bcafb051f7b1cd43a99ba731ff67e47032058fe3d4185697cc7d"
        hex"82089050837f0672d995f8fff640151b3d290cedaf148690a10a8c8424a7f6ec282b6e4be82883089150837f099952b414884454b21200d7ffafdd5f"
        hex"0c9a9dcc06f2708e9fc1d8209b5c75b98408925083818180828009800909905062000548600052620025ba565b837f052cba2255dfd00c7c483143ba"
        hex"8d469448e43586a9b4cd9183fd0e843a6b9fa682089050837f0b8badee690adb8eb0bd74712b7999af82de55707251ad7716077cb93c464ddc830891"
        hex"50837f119b1590f13307af5a1ee651020c07c749c15d60683a8050b963d0a8e4b2bdd184089250838181808280098009099050620005d36000526200"
        hex"25ba565b837f03150b7cd6d5d17b2529d36be0f67b832c4acfc884ef4ee5ce15be0bfb4a8d0982089050837f2cc6182c5e14546e3cf1951f17391235"
        hex"5374efb83d80898abe69cb317c9ea56583089150837f005032551e6378c450cfe129a404b3764218cadedac14e2b92d2cd73111bf0f9840892508381"
        hex"818082800980090990506200065e600052620025ba565b837f233237e3289baa34bb147e972ebcb9516469c399fcc069fb88f9da2cc28276b5820890"
        hex"50837f05c8f4f4ebd4a6e3c980d31674bfbe6323037f21b34ae5a4e80c2d4c24d6028083089150837f0a7b1db13042d396ba05d818a319f25252bcf3"
        hex"5ef3aeed91ee1f09b2590fc65b84089250838181808280098009099050620006e9600052620025ba565b837f2a73b71f9b210cf5b14296572c9d32db"
        hex"f156e2b086ff47dc5df542365a404ec082089050837f1ac9b0417abcc9a1935107e9ffc91dc3ec18f2c4dbe7f22976a760bb5c50c46083089150837f"
        hex"12c0339ae08374823fabb076707ef479269f3e4d6cb104349015ee046dc93fc08408925083818180828009800909905062000774600052620025ba56"
        hex"5b837f0b7475b102a165ad7f5b18db4e1e704f52900aa3253baac68246682e56e9a28e82089050837f037c2849e191ca3edb1c5e49f6e8b8917c843e"
        hex"379366f2ea32ab3aa88d7f844883089150837f05a6811f8556f014e92674661e217e9bd5206c5c93a07dc145fdb176a716346f840892508381818082"
        hex"80098009099050620007ff600052620025ba565b837f29a795e7d98028946e947b75d54e9f044076e87a7b2883b47b675ef5f38bd66e82089050837f"
        hex"20439a0c84b322eb45a3857afc18f5826e8c7382c8a1585c507be199981fd22f83089150837f2e0ba8d94d9ecf4a94ec2050c7371ff1bb50f27799a8"
        hex"4b6d4a2a6f2a0982c887840892508381818082800980090990506200088a600052620025ba565b837f143fd115ce08fb27ca38eb7cce822b4517822c"
        hex"d2109048d2e6d0ddcca17d71c882089050837f0c64cbecb1c734b857968dbbdcf813cdf8611659323dbcbfc84323623be9caf183089150837f028a30"
        hex"5847c683f646fca925c163ff5ae74f348d62c2b670f1426cef9403da538408925083818180828009800909905062000915600052620025ba565b837f"
        hex"2e4ef510ff0b6fda5fa940ab4c4380f26a6bcb64d89427b824d6755b5db9e30c82089050837f0081c95bc43384e663d79270c956ce3b8925b4f6d033"
        hex"b078b96384f50579400e83089150837f2ed5f0c91cbd9749187e2fade687e05ee2491b349c039a0bba8a9f4023a0bb38840892508381818082800980"
        hex"09099050620009a0600052620025ba565b837f30509991f88da3504bbf374ed5aae2f03448a22c76234c8c990f01f33a73520682089050837f1c3f20"
        hex"fd55409a53221b7c4d49a356b9f0a1119fb2067b41a7529094424ec6ad83089150837f10b4e7f3ab5df003049514459b6e18eec46bb2213e8e131e17"
        hex"0887b47ddcb96c8408925083818180828009800909905062000a2b600052620025ba565b837f2a1982979c3ff7f43ddd543d891c2abddd80f804c077"
        hex"d775039aa3502e43adef82089050837f1c74ee64f15e1db6feddbead56d6d55dba431ebc396c9af95cad0f1315bd5c9183089150837f07533ec850ba"
        hex"7f98eab9303cace01b4b9e4f2e8b82708cfa9c2fe45a0ae146a08408925083818180828009800909905062000ab6600052620025ba565b837f21576b"
        hex"438e500449a151e4eeaf17b154285c68f42d42c1808a11abf3764c075082089050837f2f17c0559b8fe79608ad5ca193d62f10bce8384c815f090674"
        hex"3d6930836d4a9e83089150837f2d477e3862d07708a79e8aae946170bc9775a4201318474ae665b0b1b7e2730e840892508381818082800980090990"
        hex"5062000b41600052620025ba565b837f162f5243967064c390e095577984f291afba2266c38f5abcd89be0f5b2747eab82089050837f2b4cb233ede9"
        hex"ba48264ecd2c8ae50d1ad7a8596a87f29f8a7777a7009239331183089150837f2c8fbcb2dd8573dc1dbaf8f4622854776db2eece6d85c4cf4254e7c3"
        hex"5e03b07a8408925083818180828009800909905062000bcc600052620025ba565b837f1d6f347725e4816af2ff453f0cd56b199e1b61e9f601e9ade5"
        hex"e88db870949da982089050837f204b0c397f4ebe71ebc2d8b3df5b913df9e6ac02b68d31324cd49af5c456552983089150837f0c4cb9dc3c4fd8174f"
        hex"1149b3c63c3c2f9ecb827cd7dc25534ff8fb75bc79c5028408925083818180828009800909905062000c57600052620025ba565b837f174ad61a1448"
        hex"c899a25416474f4930301e5c49475279e0639a616ddc45bc7b5482089050837f1a96177bcf4d8d89f759df4ec2f3cde2eaaa28c177cc0fa13a9816d4"
        hex"9a38d2ef83089150837f066d04b24331d71cd0ef8054bc60c4ff05202c126a233c1a8242ace360b8a30a840892508381818082800980090990506200"
        hex"0ce2600052620025ba565b837f2a4c4fc6ec0b0cf52195782871c6dd3b381cc65f72e02ad527037a62aa1bd80482089050837f13ab2d136ccf37d447"
        hex"e9f2e14a7cedc95e727f8446f6d9d7e55afc01219fd64983089150837f1121552fca26061619d24d843dc82769c1b04fcec26f55194c2e3e869acc6a"
        hex"9a8408925083818180828009800909905062000d6d600052620025ba565b837f00ef653322b13d6c889bc81715c37d77a6cd267d595c4a8909a5546c"
        hex"7c97cff182089050837f0e25483e45a665208b261d8ba74051e6400c776d652595d9845aca35d8a397d383089150837f29f536dcb9dd768224526465"
        hex"9e15d88e395ac3d4dde92d8c46448db979eeba898408925083818180828009800909905062000df8600052620025ba565b837f2a56ef9f2c53febadf"
        hex"da33575dbdbd885a124e2780bbea170e456baace0fa5be82089050837f1c8361c78eb5cf5decfb7a2d17b5c409f2ae2999a46762e8ee416240a8cb9a"
        hex"f183089150837f151aff5f38b20a0fc0473089aaf0206b83e8e68a764507bfd3d0ab4be74319c58408925083818180828009800909905062000e8360"
        hex"0052620025ba565b837f04c6187e41ed881dc1b239c88f7f9d43a9f52fc8c8b6cdd1e76e47615b51f10082089050837f13b37bd80f4d27fb10d84331"
        hex"f6fb6d534b81c61ed15776449e801b7ddc9c296783089150837f01a5c536273c2d9df578bfbd32c17b7a2ce3664c2a52032c9321ceb1c4e8a8e48408"
        hex"925083818180828009800909905062000f0e600052620025ba565b837f2ab3561834ca73835ad05f5d7acb950b4a9a2c666b9726da832239065b7c3b"
        hex"0282089050837f1d4d8ec291e720db200fe6d686c0d613acaf6af4e95d3bf69f7ed516a597b64683089150837f041294d2cc484d228f5784fe7919fd"
        hex"2bb925351240a04b711514c9c80b65af1d8408925083818180828009800909905062000f99600052620025ba565b837f154ac98e01708c611c4fa715"
        hex"991f004898f57939d126e392042971dd90e81fc682089050837f0b339d8acca7d4f83eedd84093aef51050b3684c88f8b0b04524563bc6ea4da48308"
        hex"9150837f0955e49e6610c94254a4f84cfbab344598f0e71eaff4a7dd81ed95b50839c82e840892508381818082800980090990506200102460005262"
        hex"0025ba565b837f06746a6156eba54426b9e22206f15abca9a6f41e6f535c6f3525401ea065462682089050837f0f18f5a0ecd1423c496f3820c549c2"
        hex"7838e5790e2bd0a196ac917c7ff32077fb83089150837f04f6eeca1751f7308ac59eff5beb261e4bb563583ede7bc92a738223d6f76e138408925083"
        hex"8181808280098009099050620010af600052620025ba565b837f2b56973364c4c4f5c1a3ec4da3cdce038811eb116fb3e45bc1768d26fc0b37588208"
        hex"9050837f123769dd49d5b054dcd76b89804b1bcb8e1392b385716a5d83feb65d437f29ef83089150837f2147b424fc48c80a88ee52b91169aacea989"
        hex"f6446471150994257b2fb01c63e9840892508381818082800980090990506200113a600052620025ba565b837f0fdc1f58548b85701a6c5505ea332a"
        hex"29647e6f34ad4243c2ea54ad897cebe54d82089050837f12373a8251fea004df68abcf0f7786d4bceff28c5dbbe0c3944f685cc0a0b1f28308915083"
        hex"7f21e4f4ea5f35f85bad7ea52ff742c9e8a642756b6af44203dd8a1f35c1a9003584089250838181808280098009099050620011c5600052620025ba"
        hex"565b837f16243916d69d2ca3dfb4722224d4c462b57366492f45e90d8a81934f1bc3b14782089050837f1efbe46dd7a578b4f66f9adbc88b4378abc2"
        hex"1566e1a0453ca13a4159cac04ac283089150837f07ea5e8537cf5dd08886020e23a7f387d468d5525be66f853b672cc96a88969a8408925083818180"
        hex"828009800909905062001250600052620025ba565b837f05a8c4f9968b8aa3b7b478a30f9a5b63650f19a75e7ce11ca9fe16c0b76c00bc8208905083"
        hex"7f20f057712cc21654fbfe59bd345e8dac3f7818c701b9c7882d9d57b72a32e83f83089150837f04a12ededa9dfd689672f8c67fee31636dcd8e88d0"
        hex"1d49019bd90b33eb33db6984089250838181808280098009099050620012db600052620025ba565b837f27e88d8c15f37dcee44f1e5425a51decbd13"
        hex"6ce5091a6767e49ec9544ccd101a82089050837f2feed17b84285ed9b8a5c8c5e95a41f66e096619a7703223176c41ee433de4d183089150837f1ed7"
        hex"cc76edf45c7c404241420f729cf394e5942911312a0d6972b8bd53aff2b88408925083818180828009800909905062001366600052620025ba565b83"
        hex"7f15742e99b9bfa323157ff8c586f5660eac6783476144cdcadf2874be45466b1a82089050837f1aac285387f65e82c895fc6887ddf40577107454c6"
        hex"ec0317284f033f27d0c78583089150837f25851c3c845d4790f9ddadbdb6057357832e2e7a49775f71ec75a96554d67c778408925083818180828009"
        hex"8009099050620013f1600052620025ba565b837f15a5821565cc2ec2ce78457db197edf353b7ebba2c5523370ddccc3d9f146a6782089050837f2411"
        hex"d57a4813b9980efa7e31a1db5966dcf64f36044277502f15485f28c7172783089150837f002e6f8d6520cd4713e335b8c0b6d2e647e9a98e12f4cd25"
        hex"58828b5ef6cb4c9b840892508381818082800980090990506200147c600052620025ba565b837f2ff7bc8f4380cde997da00b616b0fcd1af8f0e91e2"
        hex"fe1ed7398834609e0315d282089050837f00b9831b948525595ee02724471bcd182e9521f6b7bb68f1e93be4febb0d3cbe83089150837f0a2f53768b"
        hex"8ebf6a86913b0e57c04e011ca408648a4743a87d77adbf0c9c35128408925083818180828009800909905062001507600052620025ba565b837f0024"
        hex"8156142fd0373a479f91ff239e960f599ff7e94be69b7f2a290305e1198d82089050837f171d5620b87bfb1328cf8c02ab3f0c9a397196aa6a542c23"
        hex"50eb512a2b2bcda983089150837f170a4f55536f7dc970087c7c10d6fad760c952172dd54dd99d1045e4ec34a8088408925083818180828009800909"
        hex"905062001592600052620025ba565b837f29aba33f799fe66c2ef3134aea04336ecc37e38c1cd211ba482eca17e2dbfae182089050837f1e9bc179a4"
        hex"fdd758fdd1bb1945088d47e70d114a03f6a0e8b5ba650369e6497383089150837f1dd269799b660fad58f7f4892dfb0b5afeaad869a9c4b44f9c9e1c"
        hex"43bdaf8f09840892508381818082800980090990506200161d600052620025ba565b837f22cdbc8b70117ad1401181d02e15459e7ccd426fe869c7c9"
        hex"5d1dd2cb0f24af3882089050837f0ef042e454771c533a9f57a55c503fcefd3150f52ed94a7cd5ba93b9c7dacefd83089150837f11609e06ad6c8fe2"
        hex"f287f3036037e8851318e8b08a0359a03b304ffca62e828484089250838181808280098009099050620016a8600052620025ba565b837f1166d9e554"
        hex"616dba9e753eea427c17b7fecd58c076dfe42708b08f5b783aa9af82089050837f2de52989431a859593413026354413db177fbf4cd2ac0b56f855a8"
        hex"88357ee46683089150837f3006eb4ffc7a85819a6da492f3a8ac1df51aee5b17b8e89d74bf01cf5f71e9ad8408925083818180828009800909905062"
        hex"001733600052620025ba565b837f2af41fbb61ba8a80fdcf6fff9e3f6f422993fe8f0a4639f962344c822514508682089050837f119e684de476155f"
        hex"e5a6b41a8ebc85db8718ab27889e85e781b214bace4827c383089150837f1835b786e2e8925e188bea59ae363537b51248c23828f047cff784b97b3f"
        hex"d80084089250838181808280098009099050620017be600052620025ba565b837f28201a34c594dfa34d794996c6433a20d152bac2a7905c926c40e2"
        hex"85ab32eeb682089050837f083efd7a27d1751094e80fefaf78b000864c82eb571187724a761f88c22cc4e783089150837f0b6f88a3577199526158e6"
        hex"1ceea27be811c16df7774dd8519e079564f61fd13b8408925083818180828009800909905062001849600052620025ba565b837f0ec868e6d15e51d9"
        hex"644f66e1d6471a94589511ca00d29e1014390e6ee4254f5b82089050837f2af33e3f866771271ac0c9b3ed2e1142ecd3e74b939cd40d00d937ab84c9"
        hex"859183089150837f0b520211f904b5e7d09b5d961c6ace7734568c547dd6858b364ce5e47951f17884089250838181808280098009099050620018d4"
        hex"600052620025ba565b837f0b2d722d0919a1aad8db58f10062a92ea0c56ac4270e822cca228620188a1d4082089050837f1f790d4d7f8cf094d980ce"
        hex"b37c2453e957b54a9991ca38bbe0061d1ed6e562d483089150837f0171eb95dfbf7d1eaea97cd385f780150885c16235a2a6a8da92ceb01e50423384"
        hex"0892508381818082800980090990506200195f600052620025ba565b837f0c2d0e3b5fd57549329bf6885da66b9b790b40defd2c8650762305381b16"
        hex"887382089050837f1162fb28689c27154e5a8228b4e72b377cbcafa589e283c35d3803054407a18d83089150837f2f1459b65dee441b64ad386a91e8"
        hex"310f282c5a92a89e19921623ef8249711bc084089250838181808280098009099050620019ea600052620025ba565b837f1e6ff3216b688c3d996d74"
        hex"367d5cd4c1bc489d46754eb712c243f70d1b53cfbb82089050837f01ca8be73832b8d0681487d27d157802d741a6f36cdc2a0576881f932647887583"
        hex"089150837f1f7735706ffe9fc586f976d5bdf223dc680286080b10cea00b9b5de315f9650e8408925083818180828009800909905062001a75600052"
        hex"620025ba565b837f2522b60f4ea3307640a0c2dce041fba921ac10a3d5f096ef4745ca838285f01982089050837f23f0bee001b1029d5255075ddc95"
        hex"7f833418cad4f52b6c3f8ce16c235572575b83089150837f2bc1ae8b8ddbb81fcaac2d44555ed5685d142633e9df905f66d9401093082d5984089250"
        hex"83818180828009800909905062001b00600052620025ba565b837f0f9406b8296564a37304507b8dba3ed162371273a07b1fc98011fcd6ad72205f82"
        hex"089050837f2360a8eb0cc7defa67b72998de90714e17e75b174a52ee4acb126c8cd995f0a883089150837f15871a5cddead976804c803cbaef255eb4"
        hex"815a5e96df8b006dcbbc2767f889488408925083818180828009800909905062001b8b600052620025ba565b837f193a56766998ee9e0a8652dd2f3b"
        hex"1da0362f4f54f72379544f957ccdeefb420f82089050837f2a394a43934f86982f9be56ff4fab1703b2e63c8ad334834e4309805e777ae0f83089150"
        hex"837f1859954cfeb8695f3e8b635dcb345192892cd11223443ba7b4166e8876c0d1428408925083818180828009800909905062001c16600052620025"
        hex"ba565b837f04e1181763050e58013444dbcb99f1902b11bc25d90bbdca408d3819f4fed32b82089050837f0fdb253dee83869d40c335ea64de8c5bb1"
        hex"0eb82db08b5e8b1f5e5552bfd05f2383089150837f058cbe8a9a5027bdaa4efb623adead6275f08686f1c08984a9d7c5bae9b4f1c084089250838181"
        hex"80828009800909905062001ca1600052620025ba565b837f1382edce9971e186497eadb1aeb1f52b23b4b83bef023ab0d15228b4cceca59a82089050"
        hex"837f03464990f045c6ee0819ca51fd11b0be7f61b8eb99f14b77e1e6634601d9e8b583089150837f23f7bfc8720dc296fff33b41f98ff83c6fcab460"
        hex"5db2eb5aaa5bc137aeb70a588408925083818180828009800909905062001d2c600052620025ba565b837f0a59a158e3eec2117e6e94e7f0e9decf18"
        hex"c3ffd5e1531a9219636158bbaf62f282089050837f06ec54c80381c052b58bf23b312ffd3ce2c4eba065420af8f4c23ed0075fd07b83089150837f11"
        hex"8872dc832e0eb5476b56648e867ec8b09340f7a7bcb1b4962f0ff9ed1f9d018408925083818180828009800909905062001db7600052620025ba565b"
        hex"837f13d69fa127d834165ad5c7cba7ad59ed52e0b0f0e42d7fea95e1906b520921b182089050837f169a177f63ea681270b1c6877a73d21bde143942"
        hex"fb71dc55fd8a49f19f10c77b83089150837f04ef51591c6ead97ef42f287adce40d93abeb032b922f66ffb7e9a5a7450544d84089250838181808280"
        hex"09800909905062001e42600052620025ba565b837f256e175a1dc079390ecd7ca703fb2e3b19ec61805d4f03ced5f45ee6dd0f69ec82089050837f30"
        hex"102d28636abd5fe5f2af412ff6004f75cc360d3205dd2da002813d3e2ceeb283089150837f10998e42dfcd3bbf1c0714bc73eb1bf40443a3fa99bef4"
        hex"a31fd31be182fcc7928408925083818180828009800909905062001ecd600052620025ba565b837f193edd8e9fcf3d7625fa7d24b598a1d89f3362ea"
        hex"f4d582efecad76f879e3686082089050837f18168afd34f2d915d0368ce80b7b3347d1c7a561ce611425f2664d7aa51f0b5d83089150837f29383c01"
        hex"ebd3b6ab0c017656ebe658b6a328ec77bc33626e29e2e95b33ea61118408925083818180828009800909905062001f58600052620025ba565b837f10"
        hex"646d2f2603de39a1f4ae5e7771a64a702db6e86fb76ab600bf573f9010c71182089050837f0beb5e07d1b27145f575f1395a55bf132f90c25b40da7b"
        hex"3864d0242dcb1117fb83089150837f16d685252078c133dc0d3ecad62b5c8830f95bb2e54b59abdffbf018d96fa33684089250838181808280098009"
        hex"09905062001fe3600052620025ba565b837f0a6abd1d833938f33c74154e0404b4b40a555bbbec21ddfafd672dd62047f01a82089050837f1a679f5d"
        hex"36eb7b5c8ea12a4c2dedc8feb12dffeec450317270a6f19b34cf186083089150837f0980fb233bd456c23974d50e0ebfde4726a423eada4e8f6ffbc7"
        hex"592e3f1b93d6840892508381818082800980090990506200206e600052620025ba565b837f161b42232e61b84cbf1810af93a38fc0cece3d5628c928"
        hex"2003ebacb5c312c72b82089050837f0ada10a90c7f0520950f7d47a60d5e6a493f09787f1564e5d09203db47de1a0b83089150837f1a730d372310ba"
        hex"82320345a29ac4238ed3f07a8a2b4e121bb50ddb9af407f45184089250838181808280098009099050620020f9600052620025ba565b837f2c8120f2"
        hex"68ef054f817064c369dda7ea908377feaba5c4dffbda10ef58e8c55682089050837f1c7c8824f758753fa57c00789c684217b930e95313bcb73e6e7b"
        hex"8649a4968f7083089150837f2cd9ed31f5f8691c8e39e4077a74faa0f400ad8b491eb3f7b47b27fa3fd1cf7784089250838181808280098009099050"
        hex"62002184600052620025ba565b837f23ff4f9d46813457cf60d92f57618399a5e022ac321ca550854ae23918a22eea82089050837f09945a5d147a4f"
        hex"66ceece6405dddd9d0af5a2c5103529407dff1ea58f180426d83089150837f188d9c528025d4c2b67660c6b771b90f7c7da6eaa29d3f268a6dd223ec"
        hex"6fc630840892508381818082800980090990506200220f600052620025ba565b837f3050e37996596b7f81f68311431d8734dba7d926d3633595e0c0"
        hex"d8ddf4f0f47f82089050837f15af1169396830a91600ca8102c35c426ceae5461e3f95d89d829518d30afd7883089150837f1da6d09885432ea9a06d"
        hex"9f37f873d985dae933e351466b2904284da3320d8acc840892508381818082800980090990506200229a600052620025ba565b837f2796ea90d269af"
        hex"29f5f8acf33921124e4e4fad3dbe658945e546ee411ddaa9cb82089050837f202d7dd1da0f6b4b0325c8b3307742f01e15612ec8e9304a7cb0319e01"
        hex"d32d6083089150837f096d6790d05bb759156a952ba263d672a2d7f9c788f4c831a29dace4c0f8be5f84089250838181808280098009099050620023"
        hex"25600052620025ba565b837f054efa1f65b0fce283808965275d877b438da23ce5b13e1963798cb1447d25a482089050837f1b162f83d917e93edb33"
        hex"08c29802deb9d8aa690113b2e14864ccf6e18e4165f183089150837f21e5241e12564dd6fd9f1cdd2a0de39eedfefc1466cc568ec5ceb745a0506edc"
        hex"84089250838181808280098009099050838281808280098009099150838381808280098009099250620023c8600052620025ba565b837f1cfb5662e8"
        hex"cf5ac9226a80ee17b36abecb73ab5f87e161927b4349e10e4bdf0882089050837f0f21177e302a771bbae6d8d1ecb373b62c99af346220ac0129c53f"
        hex"666eb2410083089150837f1671522374606992affb0dd7f71b12bec4236aede6290546bcef7e1f515c23208408925083818180828009800909905083"
        hex"82818082800980090991508383818082800980090992506200246b600052620025ba565b837f0fa3ec5b9488259c2eb4cf24501bfad9be2ec9e42c5c"
        hex"c8ccd419d2a692cad87082089050837f193c0e04e0bd298357cb266c1506080ed36edce85c648cc085e8c57b1ab54bba83089150837f102adf8ef747"
        hex"35a27e9128306dcbc3c99f6f7291cd406578ce14ea2adaba68f884089250838181808280098009099050838281808280098009099150838381808280"
        hex"0980090992506200250e600052620025ba565b837f0fe0af7858e49859e2a54d6f1ad945b1316aa24bfbdd23ae40a6d0cb70c3eab182089050837f21"
        hex"6f6717bbc7dedb08536a2220843f4e2da5f1daa9ebdefde8a5ea7344798d2283089150837f1da55cc900f0d21f4a3e694391918a1b3c23b2ac773c6b"
        hex"3ef88e2e422832516184089250838181808280098009099050838281808280098009099150838381808280098009099250620025b1600052620025ba"
        hex"565b60005260206000f35b8360205182098460405184098591088460605185098591088460805183098560a05185098691088560c051860986910885"
        hex"60e0518409866101005186098791088661012051870987910894509250905060005156";

    /// @notice Deploys the hasher and returns its address. Called once, from
    ///         Shield's constructor, so the Shield can never be pointed at a
    ///         hasher somebody else chose.
    function deploy() internal returns (address hasher) {
        bytes memory code = CREATION_CODE;
        assembly {
            hasher := create(0, add(code, 0x20), mload(code))
        }
        require(hasher != address(0), "PoseidonT3: deploy failed");
    }
}
          

@openzeppelin/contracts/interfaces/IERC1363.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)

pragma solidity >=0.6.2;

import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";

/**
 * @title IERC1363
 * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
 *
 * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
 * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
 */
interface IERC1363 is IERC20, IERC165 {
    /*
     * Note: the ERC-165 identifier for this interface is 0xb0202a11.
     * 0xb0202a11 ===
     *   bytes4(keccak256('transferAndCall(address,uint256)')) ^
     *   bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
     */

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @param data Additional data with no specified format, sent in call to `spender`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}
          

@openzeppelin/contracts/interfaces/IERC165.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)

pragma solidity >=0.4.16;

import {IERC165} from "../utils/introspection/IERC165.sol";
          

@openzeppelin/contracts/token/ERC20/IERC20.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)

pragma solidity >=0.4.16;

/**
 * @dev Interface of the ERC-20 standard as defined in the ERC.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the value of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 value) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 value) external returns (bool);
}
          

@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.5.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC-20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    /**
     * @dev An operation with an ERC-20 token failed.
     */
    error SafeERC20FailedOperation(address token);

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        if (!_safeTransfer(token, to, value, true)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        if (!_safeTransferFrom(token, from, to, value, true)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.
     */
    function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {
        return _safeTransfer(token, to, value, false);
    }

    /**
     * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.
     */
    function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {
        return _safeTransferFrom(token, from, to, value, false);
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     *
     * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
     * only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
     * set here.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        if (!_safeApprove(token, spender, value, false)) {
            if (!_safeApprove(token, spender, 0, true)) revert SafeERC20FailedOperation(address(token));
            if (!_safeApprove(token, spender, value, true)) revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that relies on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            safeTransfer(token, to, value);
        } else if (!token.transferAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
     * has no code. This can be used to implement an {ERC721}-like safe transfer that relies on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferFromAndCallRelaxed(
        IERC1363 token,
        address from,
        address to,
        uint256 value,
        bytes memory data
    ) internal {
        if (to.code.length == 0) {
            safeTransferFrom(token, from, to, value);
        } else if (!token.transferFromAndCall(from, to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
     * Oppositely, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
     * once without retrying, and relies on the returned value to be true.
     *
     * Reverts if the returned value is other than `true`.
     */
    function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            forceApprove(token, to, value);
        } else if (!token.approveAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Imitates a Solidity `token.transfer(to, value)` call, relaxing the requirement on the return value: the
     * return value is optional (but if data is returned, it must not be false).
     *
     * @param token The token targeted by the call.
     * @param to The recipient of the tokens
     * @param value The amount of token to transfer
     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.
     */
    function _safeTransfer(IERC20 token, address to, uint256 value, bool bubble) private returns (bool success) {
        bytes4 selector = IERC20.transfer.selector;

        assembly ("memory-safe") {
            let fmp := mload(0x40)
            mstore(0x00, selector)
            mstore(0x04, and(to, shr(96, not(0))))
            mstore(0x24, value)
            success := call(gas(), token, 0, 0x00, 0x44, 0x00, 0x20)
            // if call success and return is true, all is good.
            // otherwise (not success or return is not true), we need to perform further checks
            if iszero(and(success, eq(mload(0x00), 1))) {
                // if the call was a failure and bubble is enabled, bubble the error
                if and(iszero(success), bubble) {
                    returndatacopy(fmp, 0x00, returndatasize())
                    revert(fmp, returndatasize())
                }
                // if the return value is not true, then the call is only successful if:
                // - the token address has code
                // - the returndata is empty
                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))
            }
            mstore(0x40, fmp)
        }
    }

    /**
     * @dev Imitates a Solidity `token.transferFrom(from, to, value)` call, relaxing the requirement on the return
     * value: the return value is optional (but if data is returned, it must not be false).
     *
     * @param token The token targeted by the call.
     * @param from The sender of the tokens
     * @param to The recipient of the tokens
     * @param value The amount of token to transfer
     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.
     */
    function _safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value,
        bool bubble
    ) private returns (bool success) {
        bytes4 selector = IERC20.transferFrom.selector;

        assembly ("memory-safe") {
            let fmp := mload(0x40)
            mstore(0x00, selector)
            mstore(0x04, and(from, shr(96, not(0))))
            mstore(0x24, and(to, shr(96, not(0))))
            mstore(0x44, value)
            success := call(gas(), token, 0, 0x00, 0x64, 0x00, 0x20)
            // if call success and return is true, all is good.
            // otherwise (not success or return is not true), we need to perform further checks
            if iszero(and(success, eq(mload(0x00), 1))) {
                // if the call was a failure and bubble is enabled, bubble the error
                if and(iszero(success), bubble) {
                    returndatacopy(fmp, 0x00, returndatasize())
                    revert(fmp, returndatasize())
                }
                // if the return value is not true, then the call is only successful if:
                // - the token address has code
                // - the returndata is empty
                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))
            }
            mstore(0x40, fmp)
            mstore(0x60, 0)
        }
    }

    /**
     * @dev Imitates a Solidity `token.approve(spender, value)` call, relaxing the requirement on the return value:
     * the return value is optional (but if data is returned, it must not be false).
     *
     * @param token The token targeted by the call.
     * @param spender The spender of the tokens
     * @param value The amount of token to transfer
     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.
     */
    function _safeApprove(IERC20 token, address spender, uint256 value, bool bubble) private returns (bool success) {
        bytes4 selector = IERC20.approve.selector;

        assembly ("memory-safe") {
            let fmp := mload(0x40)
            mstore(0x00, selector)
            mstore(0x04, and(spender, shr(96, not(0))))
            mstore(0x24, value)
            success := call(gas(), token, 0, 0x00, 0x44, 0x00, 0x20)
            // if call success and return is true, all is good.
            // otherwise (not success or return is not true), we need to perform further checks
            if iszero(and(success, eq(mload(0x00), 1))) {
                // if the call was a failure and bubble is enabled, bubble the error
                if and(iszero(success), bubble) {
                    returndatacopy(fmp, 0x00, returndatasize())
                    revert(fmp, returndatasize())
                }
                // if the return value is not true, then the call is only successful if:
                // - the token address has code
                // - the returndata is empty
                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))
            }
            mstore(0x40, fmp)
        }
    }
}
          

@openzeppelin/contracts/utils/introspection/IERC165.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)

pragma solidity >=0.4.16;

/**
 * @dev Interface of the ERC-165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[ERC].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
          

@openzeppelin/contracts/utils/StorageSlot.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.

pragma solidity ^0.8.20;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC-1967 implementation slot:
 * ```solidity
 * contract ERC1967 {
 *     // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(newImplementation.code.length > 0);
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * TIP: Consider using this library along with {SlotDerivation}.
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    struct Int256Slot {
        int256 value;
    }

    struct StringSlot {
        string value;
    }

    struct BytesSlot {
        bytes value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns a `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns a `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns a `Int256Slot` with member `value` located at `slot`.
     */
    function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns a `StringSlot` with member `value` located at `slot`.
     */
    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.
     */
    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
        assembly ("memory-safe") {
            r.slot := store.slot
        }
    }

    /**
     * @dev Returns a `BytesSlot` with member `value` located at `slot`.
     */
    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
     */
    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
        assembly ("memory-safe") {
            r.slot := store.slot
        }
    }
}
          

Compiler Settings

{"viaIR":false,"outputSelection":{"*":{"*":["abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers","metadata"],"":["ast"]}},"optimizer":{"runs":200,"enabled":true},"libraries":{},"evmVersion":"paris"}
              

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"token_","internalType":"address"},{"type":"address","name":"verifier_","internalType":"address"}]},{"type":"error","name":"AlreadySpent","inputs":[]},{"type":"error","name":"AmountTooLarge","inputs":[]},{"type":"error","name":"BadRecipient","inputs":[]},{"type":"error","name":"BadRelayer","inputs":[]},{"type":"error","name":"DuplicateNullifier","inputs":[]},{"type":"error","name":"ExtDataMismatch","inputs":[]},{"type":"error","name":"HasherFailed","inputs":[]},{"type":"error","name":"Insolvent","inputs":[{"type":"uint256","name":"held","internalType":"uint256"},{"type":"uint256","name":"owed","internalType":"uint256"}]},{"type":"error","name":"InvalidProof","inputs":[]},{"type":"error","name":"NoEligibleSupply","inputs":[]},{"type":"error","name":"NotInField","inputs":[]},{"type":"error","name":"NothingToSweep","inputs":[]},{"type":"error","name":"PublicAmountMismatch","inputs":[]},{"type":"error","name":"ReentrancyGuardReentrantCall","inputs":[]},{"type":"error","name":"SafeERC20FailedOperation","inputs":[{"type":"address","name":"token","internalType":"address"}]},{"type":"error","name":"TreeFull","inputs":[]},{"type":"error","name":"TurnstileUnderflow","inputs":[]},{"type":"error","name":"UnexpectedTokenBehaviour","inputs":[]},{"type":"error","name":"UnknownRoot","inputs":[]},{"type":"event","name":"DividendsSwept","inputs":[{"type":"address","name":"caller","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"NewCommitment","inputs":[{"type":"bytes32","name":"commitment","internalType":"bytes32","indexed":true},{"type":"uint256","name":"index","internalType":"uint256","indexed":false},{"type":"bytes","name":"encryptedOutput","internalType":"bytes","indexed":false}],"anonymous":false},{"type":"event","name":"NewNullifier","inputs":[{"type":"bytes32","name":"nullifier","internalType":"bytes32","indexed":true}],"anonymous":false},{"type":"event","name":"ShieldTransaction","inputs":[{"type":"bytes32","name":"root","internalType":"bytes32","indexed":true},{"type":"int256","name":"extAmount","internalType":"int256","indexed":false},{"type":"uint256","name":"relayerFee","internalType":"uint256","indexed":false},{"type":"uint256","name":"totalShielded","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"FIELD_SIZE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"LEVELS","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MAX_EXT_AMOUNT","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint32","name":"","internalType":"uint32"}],"name":"MAX_LEAVES","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint32","name":"","internalType":"uint32"}],"name":"ROOT_HISTORY_SIZE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[],"name":"assertSolvent","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint32","name":"","internalType":"uint32"}],"name":"currentRootIndex","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"filledSubtrees","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"getLastRoot","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"out","internalType":"bytes32"}],"name":"hashLeftRight","inputs":[{"type":"bytes32","name":"left","internalType":"bytes32"},{"type":"bytes32","name":"right","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"hasher","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isKnownRoot","inputs":[{"type":"bytes32","name":"root","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint32","name":"","internalType":"uint32"}],"name":"nextIndex","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"nullifiers","inputs":[{"type":"bytes32","name":"","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"roots","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"held","internalType":"uint256"},{"type":"uint256","name":"owed","internalType":"uint256"},{"type":"bool","name":"ok","internalType":"bool"}],"name":"solvency","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"swept","internalType":"uint256"}],"name":"sweepDividends","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC20"}],"name":"token","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalShielded","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transact","inputs":[{"type":"tuple","name":"proof","internalType":"struct Shield.Proof","components":[{"type":"uint256[2]","name":"a","internalType":"uint256[2]"},{"type":"uint256[2][2]","name":"b","internalType":"uint256[2][2]"},{"type":"uint256[2]","name":"c","internalType":"uint256[2]"}]},{"type":"tuple","name":"pi","internalType":"struct Shield.PublicInputs","components":[{"type":"bytes32","name":"root","internalType":"bytes32"},{"type":"uint256","name":"publicAmount","internalType":"uint256"},{"type":"bytes32","name":"extDataHash","internalType":"bytes32"},{"type":"bytes32[2]","name":"inputNullifiers","internalType":"bytes32[2]"},{"type":"bytes32[2]","name":"outputCommitments","internalType":"bytes32[2]"}]},{"type":"tuple","name":"ext","internalType":"struct Shield.ExtData","components":[{"type":"address","name":"recipient","internalType":"address"},{"type":"int256","name":"extAmount","internalType":"int256"},{"type":"address","name":"relayer","internalType":"address"},{"type":"uint256","name":"relayerFee","internalType":"uint256"},{"type":"bytes","name":"encryptedOutput0","internalType":"bytes"},{"type":"bytes","name":"encryptedOutput1","internalType":"bytes"}]}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IShieldVerifier"}],"name":"verifier","inputs":[]},{"type":"receive","stateMutability":"payable"}]
              

Contract Creation Code

0x60e06040523480156200001157600080fd5b5060405162004f2138038062004f21833981016040819052620000349162000793565b6200003e620000cf565b6001600160a01b031660805260015b601e811015620000835762000062816200015c565b600082601e8110620000785762000078620007cb565b01556001016200004d565b5062000090601e6200015c565b601e5560017f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00556001600160a01b0391821660a0521660c052620007e1565b60008060405180612640016040528061261b81526020016200290661261b913990508051602082016000f091506001600160a01b038216620001585760405162461bcd60e51b815260206004820152601960248201527f506f736569646f6e54333a206465706c6f79206661696c65640000000000000060448201526064015b60405180910390fd5b5090565b6000816000036200018e57507f1e7c14b5f0b1b399c711cdc960b2c14844c85743b8b51786d8b7da7b806affc6919050565b81600103620001be57507f1468d3a28fc9553ff025d172e3b410bc7ddf929a78f7ea5346a20edeaeee611d919050565b81600203620001ee57507f0e9322780626822896cb896a3b647d0e4436a3707edfff89953e220914758221919050565b816003036200021e57507f2c8ff24c7915abcb794b39b0656ec58bf0bbcc995439c6fbe640a63306e86746919050565b816004036200024e57507f0e72770edb4aeee28ef2a0e454792ed302fa8e1ebc86e1be461a23fee5632c0f919050565b816005036200027e57507f0cc51259a07f392105d126fcfcc78d45e9f8376bb9f859426d414d3dda020a5d919050565b81600603620002ae57507f11e09b59022165c4f108066c3459d2ee56797dd6ab52e666e119502bc5d1acb3919050565b81600703620002de57507f2c66b1c3a82515b03697cfb307eafd8fb8b654bd97b0e70efd70eab5827fc50b919050565b816008036200030e57507f28bb1d2a364755b8c92fc8be1ecafa3f854e1df343e35c9f84cee7e4d7deabc6919050565b816009036200033e57507f10d09e0cf47554dae640a6bf1535238f378c7353f6866afafd57a4e26629994b919050565b81600a036200036e57507f04688f2886700a52b6f7bdb85beae33f0985a0721b748f02d7600c20bd99e40c919050565b81600b036200039e57507f2355a4c7f033dd56057c23aff0773b86767e55b609260480e94e71fa55720a42919050565b81600c03620003ce57507f21ba17487fd86205dbb8bd169eef71b7e9f515755536ef7924709aabf51f15b3919050565b81600d03620003fe57507f10a83b6bb8dff62436b71da044da394f295c8b8b5a3363983b9d88c4b9c7433c919050565b81600e036200042e57507f1b1cee8e5b31f145985cda39953a8a12b7393f74b58786a693885e7031ead254919050565b81600f036200045e57507f20b23472f405b6772e4f3907790b4b0ef898c9e59f5e72863aa93f0fadfbc190919050565b816010036200048e57507f1cb5feb963dcddda940a48c020a4c7d674743d42b5cb7c0259f00ba68119dd42919050565b81601103620004be57507f014958a33307215f9f40692cc8716402434465c699bd21134a3489f82b99eccd919050565b81601203620004ee57507f25fce33397f1f3bd3f01053aad671c6d2ec4257064eab184df62d3e88789f75e919050565b816013036200051e57507f01efea8e3492d63e2aa5e6d5197cfac3787f11f5e62e108d1b15e46f7ff16f26919050565b816014036200054e57507f22d9e770f091b1bbca424f7f2c6632d1ace845e07d4e2476c859e9e9b0c8f80a919050565b816015036200057d57507e6198587a4191f0778f6f85fbc8cf6cbce1fc472a7c5d28e5448c67e1329632919050565b81601603620005ad57507f1aba80eea5bc32d65cf25a3f29695439d4cbdf5d8c7c025b0af0314e4e648c94919050565b81601703620005dd57507f243d2267eaed0fdae3d3b6aa8b95c9932a01c332ecfbd73c54736264855620d0919050565b816018036200060d57507f0eb659ebda15c14b6fbbfdb8a091ea85bd319b3860ef2f322d55c6c14e16e9f9919050565b816019036200063d57507f23250e63bebc7d68bcbaccb39874b32b589599aee840fc735a5729b835def2cb919050565b81601a036200066d57507f206c8e66ced7d1a7a602b630aa799f768c38157076c083f7f959671f985c66d5919050565b81601b036200069d57507f0ae88d7eff0e5703e3d7c418d807086265ebcb8ffe41e28ed686b944f30a8898919050565b81601c03620006cd57507f2fba5c4099333dc1878b1975a7df1dbc88679fe95fcb524d4abbaea691053fde919050565b81601d03620006fd57507f1e2f5591db978dd165be88b97ab5f950f12fe024a58ef032fd41e21af2c548af919050565b81601e036200072d57507f27c28fd9f8501f9d5f5db87d70964cfbf446f40766fb7fe7fb680fa47e6e2741919050565b60405162461bcd60e51b815260206004820152601f60248201527f4d65726b6c655a65726f733a206c6576656c206f7574206f662072616e67650060448201526064016200014f565b80516001600160a01b03811681146200078e57600080fd5b919050565b60008060408385031215620007a757600080fd5b620007b28362000776565b9150620007c26020840162000776565b90509250929050565b634e487b7160e01b600052603260045260246000fd5b60805160a05160c0516120af62000857600039600081816101be01526108750152600081816103f601528181610b2001528181610b6e01528181610c6101528181610cfd01528181610f31015281816112c60152818161134801526113910152600081816103a2015261048d01526120af6000f3fe60806040526004361061012e5760003560e01c80637fe24ffe116100ab578063cd87a3b41161006f578063cd87a3b414610366578063e2adba8c1461037b578063ed33639f14610390578063f178e47c146103c4578063fc0c546a146103e4578063fc7e9c6f1461041857600080fd5b80637fe24ffe146102e75780638dbff679146102ff57806390eeb02b14610314578063ba70f75714610331578063c2b40ae41461034657600080fd5b8063516b9ff0116100f2578063516b9ff014610248578063553fe4561461025e5780636d9833e314610280578063773c5049146102a057806379c61609146102d257600080fd5b8063082febf01461013a5780632997e86b1461016c5780632b7ac3f3146101ac57806338bf282e146101f8578063414a37ba1461022657600080fd5b3661013557005b600080fd5b34801561014657600080fd5b50610152634000000081565b60405163ffffffff90911681526020015b60405180910390f35b34801561017857600080fd5b5061019c610187366004611ba9565b603e6020526000908152604090205460ff1681565b6040519015158152602001610163565b3480156101b857600080fd5b506101e07f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610163565b34801561020457600080fd5b50610218610213366004611bc2565b61043d565b604051908152602001610163565b34801561023257600080fd5b5061021860008051602061203a83398151915281565b34801561025457600080fd5b50610218603d5481565b34801561026a57600080fd5b5061027e610279366004611be4565b61059e565b005b34801561028c57600080fd5b5061019c61029b366004611ba9565b610bb6565b3480156102ac57600080fd5b506102b5610c3d565b604080519384526020840192909252151590820152606001610163565b3480156102de57600080fd5b50610218610cde565b3480156102f357600080fd5b50610218600160801b81565b34801561030b57600080fd5b5061027e610f19565b34801561032057600080fd5b50603c546101529063ffffffff1681565b34801561033d57600080fd5b50610218610fe3565b34801561035257600080fd5b50610218610361366004611ba9565b611008565b34801561037257600080fd5b50610152601e81565b34801561038757600080fd5b50610218601e81565b34801561039c57600080fd5b506101e07f000000000000000000000000000000000000000000000000000000000000000081565b3480156103d057600080fd5b506102186103df366004611ba9565b61101f565b3480156103f057600080fd5b506101e07f000000000000000000000000000000000000000000000000000000000000000081565b34801561042457600080fd5b50603c5461015290640100000000900463ffffffff1681565b600060008051602061203a8339815191528310158061046a575060008051602061203a8339815191528210155b1561048857604051630474be3f60e51b815260040160405180910390fd5b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166040518060400160405280878152602001868152506040516024016104da9190611c5d565b60408051601f198184030181529181526020820180516001600160e01b031663014cf2b360e51b1790525161050f9190611c8e565b600060405180830381855afa9150503d806000811461054a576040519150601f19603f3d011682016040523d82523d6000602084013e61054f565b606091505b509150915081158061056357508051602014155b1561058157604051631b690d2360e21b815260040160405180910390fd5b808060200190518101906105959190611cbd565b95945050505050565b6105a661102f565b6105b08235610bb6565b6105cd57604051634629008b60e11b815260040160405180910390fd5b60808201356060830135036105f55760405163e1200f1d60e01b815260040160405180910390fd5b60608201356000908152603e602052604090205460ff168061062a575060808201356000908152603e602052604090205460ff165b156106485760405163d4d9b0fd60e01b815260040160405180910390fd5b600160801b8160200135138061066d5750610666600160801b611d02565b8160200135125b1561068b57604051630625040160e01b815260040160405180910390fd5b600160801b816060013511156106b457604051630625040160e01b815260040160405180910390fd5b60008051602061203a833981519152816040516020016106d49190611db0565b6040516020818303038152906040528051906020012060001c6106f79190611e5f565b60408301351461071a57604051631d16f63760e01b815260040160405180910390fd5b61072c8160200135826060013561104b565b82602001351461074f576040516357df23ed60e11b815260040160405180910390fd5b600081602001351280156107965750600061076d6020830183611e73565b6001600160a01b0316148061079657503061078b6020830183611e73565b6001600160a01b0316145b156107b4576040516333d1661360e11b815260040160405180910390fd5b60008160600135118015610801575060006107d56060830160408401611e73565b6001600160a01b031614806108015750306107f66060830160408401611e73565b6001600160a01b0316145b1561081f5760405163044d2a2f60e51b815260040160405180910390fd5b6040805160e08101825283358152602080850135908201528382013581830152606080850135908201526080808501359082015260a0808501359082015260c08085013581830152825163c894e75760e01b81527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169363c894e757936108bb938993928401929084019190600401611e95565b602060405180830381865afa1580156108d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108fc9190611f03565b610919576040516309bde33960e01b815260040160405180910390fd5b6060828101356000908152603e602090815260408083208054600160ff19918216811790925560808801358552919093208054909116909217909155610966919083013590830135611094565b600061097a60a084013560c0850135611139565b6040519091506060840135907f5e58f77bbf94b46d8d896e29753e4458c6e59b48581e20ed58c9558e96f297ce90600090a26040516080840135907f5e58f77bbf94b46d8d896e29753e4458c6e59b48581e20ed58c9558e96f297ce90600090a260a08301357ff3843eddcfcac65d12d9f26261dab50671fdbf5dc44441816c8bbdace2411afd82610a0f6080860186611f25565b604051610a1e93929190611f6c565b60405180910390a260c08301357ff3843eddcfcac65d12d9f26261dab50671fdbf5dc44441816c8bbdace2411afd610a57836001611f8c565b610a6460a0860186611f25565b604051610a7393929190611f6c565b60405180910390a2603d5460408051602080860135825260608087013591830191909152918101929092528435917f37fcfb23f6b56f47d774f05bd4adc9347546fd71de34212b0846921ab9fc7714910160405180910390a2600082602001351315610aec57610ae73383602001356112ae565b610b47565b600082602001351215610b4757610b47610b096020840184611e73565b610b166020850135611d02565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169190611424565b606082013515610b9957610b99610b646060840160408501611e73565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906060850135611424565b50610bb1600160008051602061205a83398151915255565b505050565b600081610bc557506000919050565b603c5463ffffffff1660005b601e63ffffffff82161015610c335783601e8363ffffffff16601e8110610bfa57610bfa611cd6565b015403610c0b575060019392505050565b8163ffffffff16600003610c1e57601e91505b81610c2881611fb0565b925050600101610bd1565b5060009392505050565b6040516370a0823160e01b8152306004820152600090819081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015610ca8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ccc9190611cbd565b9250603d549150818310159050909192565b6000610ce861102f565b60405163402914f560e01b81523060048201527f0000000000000000000000000000000000000000000000000000000000000000906000906001600160a01b0383169063402914f590602401602060405180830381865afa158015610d51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d759190611cbd565b1115610dcf57806001600160a01b0316634e71d92d6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610db657600080fd5b505af1158015610dca573d6000803e3d6000fd5b505050505b47915081600003610df357604051630d44987f60e21b815260040160405180910390fd5b806001600160a01b0316636ade07b06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e559190611cbd565b600003610e755760405163a16645af60e01b815260040160405180910390fd5b60405182815233907f0838e56676bf8bd7f21a12ea640a4b277041fc47809b60bb7ff254af9142101f9060200160405180910390a2806001600160a01b031663e4fc6b6d836040518263ffffffff1660e01b81526004016000604051808303818588803b158015610ee557600080fd5b505af1158015610ef9573d6000803e3d6000fd5b505050505050610f16600160008051602061205a83398151915255565b90565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015610f80573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa49190611cbd565b9050603d54811015610fe057603d546040516301f2c89f60e41b8152610fd7918391600401918252602082015260400190565b60405180910390fd5b50565b603c54600090601e9063ffffffff1681811061100157611001611cd6565b0154905090565b601e81601e811061101857600080fd5b0154905081565b600081601e811061101857600080fd5b611037611459565b600260008051602061205a83398151915255565b6000806110588385611fd0565b90506000811261106957905061108e565b61107281611d02565b61108a9060008051602061203a833981519152611ff0565b9150505b92915050565b60008213156110e257600082603d546110ad9190612003565b9050818110156110d05760405163beecf55d60e01b815260040160405180910390fd5b6110da8282611ff0565b603d55505050565b6000816110ee84611d02565b6110f89190612003565b905080603d54101561111d5760405163beecf55d60e01b815260040160405180910390fd5b80603d600082825461112f9190611ff0565b9091555050505050565b603c54600090640100000000900463ffffffff16634000000061115d826002611f8c565b63ffffffff16111561118257604051631691e59f60e31b815260040160405180910390fd5b600061118e858561043d565b9050600182811c637fffffff169060009081905b601e81101561121857600184166000036111df578492506111c281611494565b915084600082601e81106111d8576111d8611cd6565b01556111fa565b600081601e81106111f2576111f2611cd6565b015492508491505b611204838361043d565b9450637fffffff600194851c1693016111a2565b50603c54600090601e906112339063ffffffff166001611f8c565b61123d9190612016565b603c805463ffffffff191663ffffffff83169081179091559091508590601e9081811061126c5761126c611cd6565b0155611279866002611f8c565b603c805463ffffffff929092166401000000000267ffffffff0000000019909216919091179055509394505050505092915050565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015611315573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113399190611cbd565b90506113706001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016843085611a8e565b6040516370a0823160e01b8152306004820152829082906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa1580156113d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113fc9190611cbd565b6114069190611ff0565b14610bb157604051630e58c3a760e31b815260040160405180910390fd5b6114318383836001611aca565b610bb157604051635274afe760e01b81526001600160a01b0384166004820152602401610fd7565b6114746000600260008051602061205a833981519152611b30565b1561149257604051633ee5aeb560e01b815260040160405180910390fd5b565b6000816000036114c557507f1e7c14b5f0b1b399c711cdc960b2c14844c85743b8b51786d8b7da7b806affc6919050565b816001036114f457507f1468d3a28fc9553ff025d172e3b410bc7ddf929a78f7ea5346a20edeaeee611d919050565b8160020361152357507f0e9322780626822896cb896a3b647d0e4436a3707edfff89953e220914758221919050565b8160030361155257507f2c8ff24c7915abcb794b39b0656ec58bf0bbcc995439c6fbe640a63306e86746919050565b8160040361158157507f0e72770edb4aeee28ef2a0e454792ed302fa8e1ebc86e1be461a23fee5632c0f919050565b816005036115b057507f0cc51259a07f392105d126fcfcc78d45e9f8376bb9f859426d414d3dda020a5d919050565b816006036115df57507f11e09b59022165c4f108066c3459d2ee56797dd6ab52e666e119502bc5d1acb3919050565b8160070361160e57507f2c66b1c3a82515b03697cfb307eafd8fb8b654bd97b0e70efd70eab5827fc50b919050565b8160080361163d57507f28bb1d2a364755b8c92fc8be1ecafa3f854e1df343e35c9f84cee7e4d7deabc6919050565b8160090361166c57507f10d09e0cf47554dae640a6bf1535238f378c7353f6866afafd57a4e26629994b919050565b81600a0361169b57507f04688f2886700a52b6f7bdb85beae33f0985a0721b748f02d7600c20bd99e40c919050565b81600b036116ca57507f2355a4c7f033dd56057c23aff0773b86767e55b609260480e94e71fa55720a42919050565b81600c036116f957507f21ba17487fd86205dbb8bd169eef71b7e9f515755536ef7924709aabf51f15b3919050565b81600d0361172857507f10a83b6bb8dff62436b71da044da394f295c8b8b5a3363983b9d88c4b9c7433c919050565b81600e0361175757507f1b1cee8e5b31f145985cda39953a8a12b7393f74b58786a693885e7031ead254919050565b81600f0361178657507f20b23472f405b6772e4f3907790b4b0ef898c9e59f5e72863aa93f0fadfbc190919050565b816010036117b557507f1cb5feb963dcddda940a48c020a4c7d674743d42b5cb7c0259f00ba68119dd42919050565b816011036117e457507f014958a33307215f9f40692cc8716402434465c699bd21134a3489f82b99eccd919050565b8160120361181357507f25fce33397f1f3bd3f01053aad671c6d2ec4257064eab184df62d3e88789f75e919050565b8160130361184257507f01efea8e3492d63e2aa5e6d5197cfac3787f11f5e62e108d1b15e46f7ff16f26919050565b8160140361187157507f22d9e770f091b1bbca424f7f2c6632d1ace845e07d4e2476c859e9e9b0c8f80a919050565b8160150361189f57507e6198587a4191f0778f6f85fbc8cf6cbce1fc472a7c5d28e5448c67e1329632919050565b816016036118ce57507f1aba80eea5bc32d65cf25a3f29695439d4cbdf5d8c7c025b0af0314e4e648c94919050565b816017036118fd57507f243d2267eaed0fdae3d3b6aa8b95c9932a01c332ecfbd73c54736264855620d0919050565b8160180361192c57507f0eb659ebda15c14b6fbbfdb8a091ea85bd319b3860ef2f322d55c6c14e16e9f9919050565b8160190361195b57507f23250e63bebc7d68bcbaccb39874b32b589599aee840fc735a5729b835def2cb919050565b81601a0361198a57507f206c8e66ced7d1a7a602b630aa799f768c38157076c083f7f959671f985c66d5919050565b81601b036119b957507f0ae88d7eff0e5703e3d7c418d807086265ebcb8ffe41e28ed686b944f30a8898919050565b81601c036119e857507f2fba5c4099333dc1878b1975a7df1dbc88679fe95fcb524d4abbaea691053fde919050565b81601d03611a1757507f1e2f5591db978dd165be88b97ab5f950f12fe024a58ef032fd41e21af2c548af919050565b81601e03611a4657507f27c28fd9f8501f9d5f5db87d70964cfbf446f40766fb7fe7fb680fa47e6e2741919050565b60405162461bcd60e51b815260206004820152601f60248201527f4d65726b6c655a65726f733a206c6576656c206f7574206f662072616e6765006044820152606401610fd7565b611a9c848484846001611b37565b611ac457604051635274afe760e01b81526001600160a01b0385166004820152602401610fd7565b50505050565b60405163a9059cbb60e01b60008181526001600160a01b038616600452602485905291602083604481808b5af192506001600051148316611b24578383151615611b17573d6000823e3d81fd5b6000873b113d1516831692505b60405250949350505050565b5414919050565b6040516323b872dd60e01b60008181526001600160a01b038781166004528616602452604485905291602083606481808c5af192506001600051148316611b97578383151615611b8a573d6000823e3d81fd5b6000883b113d1516831692505b60405250600060605295945050505050565b600060208284031215611bbb57600080fd5b5035919050565b60008060408385031215611bd557600080fd5b50508035926020909101359150565b6000806000838503610200811215611bfb57600080fd5b61010080821215611c0b57600080fd5b85945060e060ff1983011215611c2057600080fd5b85019250506101e084013567ffffffffffffffff811115611c4057600080fd5b840160c08187031215611c5257600080fd5b809150509250925092565b60408101818360005b6002811015611c85578151835260209283019290910190600101611c66565b50505092915050565b6000825160005b81811015611caf5760208186018101518583015201611c95565b506000920191825250919050565b600060208284031215611ccf57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600160ff1b8201611d1757611d17611cec565b5060000390565b80356001600160a01b0381168114611d3557600080fd5b919050565b6000808335601e19843603018112611d5157600080fd5b830160208101925035905067ffffffffffffffff811115611d7157600080fd5b803603821315611d8057600080fd5b9250929050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006001600160a01b0380611dc885611d1e565b1660208401526020840135604084015280611de560408601611d1e565b1660608401525060608301356080830152611e036080840184611d3a565b60c060a0850152611e1860e085018284611d87565b915050611e2860a0850185611d3a565b848303601f190160c0860152611e3f838284611d87565b9695505050505050565b634e487b7160e01b600052601260045260246000fd5b600082611e6e57611e6e611e49565b500690565b600060208284031215611e8557600080fd5b611e8e82611d1e565b9392505050565b6101e081016040808784378083018660005b6002811015611ec457838284379183019190830190600101611ea7565b505050808560c08501375061010082018360005b6007811015611ef7578151835260209283019290910190600101611ed8565b50505095945050505050565b600060208284031215611f1557600080fd5b81518015158114611e8e57600080fd5b6000808335601e19843603018112611f3c57600080fd5b83018035915067ffffffffffffffff821115611f5757600080fd5b602001915036819003821315611d8057600080fd5b63ffffffff84168152604060208201526000610595604083018486611d87565b63ffffffff818116838216019080821115611fa957611fa9611cec565b5092915050565b600063ffffffff821680611fc657611fc6611cec565b6000190192915050565b8181036000831280158383131683831282161715611fa957611fa9611cec565b8181038181111561108e5761108e611cec565b8082018082111561108e5761108e611cec565b600063ffffffff8084168061202d5761202d611e49565b9216919091069291505056fe30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000019b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00a2646970667358221220db26b93ad4f9d895fc9bedd60bed36e55cc5a6a6ce49ddb96a892d481e996dc464736f6c6343000818003338600c60003961260f6000f37c010000000000000000000000000000000000000000000000000000000060003504806329a5f2f6149063299e566014176200003757fe5b7f109b7f411ba0e4c9b2b70caf5c36a7b194be7c11ad24378bfedb68592ba8118b6020527f16ed41e13bb9c0c66ae119424fddbcbc9314dc9fdbdeea55d6c64543dc4903e06040527f2b90bba00fca0589f617e7dcbfe82e0df706ab640ceb247b791a93b74e36736d6060527f2969f27eed31a480b9c36c764379dbca2cc8fdd1415c3dded62940bcde0bd7716080527f2e2419f9ec02ec394c9871c832963dc1b89d743c8c7b964029b2311687b1fe2360a0527f101071f0032379b697315876690f053d148d4e109f5fb065c8aacc55a0f89bfa60c0527f143021ec686a3f330d5f9e654638065ce6cd79e28c5b3753326244ee65a1b1a760e0527f176cc029695ad02582a70eff08a6fd99d057e12e58e7d7b6b16cdfabc8ee2911610100527f19a3fc0a56702bf417ba7fee3802593fa644470307043f7773279cd71d25d5e0610120527f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000016024356004356000837f0ee9a592ba9a9518d05986d656f40c2114c4993c11bb29938d21d47304cd8e6e82089050837f00f1445235f2148c5986587169fc1bcd887b08d4d00868df5696fff40956e86483089150837f08dff3487e8ac99e1f29a058d0fa80b930c728730b7ab36ce879f3890ecf73f58408925083818180828009800909905083828180828009800909915083838180828009800909925062000249600052620025ba565b837f2f27be690fdaee46c3ce28f7532b13c856c35342c84bda6e20966310fadc01d082089050837f2b2ae1acf68b7b8d2416bebf3d4f6234b763fe04b8043ee48b8327bebca16cf283089150837f0319d062072bef7ecca5eac06f97d4d55952c175ab6b03eae64b44c7dbf11cfa84089250838181808280098009099050838281808280098009099150838381808280098009099250620002ec600052620025ba565b837f28813dcaebaeaa828a376df87af4a63bc8b7bf27ad49c6298ef7b387bf28526d82089050837f2727673b2ccbc903f181bf38e1c1d40d2033865200c352bc150928adddf9cb7883089150837f234ec45ca27727c2e74abd2b2a1494cd6efbd43e340587d6b8fb9e31e65cc632840892508381818082800980090990508382818082800980090991508383818082800980090992506200038f600052620025ba565b837f15b52534031ae18f7f862cb2cf7cf760ab10a8150a337b1ccd99ff6e8797d42882089050837f0dc8fad6d9e4b35f5ed9a3d186b79ce38e0e8a8d1b58b132d701d4eecf68d1f683089150837f1bcd95ffc211fbca600f705fad3fb567ea4eb378f62e1fec97805518a47e4d9c8408925083818180828009800909905083828180828009800909915083838180828009800909925062000432600052620025ba565b837f10520b0ab721cadfe9eff81b016fc34dc76da36c2578937817cb978d069de55982089050837f1f6d48149b8e7f7d9b257d8ed5fbbaf42932498075fed0ace88a9eb81f5627f683089150837f1d9655f652309014d29e00ef35a2089bfff8dc1c816f0dc9ca34bdb5460c870584089250838181808280098009099050620004bd600052620025ba565b837f04df5a56ff95bcafb051f7b1cd43a99ba731ff67e47032058fe3d4185697cc7d82089050837f0672d995f8fff640151b3d290cedaf148690a10a8c8424a7f6ec282b6e4be82883089150837f099952b414884454b21200d7ffafdd5f0c9a9dcc06f2708e9fc1d8209b5c75b98408925083818180828009800909905062000548600052620025ba565b837f052cba2255dfd00c7c483143ba8d469448e43586a9b4cd9183fd0e843a6b9fa682089050837f0b8badee690adb8eb0bd74712b7999af82de55707251ad7716077cb93c464ddc83089150837f119b1590f13307af5a1ee651020c07c749c15d60683a8050b963d0a8e4b2bdd184089250838181808280098009099050620005d3600052620025ba565b837f03150b7cd6d5d17b2529d36be0f67b832c4acfc884ef4ee5ce15be0bfb4a8d0982089050837f2cc6182c5e14546e3cf1951f173912355374efb83d80898abe69cb317c9ea56583089150837f005032551e6378c450cfe129a404b3764218cadedac14e2b92d2cd73111bf0f9840892508381818082800980090990506200065e600052620025ba565b837f233237e3289baa34bb147e972ebcb9516469c399fcc069fb88f9da2cc28276b582089050837f05c8f4f4ebd4a6e3c980d31674bfbe6323037f21b34ae5a4e80c2d4c24d6028083089150837f0a7b1db13042d396ba05d818a319f25252bcf35ef3aeed91ee1f09b2590fc65b84089250838181808280098009099050620006e9600052620025ba565b837f2a73b71f9b210cf5b14296572c9d32dbf156e2b086ff47dc5df542365a404ec082089050837f1ac9b0417abcc9a1935107e9ffc91dc3ec18f2c4dbe7f22976a760bb5c50c46083089150837f12c0339ae08374823fabb076707ef479269f3e4d6cb104349015ee046dc93fc08408925083818180828009800909905062000774600052620025ba565b837f0b7475b102a165ad7f5b18db4e1e704f52900aa3253baac68246682e56e9a28e82089050837f037c2849e191ca3edb1c5e49f6e8b8917c843e379366f2ea32ab3aa88d7f844883089150837f05a6811f8556f014e92674661e217e9bd5206c5c93a07dc145fdb176a716346f84089250838181808280098009099050620007ff600052620025ba565b837f29a795e7d98028946e947b75d54e9f044076e87a7b2883b47b675ef5f38bd66e82089050837f20439a0c84b322eb45a3857afc18f5826e8c7382c8a1585c507be199981fd22f83089150837f2e0ba8d94d9ecf4a94ec2050c7371ff1bb50f27799a84b6d4a2a6f2a0982c887840892508381818082800980090990506200088a600052620025ba565b837f143fd115ce08fb27ca38eb7cce822b4517822cd2109048d2e6d0ddcca17d71c882089050837f0c64cbecb1c734b857968dbbdcf813cdf8611659323dbcbfc84323623be9caf183089150837f028a305847c683f646fca925c163ff5ae74f348d62c2b670f1426cef9403da538408925083818180828009800909905062000915600052620025ba565b837f2e4ef510ff0b6fda5fa940ab4c4380f26a6bcb64d89427b824d6755b5db9e30c82089050837f0081c95bc43384e663d79270c956ce3b8925b4f6d033b078b96384f50579400e83089150837f2ed5f0c91cbd9749187e2fade687e05ee2491b349c039a0bba8a9f4023a0bb3884089250838181808280098009099050620009a0600052620025ba565b837f30509991f88da3504bbf374ed5aae2f03448a22c76234c8c990f01f33a73520682089050837f1c3f20fd55409a53221b7c4d49a356b9f0a1119fb2067b41a7529094424ec6ad83089150837f10b4e7f3ab5df003049514459b6e18eec46bb2213e8e131e170887b47ddcb96c8408925083818180828009800909905062000a2b600052620025ba565b837f2a1982979c3ff7f43ddd543d891c2abddd80f804c077d775039aa3502e43adef82089050837f1c74ee64f15e1db6feddbead56d6d55dba431ebc396c9af95cad0f1315bd5c9183089150837f07533ec850ba7f98eab9303cace01b4b9e4f2e8b82708cfa9c2fe45a0ae146a08408925083818180828009800909905062000ab6600052620025ba565b837f21576b438e500449a151e4eeaf17b154285c68f42d42c1808a11abf3764c075082089050837f2f17c0559b8fe79608ad5ca193d62f10bce8384c815f0906743d6930836d4a9e83089150837f2d477e3862d07708a79e8aae946170bc9775a4201318474ae665b0b1b7e2730e8408925083818180828009800909905062000b41600052620025ba565b837f162f5243967064c390e095577984f291afba2266c38f5abcd89be0f5b2747eab82089050837f2b4cb233ede9ba48264ecd2c8ae50d1ad7a8596a87f29f8a7777a7009239331183089150837f2c8fbcb2dd8573dc1dbaf8f4622854776db2eece6d85c4cf4254e7c35e03b07a8408925083818180828009800909905062000bcc600052620025ba565b837f1d6f347725e4816af2ff453f0cd56b199e1b61e9f601e9ade5e88db870949da982089050837f204b0c397f4ebe71ebc2d8b3df5b913df9e6ac02b68d31324cd49af5c456552983089150837f0c4cb9dc3c4fd8174f1149b3c63c3c2f9ecb827cd7dc25534ff8fb75bc79c5028408925083818180828009800909905062000c57600052620025ba565b837f174ad61a1448c899a25416474f4930301e5c49475279e0639a616ddc45bc7b5482089050837f1a96177bcf4d8d89f759df4ec2f3cde2eaaa28c177cc0fa13a9816d49a38d2ef83089150837f066d04b24331d71cd0ef8054bc60c4ff05202c126a233c1a8242ace360b8a30a8408925083818180828009800909905062000ce2600052620025ba565b837f2a4c4fc6ec0b0cf52195782871c6dd3b381cc65f72e02ad527037a62aa1bd80482089050837f13ab2d136ccf37d447e9f2e14a7cedc95e727f8446f6d9d7e55afc01219fd64983089150837f1121552fca26061619d24d843dc82769c1b04fcec26f55194c2e3e869acc6a9a8408925083818180828009800909905062000d6d600052620025ba565b837f00ef653322b13d6c889bc81715c37d77a6cd267d595c4a8909a5546c7c97cff182089050837f0e25483e45a665208b261d8ba74051e6400c776d652595d9845aca35d8a397d383089150837f29f536dcb9dd7682245264659e15d88e395ac3d4dde92d8c46448db979eeba898408925083818180828009800909905062000df8600052620025ba565b837f2a56ef9f2c53febadfda33575dbdbd885a124e2780bbea170e456baace0fa5be82089050837f1c8361c78eb5cf5decfb7a2d17b5c409f2ae2999a46762e8ee416240a8cb9af183089150837f151aff5f38b20a0fc0473089aaf0206b83e8e68a764507bfd3d0ab4be74319c58408925083818180828009800909905062000e83600052620025ba565b837f04c6187e41ed881dc1b239c88f7f9d43a9f52fc8c8b6cdd1e76e47615b51f10082089050837f13b37bd80f4d27fb10d84331f6fb6d534b81c61ed15776449e801b7ddc9c296783089150837f01a5c536273c2d9df578bfbd32c17b7a2ce3664c2a52032c9321ceb1c4e8a8e48408925083818180828009800909905062000f0e600052620025ba565b837f2ab3561834ca73835ad05f5d7acb950b4a9a2c666b9726da832239065b7c3b0282089050837f1d4d8ec291e720db200fe6d686c0d613acaf6af4e95d3bf69f7ed516a597b64683089150837f041294d2cc484d228f5784fe7919fd2bb925351240a04b711514c9c80b65af1d8408925083818180828009800909905062000f99600052620025ba565b837f154ac98e01708c611c4fa715991f004898f57939d126e392042971dd90e81fc682089050837f0b339d8acca7d4f83eedd84093aef51050b3684c88f8b0b04524563bc6ea4da483089150837f0955e49e6610c94254a4f84cfbab344598f0e71eaff4a7dd81ed95b50839c82e8408925083818180828009800909905062001024600052620025ba565b837f06746a6156eba54426b9e22206f15abca9a6f41e6f535c6f3525401ea065462682089050837f0f18f5a0ecd1423c496f3820c549c27838e5790e2bd0a196ac917c7ff32077fb83089150837f04f6eeca1751f7308ac59eff5beb261e4bb563583ede7bc92a738223d6f76e1384089250838181808280098009099050620010af600052620025ba565b837f2b56973364c4c4f5c1a3ec4da3cdce038811eb116fb3e45bc1768d26fc0b375882089050837f123769dd49d5b054dcd76b89804b1bcb8e1392b385716a5d83feb65d437f29ef83089150837f2147b424fc48c80a88ee52b91169aacea989f6446471150994257b2fb01c63e9840892508381818082800980090990506200113a600052620025ba565b837f0fdc1f58548b85701a6c5505ea332a29647e6f34ad4243c2ea54ad897cebe54d82089050837f12373a8251fea004df68abcf0f7786d4bceff28c5dbbe0c3944f685cc0a0b1f283089150837f21e4f4ea5f35f85bad7ea52ff742c9e8a642756b6af44203dd8a1f35c1a9003584089250838181808280098009099050620011c5600052620025ba565b837f16243916d69d2ca3dfb4722224d4c462b57366492f45e90d8a81934f1bc3b14782089050837f1efbe46dd7a578b4f66f9adbc88b4378abc21566e1a0453ca13a4159cac04ac283089150837f07ea5e8537cf5dd08886020e23a7f387d468d5525be66f853b672cc96a88969a8408925083818180828009800909905062001250600052620025ba565b837f05a8c4f9968b8aa3b7b478a30f9a5b63650f19a75e7ce11ca9fe16c0b76c00bc82089050837f20f057712cc21654fbfe59bd345e8dac3f7818c701b9c7882d9d57b72a32e83f83089150837f04a12ededa9dfd689672f8c67fee31636dcd8e88d01d49019bd90b33eb33db6984089250838181808280098009099050620012db600052620025ba565b837f27e88d8c15f37dcee44f1e5425a51decbd136ce5091a6767e49ec9544ccd101a82089050837f2feed17b84285ed9b8a5c8c5e95a41f66e096619a7703223176c41ee433de4d183089150837f1ed7cc76edf45c7c404241420f729cf394e5942911312a0d6972b8bd53aff2b88408925083818180828009800909905062001366600052620025ba565b837f15742e99b9bfa323157ff8c586f5660eac6783476144cdcadf2874be45466b1a82089050837f1aac285387f65e82c895fc6887ddf40577107454c6ec0317284f033f27d0c78583089150837f25851c3c845d4790f9ddadbdb6057357832e2e7a49775f71ec75a96554d67c7784089250838181808280098009099050620013f1600052620025ba565b837f15a5821565cc2ec2ce78457db197edf353b7ebba2c5523370ddccc3d9f146a6782089050837f2411d57a4813b9980efa7e31a1db5966dcf64f36044277502f15485f28c7172783089150837f002e6f8d6520cd4713e335b8c0b6d2e647e9a98e12f4cd2558828b5ef6cb4c9b840892508381818082800980090990506200147c600052620025ba565b837f2ff7bc8f4380cde997da00b616b0fcd1af8f0e91e2fe1ed7398834609e0315d282089050837f00b9831b948525595ee02724471bcd182e9521f6b7bb68f1e93be4febb0d3cbe83089150837f0a2f53768b8ebf6a86913b0e57c04e011ca408648a4743a87d77adbf0c9c35128408925083818180828009800909905062001507600052620025ba565b837f00248156142fd0373a479f91ff239e960f599ff7e94be69b7f2a290305e1198d82089050837f171d5620b87bfb1328cf8c02ab3f0c9a397196aa6a542c2350eb512a2b2bcda983089150837f170a4f55536f7dc970087c7c10d6fad760c952172dd54dd99d1045e4ec34a8088408925083818180828009800909905062001592600052620025ba565b837f29aba33f799fe66c2ef3134aea04336ecc37e38c1cd211ba482eca17e2dbfae182089050837f1e9bc179a4fdd758fdd1bb1945088d47e70d114a03f6a0e8b5ba650369e6497383089150837f1dd269799b660fad58f7f4892dfb0b5afeaad869a9c4b44f9c9e1c43bdaf8f09840892508381818082800980090990506200161d600052620025ba565b837f22cdbc8b70117ad1401181d02e15459e7ccd426fe869c7c95d1dd2cb0f24af3882089050837f0ef042e454771c533a9f57a55c503fcefd3150f52ed94a7cd5ba93b9c7dacefd83089150837f11609e06ad6c8fe2f287f3036037e8851318e8b08a0359a03b304ffca62e828484089250838181808280098009099050620016a8600052620025ba565b837f1166d9e554616dba9e753eea427c17b7fecd58c076dfe42708b08f5b783aa9af82089050837f2de52989431a859593413026354413db177fbf4cd2ac0b56f855a888357ee46683089150837f3006eb4ffc7a85819a6da492f3a8ac1df51aee5b17b8e89d74bf01cf5f71e9ad8408925083818180828009800909905062001733600052620025ba565b837f2af41fbb61ba8a80fdcf6fff9e3f6f422993fe8f0a4639f962344c822514508682089050837f119e684de476155fe5a6b41a8ebc85db8718ab27889e85e781b214bace4827c383089150837f1835b786e2e8925e188bea59ae363537b51248c23828f047cff784b97b3fd80084089250838181808280098009099050620017be600052620025ba565b837f28201a34c594dfa34d794996c6433a20d152bac2a7905c926c40e285ab32eeb682089050837f083efd7a27d1751094e80fefaf78b000864c82eb571187724a761f88c22cc4e783089150837f0b6f88a3577199526158e61ceea27be811c16df7774dd8519e079564f61fd13b8408925083818180828009800909905062001849600052620025ba565b837f0ec868e6d15e51d9644f66e1d6471a94589511ca00d29e1014390e6ee4254f5b82089050837f2af33e3f866771271ac0c9b3ed2e1142ecd3e74b939cd40d00d937ab84c9859183089150837f0b520211f904b5e7d09b5d961c6ace7734568c547dd6858b364ce5e47951f17884089250838181808280098009099050620018d4600052620025ba565b837f0b2d722d0919a1aad8db58f10062a92ea0c56ac4270e822cca228620188a1d4082089050837f1f790d4d7f8cf094d980ceb37c2453e957b54a9991ca38bbe0061d1ed6e562d483089150837f0171eb95dfbf7d1eaea97cd385f780150885c16235a2a6a8da92ceb01e504233840892508381818082800980090990506200195f600052620025ba565b837f0c2d0e3b5fd57549329bf6885da66b9b790b40defd2c8650762305381b16887382089050837f1162fb28689c27154e5a8228b4e72b377cbcafa589e283c35d3803054407a18d83089150837f2f1459b65dee441b64ad386a91e8310f282c5a92a89e19921623ef8249711bc084089250838181808280098009099050620019ea600052620025ba565b837f1e6ff3216b688c3d996d74367d5cd4c1bc489d46754eb712c243f70d1b53cfbb82089050837f01ca8be73832b8d0681487d27d157802d741a6f36cdc2a0576881f932647887583089150837f1f7735706ffe9fc586f976d5bdf223dc680286080b10cea00b9b5de315f9650e8408925083818180828009800909905062001a75600052620025ba565b837f2522b60f4ea3307640a0c2dce041fba921ac10a3d5f096ef4745ca838285f01982089050837f23f0bee001b1029d5255075ddc957f833418cad4f52b6c3f8ce16c235572575b83089150837f2bc1ae8b8ddbb81fcaac2d44555ed5685d142633e9df905f66d9401093082d598408925083818180828009800909905062001b00600052620025ba565b837f0f9406b8296564a37304507b8dba3ed162371273a07b1fc98011fcd6ad72205f82089050837f2360a8eb0cc7defa67b72998de90714e17e75b174a52ee4acb126c8cd995f0a883089150837f15871a5cddead976804c803cbaef255eb4815a5e96df8b006dcbbc2767f889488408925083818180828009800909905062001b8b600052620025ba565b837f193a56766998ee9e0a8652dd2f3b1da0362f4f54f72379544f957ccdeefb420f82089050837f2a394a43934f86982f9be56ff4fab1703b2e63c8ad334834e4309805e777ae0f83089150837f1859954cfeb8695f3e8b635dcb345192892cd11223443ba7b4166e8876c0d1428408925083818180828009800909905062001c16600052620025ba565b837f04e1181763050e58013444dbcb99f1902b11bc25d90bbdca408d3819f4fed32b82089050837f0fdb253dee83869d40c335ea64de8c5bb10eb82db08b5e8b1f5e5552bfd05f2383089150837f058cbe8a9a5027bdaa4efb623adead6275f08686f1c08984a9d7c5bae9b4f1c08408925083818180828009800909905062001ca1600052620025ba565b837f1382edce9971e186497eadb1aeb1f52b23b4b83bef023ab0d15228b4cceca59a82089050837f03464990f045c6ee0819ca51fd11b0be7f61b8eb99f14b77e1e6634601d9e8b583089150837f23f7bfc8720dc296fff33b41f98ff83c6fcab4605db2eb5aaa5bc137aeb70a588408925083818180828009800909905062001d2c600052620025ba565b837f0a59a158e3eec2117e6e94e7f0e9decf18c3ffd5e1531a9219636158bbaf62f282089050837f06ec54c80381c052b58bf23b312ffd3ce2c4eba065420af8f4c23ed0075fd07b83089150837f118872dc832e0eb5476b56648e867ec8b09340f7a7bcb1b4962f0ff9ed1f9d018408925083818180828009800909905062001db7600052620025ba565b837f13d69fa127d834165ad5c7cba7ad59ed52e0b0f0e42d7fea95e1906b520921b182089050837f169a177f63ea681270b1c6877a73d21bde143942fb71dc55fd8a49f19f10c77b83089150837f04ef51591c6ead97ef42f287adce40d93abeb032b922f66ffb7e9a5a7450544d8408925083818180828009800909905062001e42600052620025ba565b837f256e175a1dc079390ecd7ca703fb2e3b19ec61805d4f03ced5f45ee6dd0f69ec82089050837f30102d28636abd5fe5f2af412ff6004f75cc360d3205dd2da002813d3e2ceeb283089150837f10998e42dfcd3bbf1c0714bc73eb1bf40443a3fa99bef4a31fd31be182fcc7928408925083818180828009800909905062001ecd600052620025ba565b837f193edd8e9fcf3d7625fa7d24b598a1d89f3362eaf4d582efecad76f879e3686082089050837f18168afd34f2d915d0368ce80b7b3347d1c7a561ce611425f2664d7aa51f0b5d83089150837f29383c01ebd3b6ab0c017656ebe658b6a328ec77bc33626e29e2e95b33ea61118408925083818180828009800909905062001f58600052620025ba565b837f10646d2f2603de39a1f4ae5e7771a64a702db6e86fb76ab600bf573f9010c71182089050837f0beb5e07d1b27145f575f1395a55bf132f90c25b40da7b3864d0242dcb1117fb83089150837f16d685252078c133dc0d3ecad62b5c8830f95bb2e54b59abdffbf018d96fa3368408925083818180828009800909905062001fe3600052620025ba565b837f0a6abd1d833938f33c74154e0404b4b40a555bbbec21ddfafd672dd62047f01a82089050837f1a679f5d36eb7b5c8ea12a4c2dedc8feb12dffeec450317270a6f19b34cf186083089150837f0980fb233bd456c23974d50e0ebfde4726a423eada4e8f6ffbc7592e3f1b93d6840892508381818082800980090990506200206e600052620025ba565b837f161b42232e61b84cbf1810af93a38fc0cece3d5628c9282003ebacb5c312c72b82089050837f0ada10a90c7f0520950f7d47a60d5e6a493f09787f1564e5d09203db47de1a0b83089150837f1a730d372310ba82320345a29ac4238ed3f07a8a2b4e121bb50ddb9af407f45184089250838181808280098009099050620020f9600052620025ba565b837f2c8120f268ef054f817064c369dda7ea908377feaba5c4dffbda10ef58e8c55682089050837f1c7c8824f758753fa57c00789c684217b930e95313bcb73e6e7b8649a4968f7083089150837f2cd9ed31f5f8691c8e39e4077a74faa0f400ad8b491eb3f7b47b27fa3fd1cf778408925083818180828009800909905062002184600052620025ba565b837f23ff4f9d46813457cf60d92f57618399a5e022ac321ca550854ae23918a22eea82089050837f09945a5d147a4f66ceece6405dddd9d0af5a2c5103529407dff1ea58f180426d83089150837f188d9c528025d4c2b67660c6b771b90f7c7da6eaa29d3f268a6dd223ec6fc630840892508381818082800980090990506200220f600052620025ba565b837f3050e37996596b7f81f68311431d8734dba7d926d3633595e0c0d8ddf4f0f47f82089050837f15af1169396830a91600ca8102c35c426ceae5461e3f95d89d829518d30afd7883089150837f1da6d09885432ea9a06d9f37f873d985dae933e351466b2904284da3320d8acc840892508381818082800980090990506200229a600052620025ba565b837f2796ea90d269af29f5f8acf33921124e4e4fad3dbe658945e546ee411ddaa9cb82089050837f202d7dd1da0f6b4b0325c8b3307742f01e15612ec8e9304a7cb0319e01d32d6083089150837f096d6790d05bb759156a952ba263d672a2d7f9c788f4c831a29dace4c0f8be5f8408925083818180828009800909905062002325600052620025ba565b837f054efa1f65b0fce283808965275d877b438da23ce5b13e1963798cb1447d25a482089050837f1b162f83d917e93edb3308c29802deb9d8aa690113b2e14864ccf6e18e4165f183089150837f21e5241e12564dd6fd9f1cdd2a0de39eedfefc1466cc568ec5ceb745a0506edc84089250838181808280098009099050838281808280098009099150838381808280098009099250620023c8600052620025ba565b837f1cfb5662e8cf5ac9226a80ee17b36abecb73ab5f87e161927b4349e10e4bdf0882089050837f0f21177e302a771bbae6d8d1ecb373b62c99af346220ac0129c53f666eb2410083089150837f1671522374606992affb0dd7f71b12bec4236aede6290546bcef7e1f515c2320840892508381818082800980090990508382818082800980090991508383818082800980090992506200246b600052620025ba565b837f0fa3ec5b9488259c2eb4cf24501bfad9be2ec9e42c5cc8ccd419d2a692cad87082089050837f193c0e04e0bd298357cb266c1506080ed36edce85c648cc085e8c57b1ab54bba83089150837f102adf8ef74735a27e9128306dcbc3c99f6f7291cd406578ce14ea2adaba68f8840892508381818082800980090990508382818082800980090991508383818082800980090992506200250e600052620025ba565b837f0fe0af7858e49859e2a54d6f1ad945b1316aa24bfbdd23ae40a6d0cb70c3eab182089050837f216f6717bbc7dedb08536a2220843f4e2da5f1daa9ebdefde8a5ea7344798d2283089150837f1da55cc900f0d21f4a3e694391918a1b3c23b2ac773c6b3ef88e2e422832516184089250838181808280098009099050838281808280098009099150838381808280098009099250620025b1600052620025ba565b60005260206000f35b8360205182098460405184098591088460605185098591088460805183098560a05185098691088560c05186098691088560e0518409866101005186098791088661012051870987910894509250905060005156000000000000000000000000688d8bf5237a42432ee6b4092e15e73c6bcbb80a000000000000000000000000c3e342768f7d68b0c501cb2cab1ade1a7cd57387

Deployed ByteCode

0x60806040526004361061012e5760003560e01c80637fe24ffe116100ab578063cd87a3b41161006f578063cd87a3b414610366578063e2adba8c1461037b578063ed33639f14610390578063f178e47c146103c4578063fc0c546a146103e4578063fc7e9c6f1461041857600080fd5b80637fe24ffe146102e75780638dbff679146102ff57806390eeb02b14610314578063ba70f75714610331578063c2b40ae41461034657600080fd5b8063516b9ff0116100f2578063516b9ff014610248578063553fe4561461025e5780636d9833e314610280578063773c5049146102a057806379c61609146102d257600080fd5b8063082febf01461013a5780632997e86b1461016c5780632b7ac3f3146101ac57806338bf282e146101f8578063414a37ba1461022657600080fd5b3661013557005b600080fd5b34801561014657600080fd5b50610152634000000081565b60405163ffffffff90911681526020015b60405180910390f35b34801561017857600080fd5b5061019c610187366004611ba9565b603e6020526000908152604090205460ff1681565b6040519015158152602001610163565b3480156101b857600080fd5b506101e07f000000000000000000000000c3e342768f7d68b0c501cb2cab1ade1a7cd5738781565b6040516001600160a01b039091168152602001610163565b34801561020457600080fd5b50610218610213366004611bc2565b61043d565b604051908152602001610163565b34801561023257600080fd5b5061021860008051602061203a83398151915281565b34801561025457600080fd5b50610218603d5481565b34801561026a57600080fd5b5061027e610279366004611be4565b61059e565b005b34801561028c57600080fd5b5061019c61029b366004611ba9565b610bb6565b3480156102ac57600080fd5b506102b5610c3d565b604080519384526020840192909252151590820152606001610163565b3480156102de57600080fd5b50610218610cde565b3480156102f357600080fd5b50610218600160801b81565b34801561030b57600080fd5b5061027e610f19565b34801561032057600080fd5b50603c546101529063ffffffff1681565b34801561033d57600080fd5b50610218610fe3565b34801561035257600080fd5b50610218610361366004611ba9565b611008565b34801561037257600080fd5b50610152601e81565b34801561038757600080fd5b50610218601e81565b34801561039c57600080fd5b506101e07f0000000000000000000000009433b73ae6e68201d3080d1cfa0c659c3db4207281565b3480156103d057600080fd5b506102186103df366004611ba9565b61101f565b3480156103f057600080fd5b506101e07f000000000000000000000000688d8bf5237a42432ee6b4092e15e73c6bcbb80a81565b34801561042457600080fd5b50603c5461015290640100000000900463ffffffff1681565b600060008051602061203a8339815191528310158061046a575060008051602061203a8339815191528210155b1561048857604051630474be3f60e51b815260040160405180910390fd5b6000807f0000000000000000000000009433b73ae6e68201d3080d1cfa0c659c3db420726001600160a01b03166040518060400160405280878152602001868152506040516024016104da9190611c5d565b60408051601f198184030181529181526020820180516001600160e01b031663014cf2b360e51b1790525161050f9190611c8e565b600060405180830381855afa9150503d806000811461054a576040519150601f19603f3d011682016040523d82523d6000602084013e61054f565b606091505b509150915081158061056357508051602014155b1561058157604051631b690d2360e21b815260040160405180910390fd5b808060200190518101906105959190611cbd565b95945050505050565b6105a661102f565b6105b08235610bb6565b6105cd57604051634629008b60e11b815260040160405180910390fd5b60808201356060830135036105f55760405163e1200f1d60e01b815260040160405180910390fd5b60608201356000908152603e602052604090205460ff168061062a575060808201356000908152603e602052604090205460ff165b156106485760405163d4d9b0fd60e01b815260040160405180910390fd5b600160801b8160200135138061066d5750610666600160801b611d02565b8160200135125b1561068b57604051630625040160e01b815260040160405180910390fd5b600160801b816060013511156106b457604051630625040160e01b815260040160405180910390fd5b60008051602061203a833981519152816040516020016106d49190611db0565b6040516020818303038152906040528051906020012060001c6106f79190611e5f565b60408301351461071a57604051631d16f63760e01b815260040160405180910390fd5b61072c8160200135826060013561104b565b82602001351461074f576040516357df23ed60e11b815260040160405180910390fd5b600081602001351280156107965750600061076d6020830183611e73565b6001600160a01b0316148061079657503061078b6020830183611e73565b6001600160a01b0316145b156107b4576040516333d1661360e11b815260040160405180910390fd5b60008160600135118015610801575060006107d56060830160408401611e73565b6001600160a01b031614806108015750306107f66060830160408401611e73565b6001600160a01b0316145b1561081f5760405163044d2a2f60e51b815260040160405180910390fd5b6040805160e08101825283358152602080850135908201528382013581830152606080850135908201526080808501359082015260a0808501359082015260c08085013581830152825163c894e75760e01b81527f000000000000000000000000c3e342768f7d68b0c501cb2cab1ade1a7cd573876001600160a01b03169363c894e757936108bb938993928401929084019190600401611e95565b602060405180830381865afa1580156108d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108fc9190611f03565b610919576040516309bde33960e01b815260040160405180910390fd5b6060828101356000908152603e602090815260408083208054600160ff19918216811790925560808801358552919093208054909116909217909155610966919083013590830135611094565b600061097a60a084013560c0850135611139565b6040519091506060840135907f5e58f77bbf94b46d8d896e29753e4458c6e59b48581e20ed58c9558e96f297ce90600090a26040516080840135907f5e58f77bbf94b46d8d896e29753e4458c6e59b48581e20ed58c9558e96f297ce90600090a260a08301357ff3843eddcfcac65d12d9f26261dab50671fdbf5dc44441816c8bbdace2411afd82610a0f6080860186611f25565b604051610a1e93929190611f6c565b60405180910390a260c08301357ff3843eddcfcac65d12d9f26261dab50671fdbf5dc44441816c8bbdace2411afd610a57836001611f8c565b610a6460a0860186611f25565b604051610a7393929190611f6c565b60405180910390a2603d5460408051602080860135825260608087013591830191909152918101929092528435917f37fcfb23f6b56f47d774f05bd4adc9347546fd71de34212b0846921ab9fc7714910160405180910390a2600082602001351315610aec57610ae73383602001356112ae565b610b47565b600082602001351215610b4757610b47610b096020840184611e73565b610b166020850135611d02565b6001600160a01b037f000000000000000000000000688d8bf5237a42432ee6b4092e15e73c6bcbb80a169190611424565b606082013515610b9957610b99610b646060840160408501611e73565b6001600160a01b037f000000000000000000000000688d8bf5237a42432ee6b4092e15e73c6bcbb80a16906060850135611424565b50610bb1600160008051602061205a83398151915255565b505050565b600081610bc557506000919050565b603c5463ffffffff1660005b601e63ffffffff82161015610c335783601e8363ffffffff16601e8110610bfa57610bfa611cd6565b015403610c0b575060019392505050565b8163ffffffff16600003610c1e57601e91505b81610c2881611fb0565b925050600101610bd1565b5060009392505050565b6040516370a0823160e01b8152306004820152600090819081906001600160a01b037f000000000000000000000000688d8bf5237a42432ee6b4092e15e73c6bcbb80a16906370a0823190602401602060405180830381865afa158015610ca8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ccc9190611cbd565b9250603d549150818310159050909192565b6000610ce861102f565b60405163402914f560e01b81523060048201527f000000000000000000000000688d8bf5237a42432ee6b4092e15e73c6bcbb80a906000906001600160a01b0383169063402914f590602401602060405180830381865afa158015610d51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d759190611cbd565b1115610dcf57806001600160a01b0316634e71d92d6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610db657600080fd5b505af1158015610dca573d6000803e3d6000fd5b505050505b47915081600003610df357604051630d44987f60e21b815260040160405180910390fd5b806001600160a01b0316636ade07b06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e559190611cbd565b600003610e755760405163a16645af60e01b815260040160405180910390fd5b60405182815233907f0838e56676bf8bd7f21a12ea640a4b277041fc47809b60bb7ff254af9142101f9060200160405180910390a2806001600160a01b031663e4fc6b6d836040518263ffffffff1660e01b81526004016000604051808303818588803b158015610ee557600080fd5b505af1158015610ef9573d6000803e3d6000fd5b505050505050610f16600160008051602061205a83398151915255565b90565b6040516370a0823160e01b81523060048201526000907f000000000000000000000000688d8bf5237a42432ee6b4092e15e73c6bcbb80a6001600160a01b0316906370a0823190602401602060405180830381865afa158015610f80573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa49190611cbd565b9050603d54811015610fe057603d546040516301f2c89f60e41b8152610fd7918391600401918252602082015260400190565b60405180910390fd5b50565b603c54600090601e9063ffffffff1681811061100157611001611cd6565b0154905090565b601e81601e811061101857600080fd5b0154905081565b600081601e811061101857600080fd5b611037611459565b600260008051602061205a83398151915255565b6000806110588385611fd0565b90506000811261106957905061108e565b61107281611d02565b61108a9060008051602061203a833981519152611ff0565b9150505b92915050565b60008213156110e257600082603d546110ad9190612003565b9050818110156110d05760405163beecf55d60e01b815260040160405180910390fd5b6110da8282611ff0565b603d55505050565b6000816110ee84611d02565b6110f89190612003565b905080603d54101561111d5760405163beecf55d60e01b815260040160405180910390fd5b80603d600082825461112f9190611ff0565b9091555050505050565b603c54600090640100000000900463ffffffff16634000000061115d826002611f8c565b63ffffffff16111561118257604051631691e59f60e31b815260040160405180910390fd5b600061118e858561043d565b9050600182811c637fffffff169060009081905b601e81101561121857600184166000036111df578492506111c281611494565b915084600082601e81106111d8576111d8611cd6565b01556111fa565b600081601e81106111f2576111f2611cd6565b015492508491505b611204838361043d565b9450637fffffff600194851c1693016111a2565b50603c54600090601e906112339063ffffffff166001611f8c565b61123d9190612016565b603c805463ffffffff191663ffffffff83169081179091559091508590601e9081811061126c5761126c611cd6565b0155611279866002611f8c565b603c805463ffffffff929092166401000000000267ffffffff0000000019909216919091179055509394505050505092915050565b6040516370a0823160e01b81523060048201526000907f000000000000000000000000688d8bf5237a42432ee6b4092e15e73c6bcbb80a6001600160a01b0316906370a0823190602401602060405180830381865afa158015611315573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113399190611cbd565b90506113706001600160a01b037f000000000000000000000000688d8bf5237a42432ee6b4092e15e73c6bcbb80a16843085611a8e565b6040516370a0823160e01b8152306004820152829082906001600160a01b037f000000000000000000000000688d8bf5237a42432ee6b4092e15e73c6bcbb80a16906370a0823190602401602060405180830381865afa1580156113d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113fc9190611cbd565b6114069190611ff0565b14610bb157604051630e58c3a760e31b815260040160405180910390fd5b6114318383836001611aca565b610bb157604051635274afe760e01b81526001600160a01b0384166004820152602401610fd7565b6114746000600260008051602061205a833981519152611b30565b1561149257604051633ee5aeb560e01b815260040160405180910390fd5b565b6000816000036114c557507f1e7c14b5f0b1b399c711cdc960b2c14844c85743b8b51786d8b7da7b806affc6919050565b816001036114f457507f1468d3a28fc9553ff025d172e3b410bc7ddf929a78f7ea5346a20edeaeee611d919050565b8160020361152357507f0e9322780626822896cb896a3b647d0e4436a3707edfff89953e220914758221919050565b8160030361155257507f2c8ff24c7915abcb794b39b0656ec58bf0bbcc995439c6fbe640a63306e86746919050565b8160040361158157507f0e72770edb4aeee28ef2a0e454792ed302fa8e1ebc86e1be461a23fee5632c0f919050565b816005036115b057507f0cc51259a07f392105d126fcfcc78d45e9f8376bb9f859426d414d3dda020a5d919050565b816006036115df57507f11e09b59022165c4f108066c3459d2ee56797dd6ab52e666e119502bc5d1acb3919050565b8160070361160e57507f2c66b1c3a82515b03697cfb307eafd8fb8b654bd97b0e70efd70eab5827fc50b919050565b8160080361163d57507f28bb1d2a364755b8c92fc8be1ecafa3f854e1df343e35c9f84cee7e4d7deabc6919050565b8160090361166c57507f10d09e0cf47554dae640a6bf1535238f378c7353f6866afafd57a4e26629994b919050565b81600a0361169b57507f04688f2886700a52b6f7bdb85beae33f0985a0721b748f02d7600c20bd99e40c919050565b81600b036116ca57507f2355a4c7f033dd56057c23aff0773b86767e55b609260480e94e71fa55720a42919050565b81600c036116f957507f21ba17487fd86205dbb8bd169eef71b7e9f515755536ef7924709aabf51f15b3919050565b81600d0361172857507f10a83b6bb8dff62436b71da044da394f295c8b8b5a3363983b9d88c4b9c7433c919050565b81600e0361175757507f1b1cee8e5b31f145985cda39953a8a12b7393f74b58786a693885e7031ead254919050565b81600f0361178657507f20b23472f405b6772e4f3907790b4b0ef898c9e59f5e72863aa93f0fadfbc190919050565b816010036117b557507f1cb5feb963dcddda940a48c020a4c7d674743d42b5cb7c0259f00ba68119dd42919050565b816011036117e457507f014958a33307215f9f40692cc8716402434465c699bd21134a3489f82b99eccd919050565b8160120361181357507f25fce33397f1f3bd3f01053aad671c6d2ec4257064eab184df62d3e88789f75e919050565b8160130361184257507f01efea8e3492d63e2aa5e6d5197cfac3787f11f5e62e108d1b15e46f7ff16f26919050565b8160140361187157507f22d9e770f091b1bbca424f7f2c6632d1ace845e07d4e2476c859e9e9b0c8f80a919050565b8160150361189f57507e6198587a4191f0778f6f85fbc8cf6cbce1fc472a7c5d28e5448c67e1329632919050565b816016036118ce57507f1aba80eea5bc32d65cf25a3f29695439d4cbdf5d8c7c025b0af0314e4e648c94919050565b816017036118fd57507f243d2267eaed0fdae3d3b6aa8b95c9932a01c332ecfbd73c54736264855620d0919050565b8160180361192c57507f0eb659ebda15c14b6fbbfdb8a091ea85bd319b3860ef2f322d55c6c14e16e9f9919050565b8160190361195b57507f23250e63bebc7d68bcbaccb39874b32b589599aee840fc735a5729b835def2cb919050565b81601a0361198a57507f206c8e66ced7d1a7a602b630aa799f768c38157076c083f7f959671f985c66d5919050565b81601b036119b957507f0ae88d7eff0e5703e3d7c418d807086265ebcb8ffe41e28ed686b944f30a8898919050565b81601c036119e857507f2fba5c4099333dc1878b1975a7df1dbc88679fe95fcb524d4abbaea691053fde919050565b81601d03611a1757507f1e2f5591db978dd165be88b97ab5f950f12fe024a58ef032fd41e21af2c548af919050565b81601e03611a4657507f27c28fd9f8501f9d5f5db87d70964cfbf446f40766fb7fe7fb680fa47e6e2741919050565b60405162461bcd60e51b815260206004820152601f60248201527f4d65726b6c655a65726f733a206c6576656c206f7574206f662072616e6765006044820152606401610fd7565b611a9c848484846001611b37565b611ac457604051635274afe760e01b81526001600160a01b0385166004820152602401610fd7565b50505050565b60405163a9059cbb60e01b60008181526001600160a01b038616600452602485905291602083604481808b5af192506001600051148316611b24578383151615611b17573d6000823e3d81fd5b6000873b113d1516831692505b60405250949350505050565b5414919050565b6040516323b872dd60e01b60008181526001600160a01b038781166004528616602452604485905291602083606481808c5af192506001600051148316611b97578383151615611b8a573d6000823e3d81fd5b6000883b113d1516831692505b60405250600060605295945050505050565b600060208284031215611bbb57600080fd5b5035919050565b60008060408385031215611bd557600080fd5b50508035926020909101359150565b6000806000838503610200811215611bfb57600080fd5b61010080821215611c0b57600080fd5b85945060e060ff1983011215611c2057600080fd5b85019250506101e084013567ffffffffffffffff811115611c4057600080fd5b840160c08187031215611c5257600080fd5b809150509250925092565b60408101818360005b6002811015611c85578151835260209283019290910190600101611c66565b50505092915050565b6000825160005b81811015611caf5760208186018101518583015201611c95565b506000920191825250919050565b600060208284031215611ccf57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600160ff1b8201611d1757611d17611cec565b5060000390565b80356001600160a01b0381168114611d3557600080fd5b919050565b6000808335601e19843603018112611d5157600080fd5b830160208101925035905067ffffffffffffffff811115611d7157600080fd5b803603821315611d8057600080fd5b9250929050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006001600160a01b0380611dc885611d1e565b1660208401526020840135604084015280611de560408601611d1e565b1660608401525060608301356080830152611e036080840184611d3a565b60c060a0850152611e1860e085018284611d87565b915050611e2860a0850185611d3a565b848303601f190160c0860152611e3f838284611d87565b9695505050505050565b634e487b7160e01b600052601260045260246000fd5b600082611e6e57611e6e611e49565b500690565b600060208284031215611e8557600080fd5b611e8e82611d1e565b9392505050565b6101e081016040808784378083018660005b6002811015611ec457838284379183019190830190600101611ea7565b505050808560c08501375061010082018360005b6007811015611ef7578151835260209283019290910190600101611ed8565b50505095945050505050565b600060208284031215611f1557600080fd5b81518015158114611e8e57600080fd5b6000808335601e19843603018112611f3c57600080fd5b83018035915067ffffffffffffffff821115611f5757600080fd5b602001915036819003821315611d8057600080fd5b63ffffffff84168152604060208201526000610595604083018486611d87565b63ffffffff818116838216019080821115611fa957611fa9611cec565b5092915050565b600063ffffffff821680611fc657611fc6611cec565b6000190192915050565b8181036000831280158383131683831282161715611fa957611fa9611cec565b8181038181111561108e5761108e611cec565b8082018082111561108e5761108e611cec565b600063ffffffff8084168061202d5761202d611e49565b9216919091069291505056fe30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000019b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00a2646970667358221220db26b93ad4f9d895fc9bedd60bed36e55cc5a6a6ce49ddb96a892d481e996dc464736f6c63430008180033