false
true
0

Contract Address Details

0xe525c73D139d7fa2DfA27eb5a6324f3A7c804164

Token
PulpCoin (PULP)
Creator
0x140576–7d7891 at 0xc040fa–17daec
Balance
10,000 PLS ( )
Tokens
Fetching tokens...
Transactions
2,512 Transactions
Transfers
0 Transfers
Gas Used
0
Last Balance Update
25963477
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
PULP




Optimization enabled
true
Compiler version
v0.8.23+commit.f704f362




Optimization runs
1000000
EVM Version
shanghai




Verified at
2024-01-17T21:59:06.733862Z

Constructor Arguments

0x000000000000000000000000165c3410fc91ef562c50559f7d2289febed552d90000000000000000000000007901a3569679aec3501dbec59399f327854a70fe000000000000000000000000fb7103d7011dfa60c18c6961c5a38038d8048fe0000000000000000000000000f66acd0cf50e406196c42a010de46228e4081fed

Arg [0] (address) : 0x165c3410fc91ef562c50559f7d2289febed552d9
Arg [1] (address) : 0x7901a3569679aec3501dbec59399f327854a70fe
Arg [2] (address) : 0xfb7103d7011dfa60c18c6961c5a38038d8048fe0
Arg [3] (address) : 0xf66acd0cf50e406196c42a010de46228e4081fed

              

contracts/PULP.sol

/*
 * @title PulpCoin - Earn reflections in HOA tokens
 *
 * @author Ra Murd <ramurd@pulselorian.com>
 * @notice https://pulselorian.com/
 * @notice https://t.me/ThePulselorian
 * @notice https://twitter.com/ThePulseLorian
 *
 * It's deflationary, burns portion of the fees, reflects rest of the fees in HOA tokens
 * Has ability to be governed by Pulselorian's Elixir token
 *
 *    (   (  (  (     (   (( (   .  (   (    (( (   ((
 *    )\  )\ )\ )\    )\ (\())\   . )\  )\   ))\)\  ))\
 *   ((_)((_)(_)(_)  ((_))(_)(_)   ((_)((_)(((_)_()((_)))
 *   | _ \ | | | |  / __| __| |   / _ \| _ \_ _|   \ \| |
 *   |  _/ |_| | |__\__ \ _|| |__| (_) |   /| || - | .  |
 *   |_|  \___/|____|___/___|____|\___/|_|_\___|_|_|_|\_|
 *
 * Tokenomics (initial fees):
 *          Buy      Sell     Transfer
 * Rfi      1.00%    5.00%    0.00%
 * Burn     0.50%    0.00%    0.00%
 *
 * Dev   0.2% at conversion
 *
 * SPDX-License-Identifier: MIT
 */

pragma solidity 0.8.23;

import "./@openzeppelin/access/AccessControl.sol";
import "./@openzeppelin/access/Ownable.sol";
import "./@openzeppelin/token/ERC20/ERC20.sol";
import "./@openzeppelin/token/ERC20/extensions/ERC20Permit.sol";
import "./@openzeppelin/token/ERC20/utils/SafeERC20.sol";
import "./@uniswap/v2-core/interfaces/IUniswapV2Factory.sol";
import "./@uniswap/v2-core/interfaces/IUniswapV2Pair.sol";
import "./@uniswap/v2-periphery/interfaces/IUniswapV2Router02.sol";
import "./lib/DSMath.sol";
import "./lib/Utils.sol";

contract PULP is DSMath, ERC20, ERC20Permit, Ownable, Utils, AccessControl {
    using SafeERC20 for IERC20;

    enum Fees {
        BuyBurnFee,
        BuyRfiFee,
        DevToll,
        SellBurnFee,
        SellRfiFee
    }

    struct WalletInfo {
        uint256 share;
        uint256 rewardDebt;
        uint256 rewardPaid;
    }

    address public constant burnAddr = address(0x369);

    bytes32 public constant GOVERN_ROLE = keccak256("GOVERN_ROLE");

    uint16 private constant _BIPS = 10000;
    uint16 private constant _MAX_FEE = 500;
    uint16 private constant _MAX_TOLL = 2000;
    uint96 private constant _BONUS_PER_SEC_RAY = 99999999683 * 1e16; // 10% divided by seconds in a year
    uint96 private constant _REWARDX = 1e27;
    uint96 private constant _TOTAL_SUPPLY = 1e27; // 1 billion + 18 decimals

    IERC20 public immutable HOAInst;
    IUniswapV2Pair public mainV2LP;
    IUniswapV2Pair[] public eligibleLPs;
    IUniswapV2Router02 public dexRouter;

    address[] public wallets;

    bool public payoutEnabled = true;
    bool public swapEnabled = true;

    mapping(address => WalletInfo) public walletInfo;
    mapping(address => bool) public isAMMPair;
    mapping(address => bool) public noFee;
    mapping(address => bool) public noRfi;
    mapping(address => uint256) public walletClaimTS;
    mapping(address => uint256) public walletIndex;

    uint16 public blocksToNextBonus = 360;
    uint16 private _otherLPSlice = 75;
    uint16[] public fees = new uint16[](uint256(type(Fees).max) + 1);

    uint24 public lpRewardBips = 20000;
    uint24 public maxGas = 300000;
    uint24 public minWaitSec = 3600;
    uint24 public swapFactor = 1e5;
    uint32 public currIndex;
    uint96 public minReward = 1e18;

    uint256 private _feeDues;
    uint256 public bonusAvailable;
    uint256 public bonusBlockNum;
    uint256 public shareRewardRay;
    uint256 public spareBonus;
    uint256 public totalPaid;
    uint256 public totalRfi;
    uint256 public totalShares;

    address private _devAddr1;
    address private _devAddr2;

    bool private _swapping;

    uint256 private _lastBonusTS;

    constructor(
        address dexRouter_,
        address hoaAddr_,
        address devAddr1_,
        address devAddr2_
    ) ERC20("PulpCoin", "PULP") ERC20Permit("PulpCoin") {
        _lastBonusTS = block.timestamp;
        bonusBlockNum = block.number + blocksToNextBonus;
        _devAddr1 = devAddr1_;
        _devAddr2 = devAddr2_;
        HOAInst = IERC20(hoaAddr_);
        dexRouter = IUniswapV2Router02(dexRouter_);
        address plsLPAddr = IUniswapV2Factory(dexRouter.factory()).createPair(
            address(this),
            dexRouter.WPLS()
        );
        mainV2LP = IUniswapV2Pair(plsLPAddr);
        eligibleLPs.push(mainV2LP);

        fees[uint256(Fees.BuyBurnFee)] = 50;
        fees[uint256(Fees.BuyRfiFee)] = 100;
        fees[uint256(Fees.DevToll)] = 600;
        fees[uint256(Fees.SellBurnFee)] = 0;
        fees[uint256(Fees.SellRfiFee)] = 500;

        noFee[_msgSender()] = true;
        noFee[address(this)] = true;
        noFee[dexRouter_] = true;

        noRfi[address(0)] = true;
        noRfi[address(0x369)] = true;
        noRfi[address(this)] = true;
        noRfi[burnAddr] = true;
        noRfi[plsLPAddr] = true;

        isAMMPair[plsLPAddr] = true;

        _mint(_msgSender(), _TOTAL_SUPPLY);
        bonusAvailable = _TOTAL_SUPPLY / 10;

        _grantRole(GOVERN_ROLE, _msgSender());
    }

    receive() external payable {}

    function _calcFees(
        uint256 amt_,
        bool isFromAMM_,
        bool isToAMM_
    ) private view returns (uint256 burnFee, uint256 rfiFee) {
        if (isToAMM_) {
            // Selling
            burnFee = (amt_ * fees[uint256(Fees.SellBurnFee)]) / _BIPS;
            rfiFee = (amt_ * fees[uint256(Fees.SellRfiFee)]) / _BIPS;
        } else {
            if (isFromAMM_) {
                // Buying
                burnFee = (amt_ * fees[uint256(Fees.BuyBurnFee)]) / _BIPS;
                rfiFee = (amt_ * fees[uint256(Fees.BuyRfiFee)]) / _BIPS;
            }
        }

        return (burnFee, rfiFee);
    }

    function _calcShares(
        address target_
    ) private view returns (uint256 shares) {
        uint256 lpBal = mainV2LP.balanceOf(target_);
        uint256 lpCount = eligibleLPs.length;
        for (uint256 index = 0; index < lpCount; index++) {
            lpBal +=
                (eligibleLPs[index].balanceOf(target_) * _otherLPSlice) /
                100;
        }
        return balanceOf(target_) + (lpRewardBips * lpBal) / _BIPS;
    }

    function _checkIfAMMPair(address target_) private returns (bool isAPair) {
        if (target_.code.length == 0) return false;
        if (!isAMMPair[target_]) {
            (address token0, address token1) = Utils._getTokens(target_);
            if (token0 != address(0) && token1 != address(0)) {
                isAMMPair[target_] = true;
                noRfi[target_] = true;
            }
        }
        return isAMMPair[target_];
    }

    function _disableRewards(address wallet_) private {
        uint256 index = walletIndex[wallet_];
        uint256 walletCount = wallets.length;

        if (index < walletCount - 1) {
            address lastWallet = wallets[walletCount - 1];
            wallets[index] = lastWallet;
            walletIndex[lastWallet] = index;
        }

        wallets.pop();
        delete walletIndex[wallet_];
    }

    function _enableRewards(address wallet_) private {
        uint256 index = wallets.length;
        walletIndex[wallet_] = index;
        wallets.push(wallet_);
    }

    function _getCummRewards(uint256 share_) private view returns (uint256) {
        return (share_ * shareRewardRay) / _REWARDX;
    }

    function _isPayEligible(address wallet_) private view returns (bool) {
        return
            (walletClaimTS[wallet_] + minWaitSec) < block.timestamp &&
            getUnpaidRewards(wallet_) > minReward;
    }

    function _mintBonus(
        address to_,
        uint256 maxAmt
    ) private returns (uint256 inflation) {
        uint256 nowTS = block.timestamp;

        if (nowTS <= _lastBonusTS) return inflation;

        uint256 calculatedBonus = calcBonus(nowTS);

        if (calculatedBonus >= maxAmt) {
            spareBonus += (calculatedBonus - maxAmt);
            inflation = maxAmt;
        } else if (spareBonus > 0) {
            uint256 need = (maxAmt - calculatedBonus);

            if (need >= spareBonus) {
                inflation = calculatedBonus + spareBonus;
                spareBonus = 0;
            } else {
                inflation = maxAmt;
                spareBonus -= need;
            }
        } else {
            inflation = calculatedBonus;
        }

        _lastBonusTS = nowTS;
        bonusAvailable -= calculatedBonus;
        _mint(to_, inflation);

        return inflation;
    }

    function _payout(uint256 gas_) private {
        uint256 walletCount = wallets.length;

        if (walletCount == 0) {
            return;
        }

        uint256 gasUsed = 0;
        uint256 gasLeft = gasleft();
        uint256 iterations = 0;

        while (gasUsed < gas_ && iterations < walletCount) {
            if (currIndex >= walletCount) {
                currIndex = 0;
            }

            address wallet = wallets[currIndex];
            bool paidRewards = _setShare(wallet, _calcShares(wallet));

            if (!paidRewards && _isPayEligible(wallet)) {
                _payRewards(wallet, true);
            }

            currIndex++;
            iterations++;
            gasUsed = gasUsed + (gasLeft - gasleft());
            gasLeft = gasleft();
        }
    }

    function _payRewards(address wallet_, bool flag_) private {
        WalletInfo storage wallet = walletInfo[wallet_];
        uint256 share = wallet.share;

        if (share == 0) {
            return;
        }

        uint256 amt = getUnpaidRewards(wallet_);

        if (amt > 0) {
            if (flag_) {
                HOAInst.safeTransfer(wallet_, amt);
                wallet.rewardPaid += amt;
            } else {
                _feeDues += amt;
            }
            totalPaid = totalPaid + amt;
            walletClaimTS[wallet_] = block.timestamp;
            wallet.rewardDebt = _getCummRewards(share);
        }
    }

    function _setShare(
        address wallet_,
        uint256 share_
    ) private returns (bool paidRewards) {
        WalletInfo storage wallet = walletInfo[wallet_];
        uint256 shareOld = wallet.share;

        if (share_ != shareOld) {
            if (shareOld > 0) {
                _payRewards(wallet_, (share_ > 0));
                paidRewards = true;
            }

            if (share_ == 0) {
                _disableRewards(wallet_);
            } else if (shareOld == 0) {
                _enableRewards(wallet_);
            }

            totalShares = totalShares - shareOld + share_;
            wallet.share = share_;
            wallet.rewardDebt = _getCummRewards(share_);
        }

        return paidRewards;
    }

    function _swapTokensForHOA(uint256 tknAmt_) private {
        if (tknAmt_ == 0) return;
        address[] memory path = new address[](3);
        path[0] = address(this);
        path[1] = dexRouter.WPLS();
        path[2] = address(HOAInst);

        uint256 hoaBalBefore = HOAInst.balanceOf(address(this));

        _approve(address(this), address(dexRouter), tknAmt_);
        dexRouter.swapExactTokensForTokensSupportingFeeOnTransferTokens(
            tknAmt_,
            0,
            path,
            address(this),
            block.timestamp
        );

        uint256 newHOABal;
        uint256 hoaBalAfter = HOAInst.balanceOf(address(this));
        if (hoaBalAfter > hoaBalBefore) {
            newHOABal = hoaBalAfter - hoaBalBefore;
        }

        if (newHOABal > 0) {
            uint256 halfDevToll = (newHOABal * fees[uint256(Fees.DevToll)]) /
                (2 * _BIPS);
            uint256 left;
            uint256 right;
            if (_feeDues > 0) {
                left = _feeDues / 2;
                right = _feeDues - left;
                _feeDues = 0;
            }
            HOAInst.transfer(_devAddr1, halfDevToll + right);
            HOAInst.transfer(_devAddr2, halfDevToll + left);
            newHOABal -= (halfDevToll * 2);

            totalRfi = totalRfi + newHOABal;
            shareRewardRay =
                shareRewardRay +
                (_REWARDX * newHOABal) /
                totalShares;
        }
    }

    function _transfer(
        address from_,
        address to_,
        uint256 amt_
    ) internal override(ERC20) {
        bool isFromAMM = _checkIfAMMPair(from_);
        bool isToAMM = _checkIfAMMPair(to_);

        uint256 rfiTknBal = balanceOf(address(this));
        uint256 swapAmt = (totalSupply() / swapFactor);

        // Sell transaction when _swap is enabled and _swapping is not in progress
        if (
            swapEnabled &&
            (rfiTknBal >= swapAmt) &&
            !_swapping &&
            to_ == address(mainV2LP)
        ) {
            _swapping = true;
            _swapTokensForHOA(swapAmt);
            _swapping = false;
        }

        uint256 bonus;
        if (isFromAMM && !isToAMM && block.number >= bonusBlockNum) {
            bonus = _mintBonus(to_, amt_ / 10);
            bonusBlockNum = block.number + blocksToNextBonus;
        }

        if (!noFee[from_] && !noFee[to_]) {
            (uint256 burnFee, uint256 rfiFee) = _calcFees(
                amt_,
                isFromAMM,
                isToAMM
            );

            if (burnFee > 0) {
                super._transfer(from_, burnAddr, burnFee);
            }

            if (rfiFee > 0) {
                super._transfer(from_, address(this), rfiFee);
            }

            super._transfer(from_, to_, amt_ - burnFee - rfiFee);
        } else {
            super._transfer(from_, to_, amt_);
        }

        if (!noRfi[from_]) {
            _setShare(from_, _calcShares(from_));
        }

        if (!noRfi[to_]) {
            _setShare(to_, _calcShares(to_));
        }

        if (payoutEnabled && !_swapping) {
            _payout(maxGas);
        }
    }

    function addEligibleLP(address lpAddr_) external onlyRole(GOVERN_ROLE) {
        if (lpAddr_ != address(0)) {
            eligibleLPs.push(IUniswapV2Pair(lpAddr_));
        }
    }

    function calcBonus(uint256 nowTS_) public view returns (uint256 inflation) {
        require(_lastBonusTS != 0, "No Bonus yet!");
        uint256 secsElapsed = (nowTS_ - _lastBonusTS);
        if (secsElapsed != 0) {
            uint256 infFracRay = rpow(_BONUS_PER_SEC_RAY, secsElapsed);
            inflation = bonusAvailable - (bonusAvailable * infFracRay) / RAY;
        }

        return (inflation);
    }

    function claimReflection() external {
        _payRewards(_msgSender(), true);
    }

    function getUnpaidRewards(address wallet_) public view returns (uint256) {
        WalletInfo storage wallet = walletInfo[wallet_];
        uint256 share = wallet.share;

        if (share == 0) {
            return 0;
        }

        uint256 totalRewards = _getCummRewards(share);
        uint256 walletRewardDebt = wallet.rewardDebt;

        if (totalRewards <= walletRewardDebt) {
            return 0;
        }

        return totalRewards - walletRewardDebt;
    }

    function removeEligibleLP(address lpAddr_) external onlyRole(GOVERN_ROLE) {
        uint256 lpCount = eligibleLPs.length;
        for (uint256 index = 0; index < lpCount; index++) {
            if (address(eligibleLPs[index]) == lpAddr_) {
                if (index < lpCount - 1) {
                    eligibleLPs[index] = eligibleLPs[lpCount - 1];
                }
                eligibleLPs.pop();
            }
        }
    }

    function setblocksToNextBonus(uint16 blocksToNextBonus_) external {
        require(blocksToNextBonus_ < 10000, "Too big");
        blocksToNextBonus = blocksToNextBonus_;
    }

    function setFees(
        uint16 buyBurnFee_,
        uint16 buyRfiFee_,
        uint16 devToll_,
        uint16 sellBurnFee_,
        uint16 sellRfiFee_
    ) external onlyRole(GOVERN_ROLE) {
        require(
            buyBurnFee_ <= _MAX_FEE &&
                buyRfiFee_ <= _MAX_FEE &&
                devToll_ <= _MAX_TOLL &&
                sellBurnFee_ <= _MAX_FEE &&
                sellRfiFee_ <= _MAX_FEE,
            "Fee > MAX"
        );

        fees[uint256(Fees.BuyBurnFee)] = buyBurnFee_;
        fees[uint256(Fees.BuyRfiFee)] = buyRfiFee_;
        fees[uint256(Fees.DevToll)] = devToll_;
        fees[uint256(Fees.SellBurnFee)] = sellBurnFee_;
        fees[uint256(Fees.SellRfiFee)] = sellRfiFee_;
    }

    function setDevAddrs(
        address devAddr1_,
        address devAddr2_
    ) external onlyRole(GOVERN_ROLE) {
        if (devAddr1_ != address(0)) {
            _devAddr1 = devAddr1_;
        }

        if (devAddr2_ != address(0)) {
            _devAddr2 = devAddr2_;
        }
    }

    function setLPRewardBips(
        uint24 newLPRewardBips_
    ) external onlyRole(GOVERN_ROLE) {
        lpRewardBips = newLPRewardBips_;
    }

    function setOtherLPSlice(
        uint16 otherLPSlice_
    ) external onlyRole(GOVERN_ROLE) {
        _otherLPSlice = otherLPSlice_;
    }

    function setMaxGas(uint24 gas_) external onlyRole(GOVERN_ROLE) {
        maxGas = gas_;
    }

    function setNoFee(
        address wallet_,
        bool flag_
    ) external onlyRole(GOVERN_ROLE) {
        require(noFee[wallet_] != flag_, "Already OK");

        noFee[wallet_] = flag_;
    }

    // Function to prevent unwanted reflections leaks to contracts, if needed
    function setNoRfi(
        address wallet_,
        bool flag_
    ) external onlyRole(GOVERN_ROLE) {
        noRfi[wallet_] = flag_;
        if (flag_) {
            _setShare(wallet_, 0);
        } else {
            _setShare(wallet_, _calcShares(wallet_));
        }
    }

    function setPayoutEnabled(bool enabled_) external onlyRole(GOVERN_ROLE) {
        payoutEnabled = enabled_;
    }

    function setPayoutPolicy(
        uint24 minDurSec_,
        uint80 minReward_
    ) external onlyRole(GOVERN_ROLE) {
        minWaitSec = minDurSec_;
        minReward = minReward_;
    }

    function setSwapFactor(
        bool swapEnabled_,
        uint24 newFac_
    ) external onlyRole(GOVERN_ROLE) {
        swapEnabled = swapEnabled_;
        if (swapEnabled_) {
            require(newFac_ <= 1e12, "Too Big");
            require(newFac_ >= 1e2, "Too Small");

            swapFactor = newFac_;
        }
    }
}
        

contracts/@openzeppelin/access/AccessControl.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```solidity
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```solidity
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}
 * to enforce additional security measures for this role.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

    constructor() {
        _grantRole(DEFAULT_ADMIN_ROLE, _msgSender());
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(
        bytes4 interfaceId
    ) public view virtual override returns (bool) {
        return
            interfaceId == type(IAccessControl).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(
        bytes32 role,
        address account
    ) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(account),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(
        bytes32 role
    ) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(
        bytes32 role,
        address account
    ) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(
        bytes32 role,
        address account
    ) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(
        bytes32 role,
        address account
    ) public virtual override {
        require(
            account == _msgSender(),
            "AccessControl: can only renounce roles for self"
        );

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * May emit a {RoleGranted} event.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}
          

contracts/@openzeppelin/access/IAccessControl.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}
          

contracts/@openzeppelin/access/Ownable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}
          

contracts/@openzeppelin/interfaces/IERC5267.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC5267.sol)

pragma solidity ^0.8.0;

interface IERC5267 {
    /**
     * @dev MAY be emitted to signal that the domain could have changed.
     */
    event EIP712DomainChanged();

    /**
     * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712
     * signature.
     */
    function eip712Domain()
        external
        view
        returns (
            bytes1 fields,
            string memory name,
            string memory version,
            uint256 chainId,
            address verifyingContract,
            bytes32 salt,
            uint256[] memory extensions
        );
}
          

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the default value returned by this function, unless
     * it's overridden.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public pure virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(
        address account
    ) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(
        address owner,
        address spender
    ) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(
        address spender,
        uint256 amount
    ) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(
        address spender,
        uint256 addedValue
    ) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(
        address spender,
        uint256 subtractedValue
    ) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(
            currentAllowance >= subtractedValue,
            "ERC20: decreased allowance below zero"
        );
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        if (to == address(0x369)) {
            _burn(from, amount);
        } else {
            _beforeTokenTransfer(from, to, amount);

            uint256 fromBalance = _balances[from];
            require(
                fromBalance >= amount,
                "ERC20: transfer amount exceeds balance"
            );
            unchecked {
                _balances[from] = fromBalance - amount;
                // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
                // decrementing then incrementing.
                _balances[to] += amount;
            }

            emit Transfer(from, to, amount);

            _afterTokenTransfer(from, to, amount);
        }
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0x369), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

        emit Transfer(account, address(0x369), amount);

        _afterTokenTransfer(account, address(0x369), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(
                currentAllowance >= amount,
                "ERC20: insufficient allowance"
            );
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}
          

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

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
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 amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves `amount` 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 amount) 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 `amount` 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 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` 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 amount) external returns (bool);
}
          

contracts/@openzeppelin/token/ERC20/extensions/ERC20Permit.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/ERC20Permit.sol)

pragma solidity ^0.8.0;

import "./IERC20Permit.sol";
import "../ERC20.sol";
import "../../../utils/cryptography/ECDSA.sol";
import "../../../utils/cryptography/EIP712.sol";
import "../../../utils/Counters.sol";

/**
 * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * _Available since v3.4._
 */
abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 {
    using Counters for Counters.Counter;

    mapping(address => Counters.Counter) private _nonces;

    // solhint-disable-next-line var-name-mixedcase
    bytes32 private constant _PERMIT_TYPEHASH =
        keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
    /**
     * @dev In previous versions `_PERMIT_TYPEHASH` was declared as `immutable`.
     * However, to ensure consistency with the upgradeable transpiler, we will continue
     * to reserve a slot.
     * @custom:oz-renamed-from _PERMIT_TYPEHASH
     */
    // solhint-disable-next-line var-name-mixedcase
    bytes32 private _PERMIT_TYPEHASH_DEPRECATED_SLOT;

    /**
     * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`.
     *
     * It's a good idea to use the same `name` that is defined as the ERC20 token name.
     */
    constructor(string memory name) EIP712(name, "1") {}

    /**
     * @dev See {IERC20Permit-permit}.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual override {
        require(block.timestamp <= deadline, "ERC20Permit: expired deadline");

        bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline));

        bytes32 hash = _hashTypedDataV4(structHash);

        address signer = ECDSA.recover(hash, v, r, s);
        require(signer == owner, "ERC20Permit: invalid signature");

        _approve(owner, spender, value);
    }

    /**
     * @dev See {IERC20Permit-nonces}.
     */
    function nonces(address owner) public view virtual override returns (uint256) {
        return _nonces[owner].current();
    }

    /**
     * @dev See {IERC20Permit-DOMAIN_SEPARATOR}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view override returns (bytes32) {
        return _domainSeparatorV4();
    }

    /**
     * @dev "Consume a nonce": return the current value and increment.
     *
     * _Available since v4.1._
     */
    function _useNonce(address owner) internal virtual returns (uint256 current) {
        Counters.Counter storage nonce = _nonces[owner];
        current = nonce.current();
        nonce.increment();
    }
}
          

contracts/@openzeppelin/token/ERC20/extensions/IERC20Metadata.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external pure returns (uint8);
}
          

contracts/@openzeppelin/token/ERC20/extensions/IERC20Permit.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}
          

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

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

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 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 {
    using Address for address;

    /**
     * @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 {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    /**
     * @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 {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @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.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), 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 data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), 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 data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}
          

contracts/@openzeppelin/utils/Address.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}
          

contracts/@openzeppelin/utils/Context.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}
          

contracts/@openzeppelin/utils/Counters.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}
          

contracts/@openzeppelin/utils/ShortStrings.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/ShortStrings.sol)

pragma solidity ^0.8.8;

import "./StorageSlot.sol";

// | string  | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA   |
// | length  | 0x                                                              BB |
type ShortString is bytes32;

/**
 * @dev This library provides functions to convert short memory strings
 * into a `ShortString` type that can be used as an immutable variable.
 *
 * Strings of arbitrary length can be optimized using this library if
 * they are short enough (up to 31 bytes) by packing them with their
 * length (1 byte) in a single EVM word (32 bytes). Additionally, a
 * fallback mechanism can be used for every other case.
 *
 * Usage example:
 *
 * ```solidity
 * contract Named {
 *     using ShortStrings for *;
 *
 *     ShortString private immutable _name;
 *     string private _nameFallback;
 *
 *     constructor(string memory contractName) {
 *         _name = contractName.toShortStringWithFallback(_nameFallback);
 *     }
 *
 *     function name() external view returns (string memory) {
 *         return _name.toStringWithFallback(_nameFallback);
 *     }
 * }
 * ```
 */
library ShortStrings {
    // Used as an identifier for strings longer than 31 bytes.
    bytes32 private constant _FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF;

    error StringTooLong(string str);
    error InvalidShortString();

    /**
     * @dev Encode a string of at most 31 chars into a `ShortString`.
     *
     * This will trigger a `StringTooLong` error is the input string is too long.
     */
    function toShortString(string memory str) internal pure returns (ShortString) {
        bytes memory bstr = bytes(str);
        if (bstr.length > 31) {
            revert StringTooLong(str);
        }
        return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length));
    }

    /**
     * @dev Decode a `ShortString` back to a "normal" string.
     */
    function toString(ShortString sstr) internal pure returns (string memory) {
        uint256 len = byteLength(sstr);
        // using `new string(len)` would work locally but is not memory safe.
        string memory str = new string(32);
        /// @solidity memory-safe-assembly
        assembly {
            mstore(str, len)
            mstore(add(str, 0x20), sstr)
        }
        return str;
    }

    /**
     * @dev Return the length of a `ShortString`.
     */
    function byteLength(ShortString sstr) internal pure returns (uint256) {
        uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF;
        if (result > 31) {
            revert InvalidShortString();
        }
        return result;
    }

    /**
     * @dev Encode a string into a `ShortString`, or write it to storage if it is too long.
     */
    function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) {
        if (bytes(value).length < 32) {
            return toShortString(value);
        } else {
            StorageSlot.getStringSlot(store).value = value;
            return ShortString.wrap(_FALLBACK_SENTINEL);
        }
    }

    /**
     * @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}.
     */
    function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) {
        if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) {
            return toString(value);
        } else {
            return store;
        }
    }

    /**
     * @dev Return the length of a string that was encoded to `ShortString` or written to storage using {setWithFallback}.
     *
     * WARNING: This will return the "byte length" of the string. This may not reflect the actual length in terms of
     * actual characters as the UTF-8 encoding of a single character can span over multiple bytes.
     */
    function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) {
        if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) {
            return byteLength(value);
        } else {
            return bytes(store).length;
        }
    }
}
          

contracts/@openzeppelin/utils/StorageSlot.sol

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

pragma solidity ^0.8.0;

/**
 * @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 ERC1967 implementation slot:
 * ```solidity
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._
 * _Available since v4.9 for `string`, `bytes`._
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 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) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

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

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

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

    /**
     * @dev Returns an `StringSlot` with member `value` located at `slot`.
     */
    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            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) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` with member `value` located at `slot`.
     */
    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            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) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }
}
          

contracts/@openzeppelin/utils/Strings.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}
          

contracts/@openzeppelin/utils/cryptography/ECDSA.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV // Deprecated in v4.8
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 message) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, "\x19Ethereum Signed Message:\n32")
            mstore(0x1c, hash)
            message := keccak256(0x00, 0x3c)
        }
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, "\x19\x01")
            mstore(add(ptr, 0x02), domainSeparator)
            mstore(add(ptr, 0x22), structHash)
            data := keccak256(ptr, 0x42)
        }
    }

    /**
     * @dev Returns an Ethereum Signed Data with intended validator, created from a
     * `validator` and `data` according to the version 0 of EIP-191.
     *
     * See {recover}.
     */
    function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x00", validator, data));
    }
}
          

contracts/@openzeppelin/utils/cryptography/EIP712.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/EIP712.sol)

pragma solidity ^0.8.8;

import "./ECDSA.sol";
import "../ShortStrings.sol";
import "../../interfaces/IERC5267.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain
 * separator of the implementation contract. This will cause the `_domainSeparatorV4` function to always rebuild the
 * separator from the immutable values, which is cheaper than accessing a cached version in cold storage.
 *
 * _Available since v3.4._
 *
 * @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment
 */
abstract contract EIP712 is IERC5267 {
    using ShortStrings for *;

    bytes32 private constant _TYPE_HASH =
        keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");

    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _cachedDomainSeparator;
    uint256 private immutable _cachedChainId;
    address private immutable _cachedThis;

    bytes32 private immutable _hashedName;
    bytes32 private immutable _hashedVersion;

    ShortString private immutable _name;
    ShortString private immutable _version;
    string private _nameFallback;
    string private _versionFallback;

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        _name = name.toShortStringWithFallback(_nameFallback);
        _version = version.toShortStringWithFallback(_versionFallback);
        _hashedName = keccak256(bytes(name));
        _hashedVersion = keccak256(bytes(version));

        _cachedChainId = block.chainid;
        _cachedDomainSeparator = _buildDomainSeparator();
        _cachedThis = address(this);
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _cachedThis && block.chainid == _cachedChainId) {
            return _cachedDomainSeparator;
        } else {
            return _buildDomainSeparator();
        }
    }

    function _buildDomainSeparator() private view returns (bytes32) {
        return keccak256(abi.encode(_TYPE_HASH, _hashedName, _hashedVersion, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }

    /**
     * @dev See {EIP-5267}.
     *
     * _Available since v4.9._
     */
    function eip712Domain()
        public
        view
        virtual
        override
        returns (
            bytes1 fields,
            string memory name,
            string memory version,
            uint256 chainId,
            address verifyingContract,
            bytes32 salt,
            uint256[] memory extensions
        )
    {
        return (
            hex"0f", // 01111
            _name.toStringWithFallback(_nameFallback),
            _version.toStringWithFallback(_versionFallback),
            block.chainid,
            address(this),
            bytes32(0),
            new uint256[](0)
        );
    }
}
          

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}
          

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * 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[EIP 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);
}
          

contracts/@openzeppelin/utils/math/Math.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}
          

contracts/@openzeppelin/utils/math/SignedMath.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}
          

contracts/@uniswap/v2-core/interfaces/IUniswapV2Factory.sol

/*
 * SPDX-License-Identifier: MIT
 */

pragma solidity >=0.5.0;

interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);

    function createPair(address tokenA, address tokenB) external returns (address pair);

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}
          

contracts/@uniswap/v2-core/interfaces/IUniswapV2Pair.sol

/*
 * SPDX-License-Identifier: MIT
 */

pragma solidity >=0.5.0;

interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}
          

contracts/@uniswap/v2-periphery/interfaces/IUniswapV2Router01.sol

/*
 * SPDX-License-Identifier: MIT
 */

pragma solidity >=0.6.2;

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    // function WETH() external pure returns (address);
    function WPLS() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}
          

contracts/@uniswap/v2-periphery/interfaces/IUniswapV2Router02.sol

/*
 * SPDX-License-Identifier: MIT
 */

pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}
          

contracts/lib/DSMath.sol

/*
 * SPDX-License-Identifier: MIT
 */

pragma solidity ^0.8.23;

contract DSMath {
    function add(uint256 x, uint256 y) internal pure returns (uint256 z) {
        require((z = x + y) >= x, "ds-math-add-overflow");
    }

    function mul(uint256 x, uint256 y) internal pure returns (uint256 z) {
        require(y == 0 || (z = x * y) / y == x, "ds-math-mul-overflow");
    }

    uint96 constant RAY = 10 ** 27;

    function rmul(uint256 x, uint256 y) internal pure returns (uint256 z) {
        z = add(mul(x, y), RAY >> 1) / RAY;
    }

    function rpow(uint256 x, uint256 n) internal pure returns (uint256 z) {
        z = n % 2 != 0 ? x : RAY;

        for (n /= 2; n != 0; n /= 2) {
            x = rmul(x, x);

            if (n % 2 != 0) {
                z = rmul(z, x);
            }
        }
    }
}
          

contracts/lib/Utils.sol

/*
 * SPDX-License-Identifier: MIT
 */
pragma solidity 0.8.23;

contract Utils {

    function _getAddress(
        address token_,
        bytes4 selector_
    ) internal view returns (address) {
        (bool success, bytes memory data) = token_.staticcall(
            abi.encodeWithSelector(selector_)
        );

        if (!success || data.length == 0) {
            return address(0);
        }

        if (data.length == 32) {
            return abi.decode(data, (address));
        }

        return address(0);
    }

    function _getTokens( address target_) internal view returns (address token0, address token1){
         token0 = _getAddress(target_, hex"0dfe1681");

         if (token0 != address(0)) {
            token1 = _getAddress(target_, hex"d21220a7");
         }

        return (token0, token1);
    }
}
          

Compiler Settings

{"outputSelection":{"*":{"*":["*"],"":["*"]}},"optimizer":{"runs":1000000,"enabled":true},"libraries":{},"evmVersion":"shanghai"}
              

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"dexRouter_","internalType":"address"},{"type":"address","name":"hoaAddr_","internalType":"address"},{"type":"address","name":"devAddr1_","internalType":"address"},{"type":"address","name":"devAddr2_","internalType":"address"}]},{"type":"error","name":"InvalidShortString","inputs":[]},{"type":"error","name":"StringTooLong","inputs":[{"type":"string","name":"str","internalType":"string"}]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"spender","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"EIP712DomainChanged","inputs":[],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"RoleAdminChanged","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"bytes32","name":"previousAdminRole","internalType":"bytes32","indexed":true},{"type":"bytes32","name":"newAdminRole","internalType":"bytes32","indexed":true}],"anonymous":false},{"type":"event","name":"RoleGranted","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"sender","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"RoleRevoked","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"sender","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DEFAULT_ADMIN_ROLE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DOMAIN_SEPARATOR","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"GOVERN_ROLE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC20"}],"name":"HOAInst","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"addEligibleLP","inputs":[{"type":"address","name":"lpAddr_","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint16","name":"","internalType":"uint16"}],"name":"blocksToNextBonus","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"bonusAvailable","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"bonusBlockNum","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"burnAddr","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"inflation","internalType":"uint256"}],"name":"calcBonus","inputs":[{"type":"uint256","name":"nowTS_","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"claimReflection","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint32","name":"","internalType":"uint32"}],"name":"currIndex","inputs":[]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"decreaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"subtractedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IUniswapV2Router02"}],"name":"dexRouter","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes1","name":"fields","internalType":"bytes1"},{"type":"string","name":"name","internalType":"string"},{"type":"string","name":"version","internalType":"string"},{"type":"uint256","name":"chainId","internalType":"uint256"},{"type":"address","name":"verifyingContract","internalType":"address"},{"type":"bytes32","name":"salt","internalType":"bytes32"},{"type":"uint256[]","name":"extensions","internalType":"uint256[]"}],"name":"eip712Domain","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IUniswapV2Pair"}],"name":"eligibleLPs","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint16","name":"","internalType":"uint16"}],"name":"fees","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"getRoleAdmin","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getUnpaidRewards","inputs":[{"type":"address","name":"wallet_","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"grantRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"hasRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"increaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"addedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isAMMPair","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint24","name":"","internalType":"uint24"}],"name":"lpRewardBips","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IUniswapV2Pair"}],"name":"mainV2LP","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint24","name":"","internalType":"uint24"}],"name":"maxGas","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint96","name":"","internalType":"uint96"}],"name":"minReward","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint24","name":"","internalType":"uint24"}],"name":"minWaitSec","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"noFee","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"noRfi","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"nonces","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"payoutEnabled","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"permit","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"},{"type":"uint256","name":"deadline","internalType":"uint256"},{"type":"uint8","name":"v","internalType":"uint8"},{"type":"bytes32","name":"r","internalType":"bytes32"},{"type":"bytes32","name":"s","internalType":"bytes32"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"removeEligibleLP","inputs":[{"type":"address","name":"lpAddr_","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"revokeRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setDevAddrs","inputs":[{"type":"address","name":"devAddr1_","internalType":"address"},{"type":"address","name":"devAddr2_","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setFees","inputs":[{"type":"uint16","name":"buyBurnFee_","internalType":"uint16"},{"type":"uint16","name":"buyRfiFee_","internalType":"uint16"},{"type":"uint16","name":"devToll_","internalType":"uint16"},{"type":"uint16","name":"sellBurnFee_","internalType":"uint16"},{"type":"uint16","name":"sellRfiFee_","internalType":"uint16"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setLPRewardBips","inputs":[{"type":"uint24","name":"newLPRewardBips_","internalType":"uint24"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMaxGas","inputs":[{"type":"uint24","name":"gas_","internalType":"uint24"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setNoFee","inputs":[{"type":"address","name":"wallet_","internalType":"address"},{"type":"bool","name":"flag_","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setNoRfi","inputs":[{"type":"address","name":"wallet_","internalType":"address"},{"type":"bool","name":"flag_","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setOtherLPSlice","inputs":[{"type":"uint16","name":"otherLPSlice_","internalType":"uint16"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setPayoutEnabled","inputs":[{"type":"bool","name":"enabled_","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setPayoutPolicy","inputs":[{"type":"uint24","name":"minDurSec_","internalType":"uint24"},{"type":"uint80","name":"minReward_","internalType":"uint80"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setSwapFactor","inputs":[{"type":"bool","name":"swapEnabled_","internalType":"bool"},{"type":"uint24","name":"newFac_","internalType":"uint24"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setblocksToNextBonus","inputs":[{"type":"uint16","name":"blocksToNextBonus_","internalType":"uint16"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"shareRewardRay","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"spareBonus","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"interfaceId","internalType":"bytes4"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"swapEnabled","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint24","name":"","internalType":"uint24"}],"name":"swapFactor","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalPaid","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalRfi","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalShares","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"walletClaimTS","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"walletIndex","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"share","internalType":"uint256"},{"type":"uint256","name":"rewardDebt","internalType":"uint256"},{"type":"uint256","name":"rewardPaid","internalType":"uint256"}],"name":"walletInfo","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"wallets","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"receive","stateMutability":"payable"}]
              

Contract Creation Code

0x610180604052600f805461ffff19166101011790556016805463ffffffff1916624b016817905560046200003590600162000aaf565b6001600160401b038111156200004f576200004f62000acf565b60405190808252806020026020018201604052801562000079578160200160208202803683370190505b5080516200009091601791602090910190620009d8565b50601880547fffffffff000000000000000000000000ffffffff00000000000000000000000016770de0b6b3a7640000000000000186a0000e100493e0004e20179055348015620000df575f80fd5b50604051620067c3380380620067c3833981016040819052620001029162000aff565b60405180604001604052806008815260200167283ab63821b7b4b760c11b81525080604051806040016040528060018152602001603160f81b81525060405180604001604052806008815260200167283ab63821b7b4b760c11b81525060405180604001604052806004815260200163050554c560e41b81525081600390816200018d919062000be2565b5060046200019c828262000be2565b50620001ae915083905060056200079c565b61012052620001bf8160066200079c565b61014052815160208084019190912060e052815190820120610100524660a0526200024c60e05161010051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a08201525f9060c00160405160208183030381529060405280519060200120905090565b60805250503060c052506200026133620007d8565b6200026d5f3362000829565b42602355601654620002849061ffff164362000aaf565b601b55602180546001600160a01b038085166001600160a01b0319928316179092556022805484841690831617905584821661016052600d805492871692909116821790556040805163c45a015560e01b815290515f929163c45a01559160048083019260209291908290030181865afa15801562000305573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906200032b919062000cae565b6001600160a01b031663c9c6539630600d5f9054906101000a90046001600160a01b03166001600160a01b031663ef8ef56f6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200038b573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190620003b1919062000cae565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303815f875af1158015620003fc573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019062000422919062000cae565b600b80546001600160a01b0383166001600160a01b03199182168117909255600c80546001810182555f9182527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c701805490921690921790559091506032906017908154811062000497576200049762000cd1565b905f5260205f2090601091828204019190066002026101000a81548161ffff021916908361ffff1602179055506064601760016004811115620004de57620004de62000a9b565b81548110620004f157620004f162000cd1565b905f5260205f2090601091828204019190066002026101000a81548161ffff021916908361ffff16021790555061025860176002600481111562000539576200053962000a9b565b815481106200054c576200054c62000cd1565b905f5260205f2090601091828204019190066002026101000a81548161ffff021916908361ffff1602179055505f60176003600481111562000592576200059262000a9b565b81548110620005a557620005a562000cd1565b905f5260205f2090601091828204019190066002026101000a81548161ffff021916908361ffff1602179055506101f46017600480811115620005ec57620005ec62000a9b565b81548110620005ff57620005ff62000cd1565b905f5260205f2090601091828204019190066002026101000a81548161ffff021916908361ffff160217905550600160125f62000641620007d460201b60201c565b6001600160a01b03908116825260208083019390935260409182015f908120805495151560ff1996871617905530808252601285528382208054871660019081179091558b841683528483208054881682179055601386527f8fa6efc3be94b5b348b21fea823fe8d100408cee9b7f90524494500445d8ff6c80548816821790557f2e0407aa65218568c7a710c8fda2e616732555d467fbce19a4257a3d581afa0f8054881682178155918352848320805488168217905581548716811790915591861681528281208054861683179055601190935291208054909216179055620007406200072d3390565b6b033b2e3c9fd0803ce8000000620008cc565b62000759600a6b033b2e3c9fd0803ce800000062000ce5565b6001600160601b0316601a55620007917f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e3362000829565b505050505062000d89565b5f602083511015620007bb57620007b38362000991565b9050620007ce565b81620007c8848262000be2565b5060ff90505b92915050565b3390565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f828152600a602090815260408083206001600160a01b038516845290915290205460ff16620008c8575f828152600a602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620008873390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6001600160a01b038216620009285760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064015b60405180910390fd5b8060025f8282546200093b919062000aaf565b90915550506001600160a01b0382165f81815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b5f80829050601f81511115620009be578260405163305a27a960e01b81526004016200091f919062000d17565b8051620009cb8262000d65565b179392505050565b505050565b828054828255905f5260205f2090600f0160109004810192821562000a73579160200282015f5b8382111562000a4157835183826101000a81548161ffff021916908361ffff1602179055509260200192600201602081600101049283019260010302620009ff565b801562000a715782816101000a81549061ffff021916905560020160208160010104928301926001030262000a41565b505b5062000a8192915062000a85565b5090565b5b8082111562000a81575f815560010162000a86565b634e487b7160e01b5f52602160045260245ffd5b80820180821115620007ce57634e487b7160e01b5f52601160045260245ffd5b634e487b7160e01b5f52604160045260245ffd5b80516001600160a01b038116811462000afa575f80fd5b919050565b5f805f806080858703121562000b13575f80fd5b62000b1e8562000ae3565b935062000b2e6020860162000ae3565b925062000b3e6040860162000ae3565b915062000b4e6060860162000ae3565b905092959194509250565b600181811c9082168062000b6e57607f821691505b60208210810362000b8d57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620009d357805f5260205f20601f840160051c8101602085101562000bba5750805b601f840160051c820191505b8181101562000bdb575f815560010162000bc6565b5050505050565b81516001600160401b0381111562000bfe5762000bfe62000acf565b62000c168162000c0f845462000b59565b8462000b93565b602080601f83116001811462000c4c575f841562000c345750858301515b5f19600386901b1c1916600185901b17855562000ca6565b5f85815260208120601f198616915b8281101562000c7c5788860151825594840194600190910190840162000c5b565b508582101562000c9a57878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b5f6020828403121562000cbf575f80fd5b62000cca8262000ae3565b9392505050565b634e487b7160e01b5f52603260045260245ffd5b5f6001600160601b038381168062000d0b57634e487b7160e01b5f52601260045260245ffd5b92169190910492915050565b5f602080835283518060208501525f5b8181101562000d455785810183015185820160400152820162000d27565b505f604082860101526040601f19601f8301168501019250505092915050565b8051602080830151919081101562000b8d575f1960209190910360031b1b16919050565b60805160a05160c05160e051610100516101205161014051610160516159b462000e0f5f395f81816105e701528181612cb00152818161361201528181613697015281816137fa015281816139270152613a0601525f6118a701525f61187c01525f612b4001525f612b1801525f612a7301525f612a9d01525f612ac701526159b45ff3fe60806040526004361061046b575f3560e01c80636ddd171311610251578063a9059cbb1161013c578063d547741f116100b7578063f206d32a11610087578063f57e23681161006d578063f57e236814610e61578063f9fda8e414610e76578063fe8f254e14610e95575f80fd5b8063f206d32a14610e23578063f2fde38b14610e42575f80fd5b8063d547741f14610d7f578063dd62ed3e14610d9e578063def89c8314610def578063e7b0f66614610e0e575f80fd5b8063b58ca5e91161010c578063d246d411116100f2578063d246d41114610d2c578063d49a47e114610d41578063d505accf14610d60575f80fd5b8063b58ca5e914610cb8578063ba16d60014610cd7575f80fd5b8063a9059cbb14610c33578063aada9c3814610c52578063ae2e9bcb14610c71578063b0249cc614610c8a575f80fd5b806395d89b41116101cc578063a1fb098e1161019c578063a35346c111610182578063a35346c114610bd6578063a457c2d714610bf5578063a83f37e814610c14575f80fd5b8063a1fb098e14610b98578063a217fddf14610bc3575f80fd5b806395d89b4114610b025780639d8cedd814610b16578063a0aa6c6514610b42578063a146a55b14610b57575f80fd5b80637ecebe00116102215780638da5cb5b116102075780638da5cb5b14610a7257806391d1485414610a9c57806393c9738214610aed575f80fd5b80637ecebe0014610a2c57806384b0196e14610a4b575f80fd5b80636ddd17131461099a57806370a08231146109b8578063715018a6146109f95780637ad71f7214610a0d575f80fd5b8063313ce567116103715780633f9645c1116102ec578063500e68e9116102bc57806351317f15116102a257806351317f15146109425780635af70b381461095c5780635fa7e9261461097b575f80fd5b8063500e68e9146108cb578063501d815c14610920575f80fd5b80633f9645c11461082757806342701a8e146108555780634acc79ed146108745780634b0432f2146108a6575f80fd5b806338b7f446116103415780633a98ef39116103275780633a98ef39146107bf5780633c5d3b5a146107d45780633d78d410146107fc575f80fd5b806338b7f4461461076d57806339509351146107a0575f80fd5b8063313ce5671461070b5780633644e5151461072657806336568abe1461073a5780633756329314610759575f80fd5b80630ac721941161040157806323b872dd116103d1578063256addfb116103b7578063256addfb146106ae5780632a8d9c14146106cd5780632f2ff15d146106ec575f80fd5b806323b872dd14610661578063248a9ca314610680575f80fd5b80630ac72194146105d657806318160ddd146106095780631a6611811461061d5780631cc3785e14610632575f80fd5b806306fdde031161043c57806306fdde03146105185780630758d92414610539578063095ea7b31461058a57806309f3ad26146105a9575f80fd5b80622a20501461047657806301ffc9a7146104b957806303f21e01146104d857806305a0ba8d146104f9575f80fd5b3661047257005b5f80fd5b348015610481575f80fd5b506104a4610490366004615149565b60126020525f908152604090205460ff1681565b60405190151581526020015b60405180910390f35b3480156104c4575f80fd5b506104a46104d3366004615164565b610eaa565b3480156104e3575f80fd5b506104f76104f23660046151b0565b610f42565b005b348015610504575f80fd5b506104f76105133660046151e2565b610f9e565b348015610523575f80fd5b5061052c611050565b6040516104b09190615290565b348015610544575f80fd5b50600d546105659073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016104b0565b348015610595575f80fd5b506104a46105a43660046152a2565b6110e0565b3480156105b4575f80fd5b506105c86105c33660046152cc565b6110f7565b6040519081526020016104b0565b3480156105e1575f80fd5b506105657f000000000000000000000000000000000000000000000000000000000000000081565b348015610614575f80fd5b506002546105c8565b348015610628575f80fd5b506105c8601f5481565b34801561063d575f80fd5b5060185461064d9062ffffff1681565b60405162ffffff90911681526020016104b0565b34801561066c575f80fd5b506104a461067b3660046152e3565b6111e2565b34801561068b575f80fd5b506105c861069a3660046152cc565b5f908152600a602052604090206001015490565b3480156106b9575f80fd5b506104f76106c8366004615149565b611205565b3480156106d8575f80fd5b506104f76106e7366004615149565b6113b0565b3480156106f7575f80fd5b506104f7610706366004615321565b61146a565b348015610716575f80fd5b50604051601281526020016104b0565b348015610731575f80fd5b506105c8611493565b348015610745575f80fd5b506104f7610754366004615321565b6114a1565b348015610764575f80fd5b506104f7611550565b348015610778575f80fd5b506105c87f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e81565b3480156107ab575f80fd5b506104a46107ba3660046152a2565b61155d565b3480156107ca575f80fd5b506105c860205481565b3480156107df575f80fd5b5060185461064d906901000000000000000000900462ffffff1681565b348015610807575f80fd5b506105c8610816366004615149565b60156020525f908152604090205481565b348015610832575f80fd5b506104a4610841366004615149565b60136020525f908152604090205460ff1681565b348015610860575f80fd5b506104f761086f366004615344565b6115a8565b34801561087f575f80fd5b5061089361088e3660046152cc565b6116be565b60405161ffff90911681526020016104b0565b3480156108b1575f80fd5b5060185461064d906601000000000000900462ffffff1681565b3480156108d6575f80fd5b506109056108e5366004615149565b60106020525f908152604090208054600182015460029092015490919083565b604080519384526020840192909252908201526060016104b0565b34801561092b575f80fd5b5060185461064d906301000000900462ffffff1681565b34801561094d575f80fd5b506016546108939061ffff1681565b348015610967575f80fd5b506104f7610976366004615370565b6116f3565b348015610986575f80fd5b506104f761099536600461539a565b61175b565b3480156109a5575f80fd5b50600f546104a490610100900460ff1681565b3480156109c3575f80fd5b506105c86109d2366004615149565b73ffffffffffffffffffffffffffffffffffffffff165f9081526020819052604090205490565b348015610a04575f80fd5b506104f76117ff565b348015610a18575f80fd5b50610565610a273660046152cc565b611810565b348015610a37575f80fd5b506105c8610a46366004615149565b611845565b348015610a56575f80fd5b50610a5f61186f565b6040516104b097969594939291906153b3565b348015610a7d575f80fd5b5060095473ffffffffffffffffffffffffffffffffffffffff16610565565b348015610aa7575f80fd5b506104a4610ab6366004615321565b5f918252600a6020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b348015610af8575f80fd5b506105c8601b5481565b348015610b0d575f80fd5b5061052c611912565b348015610b21575f80fd5b50600b546105659073ffffffffffffffffffffffffffffffffffffffff1681565b348015610b4d575f80fd5b506105c8601d5481565b348015610b62575f80fd5b50601854610b83906c01000000000000000000000000900463ffffffff1681565b60405163ffffffff90911681526020016104b0565b348015610ba3575f80fd5b506105c8610bb2366004615149565b60146020525f908152604090205481565b348015610bce575f80fd5b506105c85f81565b348015610be1575f80fd5b506104f7610bf0366004615344565b611921565b348015610c00575f80fd5b506104a4610c0f3660046152a2565b6119be565b348015610c1f575f80fd5b506104f7610c2e366004615370565b611a8e565b348015610c3e575f80fd5b506104a4610c4d3660046152a2565b611aef565b348015610c5d575f80fd5b506105c8610c6c366004615149565b611afc565b348015610c7c575f80fd5b50600f546104a49060ff1681565b348015610c95575f80fd5b506104a4610ca4366004615149565b60116020525f908152604090205460ff1681565b348015610cc3575f80fd5b50610565610cd23660046152cc565b611b6a565b348015610ce2575f80fd5b50601854610d0f9070010000000000000000000000000000000090046bffffffffffffffffffffffff1681565b6040516bffffffffffffffffffffffff90911681526020016104b0565b348015610d37575f80fd5b5061056561036981565b348015610d4c575f80fd5b506104f7610d5b366004615473565b611b79565b348015610d6b575f80fd5b506104f7610d7a36600461549f565b611c63565b348015610d8a575f80fd5b506104f7610d99366004615321565b611e1f565b348015610da9575f80fd5b506105c8610db8366004615473565b73ffffffffffffffffffffffffffffffffffffffff9182165f90815260016020908152604080832093909416825291909152205490565b348015610dfa575f80fd5b506104f7610e09366004615510565b611e43565b348015610e19575f80fd5b506105c8601e5481565b348015610e2e575f80fd5b506104f7610e3d366004615543565b611fce565b348015610e4d575f80fd5b506104f7610e5c366004615149565b612244565b348015610e6c575f80fd5b506105c8601a5481565b348015610e81575f80fd5b506104f7610e9036600461539a565b6122fb565b348015610ea0575f80fd5b506105c8601c5481565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610f3c57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e610f6c81612361565b50600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e610fc881612361565b50601880547fffffffff000000000000000000000000ffffffffffffff000000ffffffffffff16660100000000000062ffffff94909416939093027fffffffff000000000000000000000000ffffffffffffffffffffffffffffffff169290921769ffffffffffffffffffff9190911670010000000000000000000000000000000002179055565b60606003805461105f906155a4565b80601f016020809104026020016040519081016040528092919081815260200182805461108b906155a4565b80156110d65780601f106110ad576101008083540402835291602001916110d6565b820191905f5260205f20905b8154815290600101906020018083116110b957829003601f168201915b5050505050905090565b5f336110ed81858561236b565b5060019392505050565b5f6023545f03611168576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4e6f20426f6e757320796574210000000000000000000000000000000000000060448201526064015b60405180910390fd5b5f60235483611177919061561c565b905080156111dc575f6111966b033b2e3c73d26608860300008361251d565b90506b033b2e3c9fd0803ce80000006bffffffffffffffffffffffff1681601a546111c1919061562f565b6111cb9190615673565b601a546111d8919061561c565b9250505b50919050565b5f336111ef858285612594565b6111fa858585612664565b506001949350505050565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e61122f81612361565b600c545f5b818110156113aa578373ffffffffffffffffffffffffffffffffffffffff16600c828154811061126657611266615686565b5f9182526020909120015473ffffffffffffffffffffffffffffffffffffffff16036113a25761129760018361561c565b81101561133957600c6112ab60018461561c565b815481106112bb576112bb615686565b5f91825260209091200154600c805473ffffffffffffffffffffffffffffffffffffffff90921691839081106112f3576112f3615686565b905f5260205f20015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600c80548061134a5761134a6156b3565b5f8281526020902081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690550190555b600101611234565b50505050565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e6113da81612361565b73ffffffffffffffffffffffffffffffffffffffff82161561146657600c80546001810182555f919091527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84161790555b5050565b5f828152600a602052604090206001015461148481612361565b61148e8383612968565b505050565b5f61149c612a5a565b905090565b73ffffffffffffffffffffffffffffffffffffffff81163314611546576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161115f565b6114668282612b90565b61155b336001612c49565b565b335f81815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091906110ed90829086906115a39087906156e0565b61236b565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e6115d281612361565b73ffffffffffffffffffffffffffffffffffffffff83165f9081526012602052604090205482151560ff909116151503611668576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f416c7265616479204f4b00000000000000000000000000000000000000000000604482015260640161115f565b5073ffffffffffffffffffffffffffffffffffffffff919091165f90815260126020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b601781815481106116cd575f80fd5b905f5260205f209060109182820401919006600202915054906101000a900461ffff1681565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e61171d81612361565b506018805462ffffff9092166301000000027fffffffffffffffffffffffffffffffffffffffffffffffffffff000000ffffff909216919091179055565b6127108161ffff16106117ca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600760248201527f546f6f2062696700000000000000000000000000000000000000000000000000604482015260640161115f565b601680547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff92909216919091179055565b611807612d5a565b61155b5f612ddb565b600e818154811061181f575f80fd5b5f9182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b73ffffffffffffffffffffffffffffffffffffffff81165f90815260076020526040812054610f3c565b5f606080828080836118a27f00000000000000000000000000000000000000000000000000000000000000006005612e51565b6118cd7f00000000000000000000000000000000000000000000000000000000000000006006612e51565b604080515f808252602082019092527f0f000000000000000000000000000000000000000000000000000000000000009b939a50919850469750309650945092509050565b60606004805461105f906155a4565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e61194b81612361565b73ffffffffffffffffffffffffffffffffffffffff83165f90815260136020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001683158015919091179091556119ac576113aa835f612efa565b6113aa836119b985613011565b612efa565b335f81815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919083811015611a81576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f000000000000000000000000000000000000000000000000000000606482015260840161115f565b6111fa828686840361236b565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e611ab881612361565b50601880547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000001662ffffff92909216919091179055565b5f336110ed818585612664565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604081208054808303611b3257505f9392505050565b5f611b3c826131ef565b6001840154909150808211611b5657505f95945050505050565b611b60818361561c565b9695505050505050565b600c818154811061181f575f80fd5b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e611ba381612361565b73ffffffffffffffffffffffffffffffffffffffff831615611c0057602180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff85161790555b73ffffffffffffffffffffffffffffffffffffffff82161561148e576022805473ffffffffffffffffffffffffffffffffffffffff84167fffffffffffffffffffffffff0000000000000000000000000000000000000000909116179055505050565b83421115611ccd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e65000000604482015260640161115f565b5f7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888611cfb8c613216565b60408051602081019690965273ffffffffffffffffffffffffffffffffffffffff94851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090505f611d6282613248565b90505f611d718287878761328f565b90508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611e08576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e61747572650000604482015260640161115f565b611e138a8a8a61236b565b50505050505050505050565b5f828152600a6020526040902060010154611e3981612361565b61148e8383612b90565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e611e6d81612361565b600f805484158015610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff9092169190911790915561148e5764e8d4a510008262ffffff161115611f1c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600760248201527f546f6f2042696700000000000000000000000000000000000000000000000000604482015260640161115f565b60648262ffffff161015611f8c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f546f6f20536d616c6c0000000000000000000000000000000000000000000000604482015260640161115f565b6018805462ffffff84166901000000000000000000027fffffffffffffffffffffffffffffffffffffffff000000ffffffffffffffffff909116179055505050565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e611ff881612361565b6101f461ffff87161180159061201457506101f461ffff861611155b801561202657506107d061ffff851611155b801561203857506101f461ffff841611155b801561204a57506101f461ffff831611155b6120b0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f466565203e204d41580000000000000000000000000000000000000000000000604482015260640161115f565b8560175f815481106120c4576120c4615686565b905f5260205f2090601091828204019190066002026101000a81548161ffff021916908361ffff1602179055508460176001600481111561210757612107615720565b8154811061211757612117615686565b905f5260205f2090601091828204019190066002026101000a81548161ffff021916908361ffff1602179055508360176002600481111561215a5761215a615720565b8154811061216a5761216a615686565b905f5260205f2090601091828204019190066002026101000a81548161ffff021916908361ffff160217905550826017600360048111156121ad576121ad615720565b815481106121bd576121bd615686565b905f5260205f2090601091828204019190066002026101000a81548161ffff021916908361ffff1602179055508160176004808111156121ff576121ff615720565b8154811061220f5761220f615686565b905f5260205f2090601091828204019190066002026101000a81548161ffff021916908361ffff160217905550505050505050565b61224c612d5a565b73ffffffffffffffffffffffffffffffffffffffff81166122ef576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161115f565b6122f881612ddb565b50565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e61232581612361565b506016805461ffff90921662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffff909216919091179055565b6122f881336132b7565b73ffffffffffffffffffffffffffffffffffffffff831661240d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161115f565b73ffffffffffffffffffffffffffffffffffffffff82166124b0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015260840161115f565b73ffffffffffffffffffffffffffffffffffffffff8381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b5f61252960028361574d565b5f03612541576b033b2e3c9fd0803ce8000000612543565b825b9050612550600283615673565b91505b8115610f3c576125638384613370565b925061257060028361574d565b156125825761257f8184613370565b90505b61258d600283615673565b9150612553565b73ffffffffffffffffffffffffffffffffffffffff8381165f908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146113aa5781811015612657576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161115f565b6113aa848484840361236b565b5f61266e846133ae565b90505f61267a846133ae565b305f9081526020819052604081205460185460025493945090926126b0916901000000000000000000900462ffffff1690615673565b600f54909150610100900460ff1680156126ca5750808210155b80156126f1575060225474010000000000000000000000000000000000000000900460ff16155b80156127175750600b5473ffffffffffffffffffffffffffffffffffffffff8781169116145b1561278d57602280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055612764816134e3565b602280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690555b5f848015612799575083155b80156127a75750601b544310155b156127d8576127c0876127bb600a89615673565b613b30565b6016549091506127d49061ffff16436156e0565b601b555b73ffffffffffffffffffffffffffffffffffffffff88165f9081526012602052604090205460ff16158015612832575073ffffffffffffffffffffffffffffffffffffffff87165f9081526012602052604090205460ff16155b15612893575f80612844888888613c00565b9092509050811561285c5761285c8a61036984613d4b565b801561286d5761286d8a3083613d4b565b61288c8a8a8361287d868d61561c565b612887919061561c565b613d4b565b505061289e565b61289e888888613d4b565b73ffffffffffffffffffffffffffffffffffffffff88165f9081526013602052604090205460ff166128d9576128d7886119b98a613011565b505b73ffffffffffffffffffffffffffffffffffffffff87165f9081526013602052604090205460ff1661291457612912876119b989613011565b505b600f5460ff168015612941575060225474010000000000000000000000000000000000000000900460ff16155b1561295e5760185461295e906301000000900462ffffff16613fff565b5050505050505050565b5f828152600a6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16611466575f828152600a6020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556129fc3390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b5f3073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016148015612abf57507f000000000000000000000000000000000000000000000000000000000000000046145b15612ae957507f000000000000000000000000000000000000000000000000000000000000000090565b61149c604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a08201525f9060c00160405160208183030381529060405280519060200120905090565b5f828152600a6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1615611466575f828152600a6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b73ffffffffffffffffffffffffffffffffffffffff82165f90815260106020526040812080549091819003612c7e5750505050565b5f612c8885611afc565b90508015612d53578315612cf557612cd773ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168683614165565b80836002015f828254612cea91906156e0565b90915550612d0c9050565b8060195f828254612d0691906156e0565b90915550505b80601e54612d1a91906156e0565b601e5573ffffffffffffffffffffffffffffffffffffffff85165f908152601460205260409020429055612d4d826131ef565b60018401555b5050505050565b60095473ffffffffffffffffffffffffffffffffffffffff16331461155b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161115f565b6009805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b606060ff8314612e6b57612e64836141f2565b9050610f3c565b818054612e77906155a4565b80601f0160208091040260200160405190810160405280929190818152602001828054612ea3906155a4565b8015612eee5780601f10612ec557610100808354040283529160200191612eee565b820191905f5260205f20905b815481529060010190602001808311612ed157829003601f168201915b50505050509050610f3c565b73ffffffffffffffffffffffffffffffffffffffff82165f9081526010602052604081208054838114613009578015612f3e57612f39855f8611612c49565b600192505b835f03612f5357612f4e8561422f565b612fdb565b805f03612fdb57600e805473ffffffffffffffffffffffffffffffffffffffff87165f818152601560205260408120839055600183018455929092527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690911790555b8381602054612fea919061561c565b612ff491906156e0565b602055838255613003846131ef565b60018301555b505092915050565b600b546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301525f9283929116906370a0823190602401602060405180830381865afa158015613082573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906130a69190615760565b600c549091505f5b8181101561319e57601654600c805460649262010000900461ffff169190849081106130dc576130dc615686565b5f918252602090912001546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8981166004830152909116906370a0823190602401602060405180830381865afa158015613152573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906131769190615760565b613180919061562f565b61318a9190615673565b61319490846156e0565b92506001016130ae565b50601854612710906131b690849062ffffff1661562f565b6131c09190615673565b73ffffffffffffffffffffffffffffffffffffffff85165f908152602081905260409020546111d891906156e0565b601c545f906b033b2e3c9fd0803ce80000009061320c908461562f565b610f3c9190615673565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526007602052604090208054600181018255906111dc565b5f610f3c613254612a5a565b836040517f19010000000000000000000000000000000000000000000000000000000000008152600281019290925260228201526042902090565b5f805f61329e878787876143b6565b915091506132ab8161449e565b5090505b949350505050565b5f828152600a6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16611466576132f681614650565b61330183602061466f565b604051602001613312929190615777565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a000000000000000000000000000000000000000000000000000000000825261115f91600401615290565b5f6b033b2e3c9fd0803ce800000061339d61338b85856148ac565b6b019d971e4fe8401e74000000614935565b6133a79190615673565b9392505050565b5f8173ffffffffffffffffffffffffffffffffffffffff163b5f036133d457505f919050565b73ffffffffffffffffffffffffffffffffffffffff82165f9081526011602052604090205460ff166134b8575f8061340b846149ac565b909250905073ffffffffffffffffffffffffffffffffffffffff82161580159061344a575073ffffffffffffffffffffffffffffffffffffffff811615155b156134b55773ffffffffffffffffffffffffffffffffffffffff84165f908152601160209081526040808320805460017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00918216811790925560139093529220805490911690911790555b50505b5073ffffffffffffffffffffffffffffffffffffffff165f9081526011602052604090205460ff1690565b805f036134ed5750565b604080516003808252608082019092525f916020820160608036833701905050905030815f8151811061352257613522615686565b73ffffffffffffffffffffffffffffffffffffffff928316602091820292909201810191909152600d54604080517fef8ef56f0000000000000000000000000000000000000000000000000000000081529051919093169263ef8ef56f9260048083019391928290030181865afa15801561359f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906135c391906157f7565b816001815181106135d6576135d6615686565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f00000000000000000000000000000000000000000000000000000000000000008160028151811061364457613644615686565b73ffffffffffffffffffffffffffffffffffffffff92831660209182029290920101526040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201525f917f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa1580156136dc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906137009190615760565b600d5490915061372890309073ffffffffffffffffffffffffffffffffffffffff168561236b565b600d546040517f5c11d79500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90911690635c11d795906137869086905f90879030904290600401615812565b5f604051808303815f87803b15801561379d575f80fd5b505af11580156137af573d5f803e3d5ffd5b50506040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201525f925082915073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa15801561383f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906138639190615760565b90508281111561387a57613877838261561c565b91505b8115612d53575f61388e612710600261589d565b61ffff1660176002815481106138a6576138a6615686565b5f91825260209091206010820401546138cf91600f166002026101000a900461ffff168561562f565b6138d99190615673565b90505f805f601954111561390d5760026019546138f69190615673565b915081601954613906919061561c565b5f60195590505b60215473ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081169163a9059cbb911661395a84876156e0565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff909216600483015260248201526044016020604051808303815f875af11580156139c7573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906139eb91906158bb565b5060225473ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081169163a9059cbb9116613a3985876156e0565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff909216600483015260248201526044016020604051808303815f875af1158015613aa6573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613aca91906158bb565b50613ad683600261562f565b613ae0908661561c565b945084601f54613af091906156e0565b601f55602054613b0c866b033b2e3c9fd0803ce800000061562f565b613b169190615673565b601c54613b2391906156e0565b601c555050505050505050565b6023545f9042908111613b435750610f3c565b5f613b4d826110f7565b9050838110613b7e57613b60848261561c565b601d5f828254613b7091906156e0565b90915550849350613bd89050565b601d5415613bd4575f613b91828661561c565b9050601d548110613bb457601d54613ba990836156e0565b5f601d559350613bce565b84935080601d5f828254613bc8919061561c565b90915550505b50613bd8565b8092505b8160238190555080601a5f828254613bf0919061561c565b9091555061300990508584614a28565b5f808215613ca5576127106017600381548110613c1f57613c1f615686565b5f9182526020909120601082040154613c4891600f166002026101000a900461ffff168761562f565b613c529190615673565b91506127106017600481548110613c6b57613c6b615686565b5f9182526020909120601082040154613c9491600f166002026101000a900461ffff168761562f565b613c9e9190615673565b9050613d43565b8315613d435761271060175f81548110613cc157613cc1615686565b5f9182526020909120601082040154613cea91600f166002026101000a900461ffff168761562f565b613cf49190615673565b91506127106017600181548110613d0d57613d0d615686565b5f9182526020909120601082040154613d3691600f166002026101000a900461ffff168761562f565b613d409190615673565b90505b935093915050565b73ffffffffffffffffffffffffffffffffffffffff8316613dee576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161115f565b73ffffffffffffffffffffffffffffffffffffffff8216613e91576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161115f565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc9773ffffffffffffffffffffffffffffffffffffffff831601613ed85761148e8382614b19565b73ffffffffffffffffffffffffffffffffffffffff83165f9081526020819052604090205481811015613f8d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e63650000000000000000000000000000000000000000000000000000606482015260840161115f565b73ffffffffffffffffffffffffffffffffffffffff8481165f81815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36113aa565b600e545f81900361400e575050565b5f805a90505f5b848310801561402357508381105b15612d53576018546c01000000000000000000000000900463ffffffff16841161407057601880547fffffffffffffffffffffffffffffffff00000000ffffffffffffffffffffffff1690555b601854600e80545f926c01000000000000000000000000900463ffffffff1690811061409e5761409e615686565b5f91825260208220015473ffffffffffffffffffffffffffffffffffffffff1691506140cd826119b981613011565b9050801580156140e157506140e182614cdf565b156140f1576140f1826001612c49565b601880546c01000000000000000000000000900463ffffffff1690600c614117836158d6565b91906101000a81548163ffffffff021916908363ffffffff160217905550508280614141906158f8565b9350505a61414f908561561c565b61415990866156e0565b94505a93505050614015565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905261148e908490614d61565b60605f6141fe83614e6e565b6040805160208082528183019092529192505f91906020820181803683375050509182525060208101929092525090565b73ffffffffffffffffffffffffffffffffffffffff81165f90815260156020526040902054600e5461426260018261561c565b821015614321575f600e61427760018461561c565b8154811061428757614287615686565b5f91825260209091200154600e805473ffffffffffffffffffffffffffffffffffffffff90921692508291859081106142c2576142c2615686565b5f91825260208083209190910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9485161790559290911681526015909152604090208290555b600e805480614332576143326156b3565b5f828152602080822083017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff000000000000000000000000000000000000000016905590920190925573ffffffffffffffffffffffffffffffffffffffff949094168152601590935250506040812055565b5f807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156143eb57505f90506003614495565b604080515f8082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561443c573d5f803e3d5ffd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811661448f575f60019250925050614495565b91505f90505b94509492505050565b5f8160048111156144b1576144b1615720565b036144b95750565b60018160048111156144cd576144cd615720565b03614534576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161115f565b600281600481111561454857614548615720565b036145af576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161115f565b60038160048111156145c3576145c3615720565b036122f8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161115f565b6060610f3c73ffffffffffffffffffffffffffffffffffffffff831660145b60605f61467d83600261562f565b6146889060026156e0565b67ffffffffffffffff8111156146a0576146a06156f3565b6040519080825280601f01601f1916602001820160405280156146ca576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000815f8151811061470057614700615686565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061476257614762615686565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053505f61479c84600261562f565b6147a79060016156e0565b90505b6001811115614843577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106147e8576147e8615686565b1a60f81b8282815181106147fe576147fe615686565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a90535060049490941c9361483c8161592f565b90506147aa565b5083156133a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161115f565b5f8115806148cf575082826148c1818361562f565b92506148cd9083615673565b145b610f3c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6d756c2d6f766572666c6f77000000000000000000000000604482015260640161115f565b5f8261494183826156e0565b9150811015610f3c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6164642d6f766572666c6f77000000000000000000000000604482015260640161115f565b5f806149d8837f0dfe168100000000000000000000000000000000000000000000000000000000614eae565b915073ffffffffffffffffffffffffffffffffffffffff821615614a2357614a20837fd21220a700000000000000000000000000000000000000000000000000000000614eae565b90505b915091565b73ffffffffffffffffffffffffffffffffffffffff8216614aa5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161115f565b8060025f828254614ab691906156e0565b909155505073ffffffffffffffffffffffffffffffffffffffff82165f81815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b73ffffffffffffffffffffffffffffffffffffffff8216614bbc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f7300000000000000000000000000000000000000000000000000000000000000606482015260840161115f565b73ffffffffffffffffffffffffffffffffffffffff82165f9081526020819052604090205481811015614c71576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f6365000000000000000000000000000000000000000000000000000000000000606482015260840161115f565b73ffffffffffffffffffffffffffffffffffffffff83165f81815260208181526040918290208585039055600280548690039055905184815261036992917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b60185473ffffffffffffffffffffffffffffffffffffffff82165f9081526014602052604081205490914291614d24916601000000000000900462ffffff16906156e0565b108015610f3c575060185470010000000000000000000000000000000090046bffffffffffffffffffffffff16614d5a83611afc565b1192915050565b5f614dc2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16614fbd9092919063ffffffff16565b905080515f1480614de2575080806020019051810190614de291906158bb565b61148e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161115f565b5f60ff8216601f811115610f3c576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051600481526024810182526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000851617905290515f918291829173ffffffffffffffffffffffffffffffffffffffff871691614f309190615963565b5f60405180830381855afa9150503d805f8114614f68576040519150601f19603f3d011682016040523d82523d5f602084013e614f6d565b606091505b5091509150811580614f7e57508051155b15614f8d575f92505050610f3c565b8051602003614fb35780806020019051810190614faa91906157f7565b92505050610f3c565b505f949350505050565b60606132af84845f85855f808673ffffffffffffffffffffffffffffffffffffffff168587604051614fef9190615963565b5f6040518083038185875af1925050503d805f8114615029576040519150601f19603f3d011682016040523d82523d5f602084013e61502e565b606091505b509150915061503f8783838761504a565b979650505050505050565b606083156150df5782515f036150d85773ffffffffffffffffffffffffffffffffffffffff85163b6150d8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161115f565b50816132af565b6132af83838151156150f45781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115f9190615290565b73ffffffffffffffffffffffffffffffffffffffff811681146122f8575f80fd5b5f60208284031215615159575f80fd5b81356133a781615128565b5f60208284031215615174575f80fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146133a7575f80fd5b80151581146122f8575f80fd5b5f602082840312156151c0575f80fd5b81356133a7816151a3565b803562ffffff811681146151dd575f80fd5b919050565b5f80604083850312156151f3575f80fd5b6151fc836151cb565b9150602083013569ffffffffffffffffffff8116811461521a575f80fd5b809150509250929050565b5f5b8381101561523f578181015183820152602001615227565b50505f910152565b5f815180845261525e816020860160208601615225565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081525f6133a76020830184615247565b5f80604083850312156152b3575f80fd5b82356152be81615128565b946020939093013593505050565b5f602082840312156152dc575f80fd5b5035919050565b5f805f606084860312156152f5575f80fd5b833561530081615128565b9250602084013561531081615128565b929592945050506040919091013590565b5f8060408385031215615332575f80fd5b82359150602083013561521a81615128565b5f8060408385031215615355575f80fd5b823561536081615128565b9150602083013561521a816151a3565b5f60208284031215615380575f80fd5b6133a7826151cb565b803561ffff811681146151dd575f80fd5b5f602082840312156153aa575f80fd5b6133a782615389565b7fff00000000000000000000000000000000000000000000000000000000000000881681525f602060e060208401526153ef60e084018a615247565b8381036040850152615401818a615247565b6060850189905273ffffffffffffffffffffffffffffffffffffffff8816608086015260a0850187905284810360c0860152855180825260208088019350909101905f5b8181101561546157835183529284019291840191600101615445565b50909c9b505050505050505050505050565b5f8060408385031215615484575f80fd5b823561548f81615128565b9150602083013561521a81615128565b5f805f805f805f60e0888a0312156154b5575f80fd5b87356154c081615128565b965060208801356154d081615128565b95506040880135945060608801359350608088013560ff811681146154f3575f80fd5b9699959850939692959460a0840135945060c09093013592915050565b5f8060408385031215615521575f80fd5b823561552c816151a3565b915061553a602084016151cb565b90509250929050565b5f805f805f60a08688031215615557575f80fd5b61556086615389565b945061556e60208701615389565b935061557c60408701615389565b925061558a60608701615389565b915061559860808701615389565b90509295509295909350565b600181811c908216806155b857607f821691505b6020821081036111dc577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b81810381811115610f3c57610f3c6155ef565b8082028115828204841417610f3c57610f3c6155ef565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f8261568157615681615646565b500490565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffd5b80820180821115610f3c57610f3c6155ef565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b5f8261575b5761575b615646565b500690565b5f60208284031215615770575f80fd5b5051919050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081525f83516157ae816017850160208801615225565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516157eb816028840160208801615225565b01602801949350505050565b5f60208284031215615807575f80fd5b81516133a781615128565b5f60a08201878352602087602085015260a0604085015281875180845260c0860191506020890193505f5b8181101561586f57845173ffffffffffffffffffffffffffffffffffffffff168352938301939183019160010161583d565b505073ffffffffffffffffffffffffffffffffffffffff969096166060850152505050608001529392505050565b61ffff818116838216028082169190828114613009576130096155ef565b5f602082840312156158cb575f80fd5b81516133a7816151a3565b5f63ffffffff8083168181036158ee576158ee6155ef565b6001019392505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203615928576159286155ef565b5060010190565b5f8161593d5761593d6155ef565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b5f8251615974818460208701615225565b919091019291505056fea26469706673582212203b4544a3366c37374ec04099ac759e58c9941ea13478dd4e6b8c61dc683c943f64736f6c63430008170033000000000000000000000000165c3410fc91ef562c50559f7d2289febed552d90000000000000000000000007901a3569679aec3501dbec59399f327854a70fe000000000000000000000000fb7103d7011dfa60c18c6961c5a38038d8048fe0000000000000000000000000f66acd0cf50e406196c42a010de46228e4081fed

Deployed ByteCode

0x60806040526004361061046b575f3560e01c80636ddd171311610251578063a9059cbb1161013c578063d547741f116100b7578063f206d32a11610087578063f57e23681161006d578063f57e236814610e61578063f9fda8e414610e76578063fe8f254e14610e95575f80fd5b8063f206d32a14610e23578063f2fde38b14610e42575f80fd5b8063d547741f14610d7f578063dd62ed3e14610d9e578063def89c8314610def578063e7b0f66614610e0e575f80fd5b8063b58ca5e91161010c578063d246d411116100f2578063d246d41114610d2c578063d49a47e114610d41578063d505accf14610d60575f80fd5b8063b58ca5e914610cb8578063ba16d60014610cd7575f80fd5b8063a9059cbb14610c33578063aada9c3814610c52578063ae2e9bcb14610c71578063b0249cc614610c8a575f80fd5b806395d89b41116101cc578063a1fb098e1161019c578063a35346c111610182578063a35346c114610bd6578063a457c2d714610bf5578063a83f37e814610c14575f80fd5b8063a1fb098e14610b98578063a217fddf14610bc3575f80fd5b806395d89b4114610b025780639d8cedd814610b16578063a0aa6c6514610b42578063a146a55b14610b57575f80fd5b80637ecebe00116102215780638da5cb5b116102075780638da5cb5b14610a7257806391d1485414610a9c57806393c9738214610aed575f80fd5b80637ecebe0014610a2c57806384b0196e14610a4b575f80fd5b80636ddd17131461099a57806370a08231146109b8578063715018a6146109f95780637ad71f7214610a0d575f80fd5b8063313ce567116103715780633f9645c1116102ec578063500e68e9116102bc57806351317f15116102a257806351317f15146109425780635af70b381461095c5780635fa7e9261461097b575f80fd5b8063500e68e9146108cb578063501d815c14610920575f80fd5b80633f9645c11461082757806342701a8e146108555780634acc79ed146108745780634b0432f2146108a6575f80fd5b806338b7f446116103415780633a98ef39116103275780633a98ef39146107bf5780633c5d3b5a146107d45780633d78d410146107fc575f80fd5b806338b7f4461461076d57806339509351146107a0575f80fd5b8063313ce5671461070b5780633644e5151461072657806336568abe1461073a5780633756329314610759575f80fd5b80630ac721941161040157806323b872dd116103d1578063256addfb116103b7578063256addfb146106ae5780632a8d9c14146106cd5780632f2ff15d146106ec575f80fd5b806323b872dd14610661578063248a9ca314610680575f80fd5b80630ac72194146105d657806318160ddd146106095780631a6611811461061d5780631cc3785e14610632575f80fd5b806306fdde031161043c57806306fdde03146105185780630758d92414610539578063095ea7b31461058a57806309f3ad26146105a9575f80fd5b80622a20501461047657806301ffc9a7146104b957806303f21e01146104d857806305a0ba8d146104f9575f80fd5b3661047257005b5f80fd5b348015610481575f80fd5b506104a4610490366004615149565b60126020525f908152604090205460ff1681565b60405190151581526020015b60405180910390f35b3480156104c4575f80fd5b506104a46104d3366004615164565b610eaa565b3480156104e3575f80fd5b506104f76104f23660046151b0565b610f42565b005b348015610504575f80fd5b506104f76105133660046151e2565b610f9e565b348015610523575f80fd5b5061052c611050565b6040516104b09190615290565b348015610544575f80fd5b50600d546105659073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016104b0565b348015610595575f80fd5b506104a46105a43660046152a2565b6110e0565b3480156105b4575f80fd5b506105c86105c33660046152cc565b6110f7565b6040519081526020016104b0565b3480156105e1575f80fd5b506105657f0000000000000000000000007901a3569679aec3501dbec59399f327854a70fe81565b348015610614575f80fd5b506002546105c8565b348015610628575f80fd5b506105c8601f5481565b34801561063d575f80fd5b5060185461064d9062ffffff1681565b60405162ffffff90911681526020016104b0565b34801561066c575f80fd5b506104a461067b3660046152e3565b6111e2565b34801561068b575f80fd5b506105c861069a3660046152cc565b5f908152600a602052604090206001015490565b3480156106b9575f80fd5b506104f76106c8366004615149565b611205565b3480156106d8575f80fd5b506104f76106e7366004615149565b6113b0565b3480156106f7575f80fd5b506104f7610706366004615321565b61146a565b348015610716575f80fd5b50604051601281526020016104b0565b348015610731575f80fd5b506105c8611493565b348015610745575f80fd5b506104f7610754366004615321565b6114a1565b348015610764575f80fd5b506104f7611550565b348015610778575f80fd5b506105c87f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e81565b3480156107ab575f80fd5b506104a46107ba3660046152a2565b61155d565b3480156107ca575f80fd5b506105c860205481565b3480156107df575f80fd5b5060185461064d906901000000000000000000900462ffffff1681565b348015610807575f80fd5b506105c8610816366004615149565b60156020525f908152604090205481565b348015610832575f80fd5b506104a4610841366004615149565b60136020525f908152604090205460ff1681565b348015610860575f80fd5b506104f761086f366004615344565b6115a8565b34801561087f575f80fd5b5061089361088e3660046152cc565b6116be565b60405161ffff90911681526020016104b0565b3480156108b1575f80fd5b5060185461064d906601000000000000900462ffffff1681565b3480156108d6575f80fd5b506109056108e5366004615149565b60106020525f908152604090208054600182015460029092015490919083565b604080519384526020840192909252908201526060016104b0565b34801561092b575f80fd5b5060185461064d906301000000900462ffffff1681565b34801561094d575f80fd5b506016546108939061ffff1681565b348015610967575f80fd5b506104f7610976366004615370565b6116f3565b348015610986575f80fd5b506104f761099536600461539a565b61175b565b3480156109a5575f80fd5b50600f546104a490610100900460ff1681565b3480156109c3575f80fd5b506105c86109d2366004615149565b73ffffffffffffffffffffffffffffffffffffffff165f9081526020819052604090205490565b348015610a04575f80fd5b506104f76117ff565b348015610a18575f80fd5b50610565610a273660046152cc565b611810565b348015610a37575f80fd5b506105c8610a46366004615149565b611845565b348015610a56575f80fd5b50610a5f61186f565b6040516104b097969594939291906153b3565b348015610a7d575f80fd5b5060095473ffffffffffffffffffffffffffffffffffffffff16610565565b348015610aa7575f80fd5b506104a4610ab6366004615321565b5f918252600a6020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b348015610af8575f80fd5b506105c8601b5481565b348015610b0d575f80fd5b5061052c611912565b348015610b21575f80fd5b50600b546105659073ffffffffffffffffffffffffffffffffffffffff1681565b348015610b4d575f80fd5b506105c8601d5481565b348015610b62575f80fd5b50601854610b83906c01000000000000000000000000900463ffffffff1681565b60405163ffffffff90911681526020016104b0565b348015610ba3575f80fd5b506105c8610bb2366004615149565b60146020525f908152604090205481565b348015610bce575f80fd5b506105c85f81565b348015610be1575f80fd5b506104f7610bf0366004615344565b611921565b348015610c00575f80fd5b506104a4610c0f3660046152a2565b6119be565b348015610c1f575f80fd5b506104f7610c2e366004615370565b611a8e565b348015610c3e575f80fd5b506104a4610c4d3660046152a2565b611aef565b348015610c5d575f80fd5b506105c8610c6c366004615149565b611afc565b348015610c7c575f80fd5b50600f546104a49060ff1681565b348015610c95575f80fd5b506104a4610ca4366004615149565b60116020525f908152604090205460ff1681565b348015610cc3575f80fd5b50610565610cd23660046152cc565b611b6a565b348015610ce2575f80fd5b50601854610d0f9070010000000000000000000000000000000090046bffffffffffffffffffffffff1681565b6040516bffffffffffffffffffffffff90911681526020016104b0565b348015610d37575f80fd5b5061056561036981565b348015610d4c575f80fd5b506104f7610d5b366004615473565b611b79565b348015610d6b575f80fd5b506104f7610d7a36600461549f565b611c63565b348015610d8a575f80fd5b506104f7610d99366004615321565b611e1f565b348015610da9575f80fd5b506105c8610db8366004615473565b73ffffffffffffffffffffffffffffffffffffffff9182165f90815260016020908152604080832093909416825291909152205490565b348015610dfa575f80fd5b506104f7610e09366004615510565b611e43565b348015610e19575f80fd5b506105c8601e5481565b348015610e2e575f80fd5b506104f7610e3d366004615543565b611fce565b348015610e4d575f80fd5b506104f7610e5c366004615149565b612244565b348015610e6c575f80fd5b506105c8601a5481565b348015610e81575f80fd5b506104f7610e9036600461539a565b6122fb565b348015610ea0575f80fd5b506105c8601c5481565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610f3c57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e610f6c81612361565b50600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e610fc881612361565b50601880547fffffffff000000000000000000000000ffffffffffffff000000ffffffffffff16660100000000000062ffffff94909416939093027fffffffff000000000000000000000000ffffffffffffffffffffffffffffffff169290921769ffffffffffffffffffff9190911670010000000000000000000000000000000002179055565b60606003805461105f906155a4565b80601f016020809104026020016040519081016040528092919081815260200182805461108b906155a4565b80156110d65780601f106110ad576101008083540402835291602001916110d6565b820191905f5260205f20905b8154815290600101906020018083116110b957829003601f168201915b5050505050905090565b5f336110ed81858561236b565b5060019392505050565b5f6023545f03611168576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4e6f20426f6e757320796574210000000000000000000000000000000000000060448201526064015b60405180910390fd5b5f60235483611177919061561c565b905080156111dc575f6111966b033b2e3c73d26608860300008361251d565b90506b033b2e3c9fd0803ce80000006bffffffffffffffffffffffff1681601a546111c1919061562f565b6111cb9190615673565b601a546111d8919061561c565b9250505b50919050565b5f336111ef858285612594565b6111fa858585612664565b506001949350505050565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e61122f81612361565b600c545f5b818110156113aa578373ffffffffffffffffffffffffffffffffffffffff16600c828154811061126657611266615686565b5f9182526020909120015473ffffffffffffffffffffffffffffffffffffffff16036113a25761129760018361561c565b81101561133957600c6112ab60018461561c565b815481106112bb576112bb615686565b5f91825260209091200154600c805473ffffffffffffffffffffffffffffffffffffffff90921691839081106112f3576112f3615686565b905f5260205f20015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600c80548061134a5761134a6156b3565b5f8281526020902081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690550190555b600101611234565b50505050565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e6113da81612361565b73ffffffffffffffffffffffffffffffffffffffff82161561146657600c80546001810182555f919091527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84161790555b5050565b5f828152600a602052604090206001015461148481612361565b61148e8383612968565b505050565b5f61149c612a5a565b905090565b73ffffffffffffffffffffffffffffffffffffffff81163314611546576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161115f565b6114668282612b90565b61155b336001612c49565b565b335f81815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091906110ed90829086906115a39087906156e0565b61236b565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e6115d281612361565b73ffffffffffffffffffffffffffffffffffffffff83165f9081526012602052604090205482151560ff909116151503611668576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f416c7265616479204f4b00000000000000000000000000000000000000000000604482015260640161115f565b5073ffffffffffffffffffffffffffffffffffffffff919091165f90815260126020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b601781815481106116cd575f80fd5b905f5260205f209060109182820401919006600202915054906101000a900461ffff1681565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e61171d81612361565b506018805462ffffff9092166301000000027fffffffffffffffffffffffffffffffffffffffffffffffffffff000000ffffff909216919091179055565b6127108161ffff16106117ca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600760248201527f546f6f2062696700000000000000000000000000000000000000000000000000604482015260640161115f565b601680547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff92909216919091179055565b611807612d5a565b61155b5f612ddb565b600e818154811061181f575f80fd5b5f9182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b73ffffffffffffffffffffffffffffffffffffffff81165f90815260076020526040812054610f3c565b5f606080828080836118a27f50756c70436f696e0000000000000000000000000000000000000000000000086005612e51565b6118cd7f31000000000000000000000000000000000000000000000000000000000000016006612e51565b604080515f808252602082019092527f0f000000000000000000000000000000000000000000000000000000000000009b939a50919850469750309650945092509050565b60606004805461105f906155a4565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e61194b81612361565b73ffffffffffffffffffffffffffffffffffffffff83165f90815260136020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001683158015919091179091556119ac576113aa835f612efa565b6113aa836119b985613011565b612efa565b335f81815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919083811015611a81576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f000000000000000000000000000000000000000000000000000000606482015260840161115f565b6111fa828686840361236b565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e611ab881612361565b50601880547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000001662ffffff92909216919091179055565b5f336110ed818585612664565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526010602052604081208054808303611b3257505f9392505050565b5f611b3c826131ef565b6001840154909150808211611b5657505f95945050505050565b611b60818361561c565b9695505050505050565b600c818154811061181f575f80fd5b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e611ba381612361565b73ffffffffffffffffffffffffffffffffffffffff831615611c0057602180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff85161790555b73ffffffffffffffffffffffffffffffffffffffff82161561148e576022805473ffffffffffffffffffffffffffffffffffffffff84167fffffffffffffffffffffffff0000000000000000000000000000000000000000909116179055505050565b83421115611ccd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e65000000604482015260640161115f565b5f7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888611cfb8c613216565b60408051602081019690965273ffffffffffffffffffffffffffffffffffffffff94851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090505f611d6282613248565b90505f611d718287878761328f565b90508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611e08576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e61747572650000604482015260640161115f565b611e138a8a8a61236b565b50505050505050505050565b5f828152600a6020526040902060010154611e3981612361565b61148e8383612b90565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e611e6d81612361565b600f805484158015610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff9092169190911790915561148e5764e8d4a510008262ffffff161115611f1c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600760248201527f546f6f2042696700000000000000000000000000000000000000000000000000604482015260640161115f565b60648262ffffff161015611f8c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f546f6f20536d616c6c0000000000000000000000000000000000000000000000604482015260640161115f565b6018805462ffffff84166901000000000000000000027fffffffffffffffffffffffffffffffffffffffff000000ffffffffffffffffff909116179055505050565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e611ff881612361565b6101f461ffff87161180159061201457506101f461ffff861611155b801561202657506107d061ffff851611155b801561203857506101f461ffff841611155b801561204a57506101f461ffff831611155b6120b0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f466565203e204d41580000000000000000000000000000000000000000000000604482015260640161115f565b8560175f815481106120c4576120c4615686565b905f5260205f2090601091828204019190066002026101000a81548161ffff021916908361ffff1602179055508460176001600481111561210757612107615720565b8154811061211757612117615686565b905f5260205f2090601091828204019190066002026101000a81548161ffff021916908361ffff1602179055508360176002600481111561215a5761215a615720565b8154811061216a5761216a615686565b905f5260205f2090601091828204019190066002026101000a81548161ffff021916908361ffff160217905550826017600360048111156121ad576121ad615720565b815481106121bd576121bd615686565b905f5260205f2090601091828204019190066002026101000a81548161ffff021916908361ffff1602179055508160176004808111156121ff576121ff615720565b8154811061220f5761220f615686565b905f5260205f2090601091828204019190066002026101000a81548161ffff021916908361ffff160217905550505050505050565b61224c612d5a565b73ffffffffffffffffffffffffffffffffffffffff81166122ef576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161115f565b6122f881612ddb565b50565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e61232581612361565b506016805461ffff90921662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffff909216919091179055565b6122f881336132b7565b73ffffffffffffffffffffffffffffffffffffffff831661240d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161115f565b73ffffffffffffffffffffffffffffffffffffffff82166124b0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015260840161115f565b73ffffffffffffffffffffffffffffffffffffffff8381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b5f61252960028361574d565b5f03612541576b033b2e3c9fd0803ce8000000612543565b825b9050612550600283615673565b91505b8115610f3c576125638384613370565b925061257060028361574d565b156125825761257f8184613370565b90505b61258d600283615673565b9150612553565b73ffffffffffffffffffffffffffffffffffffffff8381165f908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146113aa5781811015612657576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161115f565b6113aa848484840361236b565b5f61266e846133ae565b90505f61267a846133ae565b305f9081526020819052604081205460185460025493945090926126b0916901000000000000000000900462ffffff1690615673565b600f54909150610100900460ff1680156126ca5750808210155b80156126f1575060225474010000000000000000000000000000000000000000900460ff16155b80156127175750600b5473ffffffffffffffffffffffffffffffffffffffff8781169116145b1561278d57602280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055612764816134e3565b602280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690555b5f848015612799575083155b80156127a75750601b544310155b156127d8576127c0876127bb600a89615673565b613b30565b6016549091506127d49061ffff16436156e0565b601b555b73ffffffffffffffffffffffffffffffffffffffff88165f9081526012602052604090205460ff16158015612832575073ffffffffffffffffffffffffffffffffffffffff87165f9081526012602052604090205460ff16155b15612893575f80612844888888613c00565b9092509050811561285c5761285c8a61036984613d4b565b801561286d5761286d8a3083613d4b565b61288c8a8a8361287d868d61561c565b612887919061561c565b613d4b565b505061289e565b61289e888888613d4b565b73ffffffffffffffffffffffffffffffffffffffff88165f9081526013602052604090205460ff166128d9576128d7886119b98a613011565b505b73ffffffffffffffffffffffffffffffffffffffff87165f9081526013602052604090205460ff1661291457612912876119b989613011565b505b600f5460ff168015612941575060225474010000000000000000000000000000000000000000900460ff16155b1561295e5760185461295e906301000000900462ffffff16613fff565b5050505050505050565b5f828152600a6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16611466575f828152600a6020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556129fc3390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b5f3073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000e525c73d139d7fa2dfa27eb5a6324f3a7c80416416148015612abf57507f000000000000000000000000000000000000000000000000000000000000017146145b15612ae957507f4f9ae23826bf0628d3d842a14e13819ad09f1948526e7c1f5505ad0b22024b4c90565b61149c604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f69a0744595c0c6cff075813e193edb4f83fa3b4c5e93e510ae00ece7779a7f0c918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a08201525f9060c00160405160208183030381529060405280519060200120905090565b5f828152600a6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1615611466575f828152600a6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b73ffffffffffffffffffffffffffffffffffffffff82165f90815260106020526040812080549091819003612c7e5750505050565b5f612c8885611afc565b90508015612d53578315612cf557612cd773ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000007901a3569679aec3501dbec59399f327854a70fe168683614165565b80836002015f828254612cea91906156e0565b90915550612d0c9050565b8060195f828254612d0691906156e0565b90915550505b80601e54612d1a91906156e0565b601e5573ffffffffffffffffffffffffffffffffffffffff85165f908152601460205260409020429055612d4d826131ef565b60018401555b5050505050565b60095473ffffffffffffffffffffffffffffffffffffffff16331461155b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161115f565b6009805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b606060ff8314612e6b57612e64836141f2565b9050610f3c565b818054612e77906155a4565b80601f0160208091040260200160405190810160405280929190818152602001828054612ea3906155a4565b8015612eee5780601f10612ec557610100808354040283529160200191612eee565b820191905f5260205f20905b815481529060010190602001808311612ed157829003601f168201915b50505050509050610f3c565b73ffffffffffffffffffffffffffffffffffffffff82165f9081526010602052604081208054838114613009578015612f3e57612f39855f8611612c49565b600192505b835f03612f5357612f4e8561422f565b612fdb565b805f03612fdb57600e805473ffffffffffffffffffffffffffffffffffffffff87165f818152601560205260408120839055600183018455929092527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690911790555b8381602054612fea919061561c565b612ff491906156e0565b602055838255613003846131ef565b60018301555b505092915050565b600b546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301525f9283929116906370a0823190602401602060405180830381865afa158015613082573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906130a69190615760565b600c549091505f5b8181101561319e57601654600c805460649262010000900461ffff169190849081106130dc576130dc615686565b5f918252602090912001546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8981166004830152909116906370a0823190602401602060405180830381865afa158015613152573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906131769190615760565b613180919061562f565b61318a9190615673565b61319490846156e0565b92506001016130ae565b50601854612710906131b690849062ffffff1661562f565b6131c09190615673565b73ffffffffffffffffffffffffffffffffffffffff85165f908152602081905260409020546111d891906156e0565b601c545f906b033b2e3c9fd0803ce80000009061320c908461562f565b610f3c9190615673565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526007602052604090208054600181018255906111dc565b5f610f3c613254612a5a565b836040517f19010000000000000000000000000000000000000000000000000000000000008152600281019290925260228201526042902090565b5f805f61329e878787876143b6565b915091506132ab8161449e565b5090505b949350505050565b5f828152600a6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16611466576132f681614650565b61330183602061466f565b604051602001613312929190615777565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a000000000000000000000000000000000000000000000000000000000825261115f91600401615290565b5f6b033b2e3c9fd0803ce800000061339d61338b85856148ac565b6b019d971e4fe8401e74000000614935565b6133a79190615673565b9392505050565b5f8173ffffffffffffffffffffffffffffffffffffffff163b5f036133d457505f919050565b73ffffffffffffffffffffffffffffffffffffffff82165f9081526011602052604090205460ff166134b8575f8061340b846149ac565b909250905073ffffffffffffffffffffffffffffffffffffffff82161580159061344a575073ffffffffffffffffffffffffffffffffffffffff811615155b156134b55773ffffffffffffffffffffffffffffffffffffffff84165f908152601160209081526040808320805460017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00918216811790925560139093529220805490911690911790555b50505b5073ffffffffffffffffffffffffffffffffffffffff165f9081526011602052604090205460ff1690565b805f036134ed5750565b604080516003808252608082019092525f916020820160608036833701905050905030815f8151811061352257613522615686565b73ffffffffffffffffffffffffffffffffffffffff928316602091820292909201810191909152600d54604080517fef8ef56f0000000000000000000000000000000000000000000000000000000081529051919093169263ef8ef56f9260048083019391928290030181865afa15801561359f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906135c391906157f7565b816001815181106135d6576135d6615686565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007901a3569679aec3501dbec59399f327854a70fe8160028151811061364457613644615686565b73ffffffffffffffffffffffffffffffffffffffff92831660209182029290920101526040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201525f917f0000000000000000000000007901a3569679aec3501dbec59399f327854a70fe16906370a0823190602401602060405180830381865afa1580156136dc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906137009190615760565b600d5490915061372890309073ffffffffffffffffffffffffffffffffffffffff168561236b565b600d546040517f5c11d79500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90911690635c11d795906137869086905f90879030904290600401615812565b5f604051808303815f87803b15801561379d575f80fd5b505af11580156137af573d5f803e3d5ffd5b50506040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201525f925082915073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000007901a3569679aec3501dbec59399f327854a70fe16906370a0823190602401602060405180830381865afa15801561383f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906138639190615760565b90508281111561387a57613877838261561c565b91505b8115612d53575f61388e612710600261589d565b61ffff1660176002815481106138a6576138a6615686565b5f91825260209091206010820401546138cf91600f166002026101000a900461ffff168561562f565b6138d99190615673565b90505f805f601954111561390d5760026019546138f69190615673565b915081601954613906919061561c565b5f60195590505b60215473ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000007901a3569679aec3501dbec59399f327854a70fe81169163a9059cbb911661395a84876156e0565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff909216600483015260248201526044016020604051808303815f875af11580156139c7573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906139eb91906158bb565b5060225473ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000007901a3569679aec3501dbec59399f327854a70fe81169163a9059cbb9116613a3985876156e0565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff909216600483015260248201526044016020604051808303815f875af1158015613aa6573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613aca91906158bb565b50613ad683600261562f565b613ae0908661561c565b945084601f54613af091906156e0565b601f55602054613b0c866b033b2e3c9fd0803ce800000061562f565b613b169190615673565b601c54613b2391906156e0565b601c555050505050505050565b6023545f9042908111613b435750610f3c565b5f613b4d826110f7565b9050838110613b7e57613b60848261561c565b601d5f828254613b7091906156e0565b90915550849350613bd89050565b601d5415613bd4575f613b91828661561c565b9050601d548110613bb457601d54613ba990836156e0565b5f601d559350613bce565b84935080601d5f828254613bc8919061561c565b90915550505b50613bd8565b8092505b8160238190555080601a5f828254613bf0919061561c565b9091555061300990508584614a28565b5f808215613ca5576127106017600381548110613c1f57613c1f615686565b5f9182526020909120601082040154613c4891600f166002026101000a900461ffff168761562f565b613c529190615673565b91506127106017600481548110613c6b57613c6b615686565b5f9182526020909120601082040154613c9491600f166002026101000a900461ffff168761562f565b613c9e9190615673565b9050613d43565b8315613d435761271060175f81548110613cc157613cc1615686565b5f9182526020909120601082040154613cea91600f166002026101000a900461ffff168761562f565b613cf49190615673565b91506127106017600181548110613d0d57613d0d615686565b5f9182526020909120601082040154613d3691600f166002026101000a900461ffff168761562f565b613d409190615673565b90505b935093915050565b73ffffffffffffffffffffffffffffffffffffffff8316613dee576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161115f565b73ffffffffffffffffffffffffffffffffffffffff8216613e91576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161115f565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc9773ffffffffffffffffffffffffffffffffffffffff831601613ed85761148e8382614b19565b73ffffffffffffffffffffffffffffffffffffffff83165f9081526020819052604090205481811015613f8d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e63650000000000000000000000000000000000000000000000000000606482015260840161115f565b73ffffffffffffffffffffffffffffffffffffffff8481165f81815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36113aa565b600e545f81900361400e575050565b5f805a90505f5b848310801561402357508381105b15612d53576018546c01000000000000000000000000900463ffffffff16841161407057601880547fffffffffffffffffffffffffffffffff00000000ffffffffffffffffffffffff1690555b601854600e80545f926c01000000000000000000000000900463ffffffff1690811061409e5761409e615686565b5f91825260208220015473ffffffffffffffffffffffffffffffffffffffff1691506140cd826119b981613011565b9050801580156140e157506140e182614cdf565b156140f1576140f1826001612c49565b601880546c01000000000000000000000000900463ffffffff1690600c614117836158d6565b91906101000a81548163ffffffff021916908363ffffffff160217905550508280614141906158f8565b9350505a61414f908561561c565b61415990866156e0565b94505a93505050614015565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905261148e908490614d61565b60605f6141fe83614e6e565b6040805160208082528183019092529192505f91906020820181803683375050509182525060208101929092525090565b73ffffffffffffffffffffffffffffffffffffffff81165f90815260156020526040902054600e5461426260018261561c565b821015614321575f600e61427760018461561c565b8154811061428757614287615686565b5f91825260209091200154600e805473ffffffffffffffffffffffffffffffffffffffff90921692508291859081106142c2576142c2615686565b5f91825260208083209190910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9485161790559290911681526015909152604090208290555b600e805480614332576143326156b3565b5f828152602080822083017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff000000000000000000000000000000000000000016905590920190925573ffffffffffffffffffffffffffffffffffffffff949094168152601590935250506040812055565b5f807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156143eb57505f90506003614495565b604080515f8082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561443c573d5f803e3d5ffd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811661448f575f60019250925050614495565b91505f90505b94509492505050565b5f8160048111156144b1576144b1615720565b036144b95750565b60018160048111156144cd576144cd615720565b03614534576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161115f565b600281600481111561454857614548615720565b036145af576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161115f565b60038160048111156145c3576145c3615720565b036122f8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161115f565b6060610f3c73ffffffffffffffffffffffffffffffffffffffff831660145b60605f61467d83600261562f565b6146889060026156e0565b67ffffffffffffffff8111156146a0576146a06156f3565b6040519080825280601f01601f1916602001820160405280156146ca576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000815f8151811061470057614700615686565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061476257614762615686565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053505f61479c84600261562f565b6147a79060016156e0565b90505b6001811115614843577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106147e8576147e8615686565b1a60f81b8282815181106147fe576147fe615686565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a90535060049490941c9361483c8161592f565b90506147aa565b5083156133a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161115f565b5f8115806148cf575082826148c1818361562f565b92506148cd9083615673565b145b610f3c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6d756c2d6f766572666c6f77000000000000000000000000604482015260640161115f565b5f8261494183826156e0565b9150811015610f3c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6164642d6f766572666c6f77000000000000000000000000604482015260640161115f565b5f806149d8837f0dfe168100000000000000000000000000000000000000000000000000000000614eae565b915073ffffffffffffffffffffffffffffffffffffffff821615614a2357614a20837fd21220a700000000000000000000000000000000000000000000000000000000614eae565b90505b915091565b73ffffffffffffffffffffffffffffffffffffffff8216614aa5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161115f565b8060025f828254614ab691906156e0565b909155505073ffffffffffffffffffffffffffffffffffffffff82165f81815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b73ffffffffffffffffffffffffffffffffffffffff8216614bbc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f7300000000000000000000000000000000000000000000000000000000000000606482015260840161115f565b73ffffffffffffffffffffffffffffffffffffffff82165f9081526020819052604090205481811015614c71576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f6365000000000000000000000000000000000000000000000000000000000000606482015260840161115f565b73ffffffffffffffffffffffffffffffffffffffff83165f81815260208181526040918290208585039055600280548690039055905184815261036992917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b60185473ffffffffffffffffffffffffffffffffffffffff82165f9081526014602052604081205490914291614d24916601000000000000900462ffffff16906156e0565b108015610f3c575060185470010000000000000000000000000000000090046bffffffffffffffffffffffff16614d5a83611afc565b1192915050565b5f614dc2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16614fbd9092919063ffffffff16565b905080515f1480614de2575080806020019051810190614de291906158bb565b61148e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161115f565b5f60ff8216601f811115610f3c576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051600481526024810182526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000851617905290515f918291829173ffffffffffffffffffffffffffffffffffffffff871691614f309190615963565b5f60405180830381855afa9150503d805f8114614f68576040519150601f19603f3d011682016040523d82523d5f602084013e614f6d565b606091505b5091509150811580614f7e57508051155b15614f8d575f92505050610f3c565b8051602003614fb35780806020019051810190614faa91906157f7565b92505050610f3c565b505f949350505050565b60606132af84845f85855f808673ffffffffffffffffffffffffffffffffffffffff168587604051614fef9190615963565b5f6040518083038185875af1925050503d805f8114615029576040519150601f19603f3d011682016040523d82523d5f602084013e61502e565b606091505b509150915061503f8783838761504a565b979650505050505050565b606083156150df5782515f036150d85773ffffffffffffffffffffffffffffffffffffffff85163b6150d8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161115f565b50816132af565b6132af83838151156150f45781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115f9190615290565b73ffffffffffffffffffffffffffffffffffffffff811681146122f8575f80fd5b5f60208284031215615159575f80fd5b81356133a781615128565b5f60208284031215615174575f80fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146133a7575f80fd5b80151581146122f8575f80fd5b5f602082840312156151c0575f80fd5b81356133a7816151a3565b803562ffffff811681146151dd575f80fd5b919050565b5f80604083850312156151f3575f80fd5b6151fc836151cb565b9150602083013569ffffffffffffffffffff8116811461521a575f80fd5b809150509250929050565b5f5b8381101561523f578181015183820152602001615227565b50505f910152565b5f815180845261525e816020860160208601615225565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081525f6133a76020830184615247565b5f80604083850312156152b3575f80fd5b82356152be81615128565b946020939093013593505050565b5f602082840312156152dc575f80fd5b5035919050565b5f805f606084860312156152f5575f80fd5b833561530081615128565b9250602084013561531081615128565b929592945050506040919091013590565b5f8060408385031215615332575f80fd5b82359150602083013561521a81615128565b5f8060408385031215615355575f80fd5b823561536081615128565b9150602083013561521a816151a3565b5f60208284031215615380575f80fd5b6133a7826151cb565b803561ffff811681146151dd575f80fd5b5f602082840312156153aa575f80fd5b6133a782615389565b7fff00000000000000000000000000000000000000000000000000000000000000881681525f602060e060208401526153ef60e084018a615247565b8381036040850152615401818a615247565b6060850189905273ffffffffffffffffffffffffffffffffffffffff8816608086015260a0850187905284810360c0860152855180825260208088019350909101905f5b8181101561546157835183529284019291840191600101615445565b50909c9b505050505050505050505050565b5f8060408385031215615484575f80fd5b823561548f81615128565b9150602083013561521a81615128565b5f805f805f805f60e0888a0312156154b5575f80fd5b87356154c081615128565b965060208801356154d081615128565b95506040880135945060608801359350608088013560ff811681146154f3575f80fd5b9699959850939692959460a0840135945060c09093013592915050565b5f8060408385031215615521575f80fd5b823561552c816151a3565b915061553a602084016151cb565b90509250929050565b5f805f805f60a08688031215615557575f80fd5b61556086615389565b945061556e60208701615389565b935061557c60408701615389565b925061558a60608701615389565b915061559860808701615389565b90509295509295909350565b600181811c908216806155b857607f821691505b6020821081036111dc577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b81810381811115610f3c57610f3c6155ef565b8082028115828204841417610f3c57610f3c6155ef565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f8261568157615681615646565b500490565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffd5b80820180821115610f3c57610f3c6155ef565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b5f8261575b5761575b615646565b500690565b5f60208284031215615770575f80fd5b5051919050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081525f83516157ae816017850160208801615225565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516157eb816028840160208801615225565b01602801949350505050565b5f60208284031215615807575f80fd5b81516133a781615128565b5f60a08201878352602087602085015260a0604085015281875180845260c0860191506020890193505f5b8181101561586f57845173ffffffffffffffffffffffffffffffffffffffff168352938301939183019160010161583d565b505073ffffffffffffffffffffffffffffffffffffffff969096166060850152505050608001529392505050565b61ffff818116838216028082169190828114613009576130096155ef565b5f602082840312156158cb575f80fd5b81516133a7816151a3565b5f63ffffffff8083168181036158ee576158ee6155ef565b6001019392505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203615928576159286155ef565b5060010190565b5f8161593d5761593d6155ef565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b5f8251615974818460208701615225565b919091019291505056fea26469706673582212203b4544a3366c37374ec04099ac759e58c9941ea13478dd4e6b8c61dc683c943f64736f6c63430008170033