false
true
0

Contract Address Details

0x9Db991967e1A2C01E5b98f91f665D22D94564267

Contract Name
PandaStaking
Creator
0xd4b58a–860008 at 0x103f96–7bb438
Balance
0 PLS ( )
Tokens
Fetching tokens...
Transactions
142 Transactions
Transfers
2,242 Transfers
Gas Used
27,709,734
Last Balance Update
25964579
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
This contract has been partially verified via Sourcify. View contract in Sourcify repository
Contract name:
PandaStaking




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




EVM Version
shanghai




Verified at
2026-03-05T17:56:09.451734Z

Constructor Arguments

0000000000000000000000002b591e99afe9f32eaa6214f7b7629768c40eeb39000000000000000000000000d4b58a72469222efad11cc06e40ac24a9f860008

Arg [0] (address) : 0x2b591e99afe9f32eaa6214f7b7629768c40eeb39
Arg [1] (address) : 0xd4b58a72469222efad11cc06e40ac24a9f860008

              

src/PandaStaking.sol

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

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

import "@interfaces/IPandaStaking.sol";

//====================MASTERCHEF=======================//

// MasterChef is the master of HEX. He can make HEX and he is a fair guy.
//
// Note that it's ownable and the owner wields tremendous power. The ownership
// will be transferred to a governance smart contract once HEX is sufficiently
// distributed and the community can show to govern itself.
//
// Have fun reading it. Hopefully it's bug-free. God bless.

contract PandaStaking is Ownable, ReentrancyGuard, IPandaStaking {
    using SafeERC20 for IERC20;

    // Info of each user.
    struct UserInfo {
        uint256 amount; // How many LP tokens the user has provided.
        mapping(address => int256) rewardDebt; // Reward debt per token. See explanation below.
        //
        // We do some fancy math here. Basically, any point in time, the amount of tokens
        // entitled to a user but is pending to be distributed is:
        //
        //   pending reward = (effectiveShares * pool.accTokenPerShareX18[token]) - user.rewardDebt[token]
        //   where effectiveShares = user.amount * durationMultiplier[user.durationWeeks]
        //
        // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
        //   1. The pool's `accTokenPerShareX18` gets updated for each reward token.
        //   2. User receives the pending rewards sent to his/her address.
        //   3. User's `amount` gets updated.
        //   4. User's `rewardDebt` gets updated for each token.
        uint256 stakedAt;
        uint256 durationWeeks; // Staking duration in weeks chosen by user
    }

    // Info of each pool.
    struct PoolInfo {
        IERC20 lpToken; // Address of LP token contract.
        uint256 allocPoint; // How many allocation points assigned to this pool. ALPHAs to distribute per second.
        uint256 lastRewardTime; // Last timestamp number that rewards distribution occurs.
        mapping(address => uint256) accTokenPerShareX18; // Accumulated tokens per share per token, times 1e18.
        uint256 lpSupply; // Total effective shares in the pool (sum of user.amount * multiplier for all users)
    }

    IERC20 public immutable hexToken; // HEX = 0x2b591e99afE9f32eAA6214f7B7629768c40Eeb39

    // Info of each pool.
    PoolInfo[] public poolInfo;
    // Info of each user that stakes LP tokens.
    mapping(uint256 => mapping(address => UserInfo)) public userInfo;
    // Total allocation points. Must be the sum of all allocation points in all pools.
    uint256 public totalAllocPoint = 0;

    // Historical share rate tracking for APY calculations (per pool and token)
    mapping(uint256 => mapping(address => uint256)) public accTokenPerShareThreeDaysAgo; // accTokenPerShareX18 value 3 days ago
    mapping(uint256 => mapping(address => uint256)) public lastSnapshotTime; // Last time snapshot was taken per pool and token
    uint256 constant THREE_DAYS = 3 days;

    // Multiple reward tokens support
    IERC20[] public rewardTokens; // List of all reward tokens
    mapping(address => bool) public isRewardToken; // Check if token is a reward token
    mapping(address => uint256) public undistributedRewards; // Undistributed rewards per token

    // Duration multipliers (in weeks -> multiplier scaled by 1e18)
    // 1 week -> 1.03x (1030000000000000000)
    // 5 weeks -> 1.10x (1100000000000000000)
    // 10 weeks -> 2.00x (2000000000000000000)
    // 25 weeks -> 5.45x (5450000000000000000)
    // 52 weeks -> 22.56x (22560000000000000000)
    mapping(uint256 => uint256) public durationMultiplier; // weeks -> multiplier (1e18)
    uint256[] public validDurations; // List of valid duration options in weeks

    event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event Harvest(address indexed user, uint256 indexed pid, uint256 amount);
    event AddPool(uint256 indexed pid, address lpToken, uint256 allocPoint);
    event SetPool(uint256 indexed pid, address lpToken, uint256 allocPoint);
    event UpdateStartTime(uint256 newStartBlock);
    event LogUpdatePool(uint256 indexed pid, uint256 lastRewardTime, uint256 lpSupply, uint256 accHEXPerShareX18);
    event RewardTokenAdded(address indexed token);
    event RewardTokenRemoved(address indexed token);
    event RewardsDistributed(address indexed token, uint256 amount);
    event DurationMultiplierSet(uint256 indexed durationWeeks, uint256 multiplier);

    constructor(address _hexToken, address _owner) Ownable(_owner) {
        hexToken = IERC20(_hexToken);

        // Add HEX as the first reward token
        rewardTokens.push(IERC20(_hexToken));
        isRewardToken[_hexToken] = true;

        // Initialize duration multipliers
        _setDurationMultiplier(1, 1.0e18); // 1 week -> 1.00x
        _setDurationMultiplier(2, 1.03e18); // 2 week -> 1.00x
        _setDurationMultiplier(5, 1.1e18); // 5 weeks -> 1.10x
        _setDurationMultiplier(10, 2.0e18); // 10 weeks -> 2.00x
        _setDurationMultiplier(25, 5.45e18); // 25 weeks -> 5.45x
        _setDurationMultiplier(52, 22.56e18); // 52 weeks -> 22.56x
    }

    // Internal function to set duration multiplier
    function _setDurationMultiplier(uint256 _weeks, uint256 _multiplier) internal {
        durationMultiplier[_weeks] = _multiplier;
        validDurations.push(_weeks);

        emit DurationMultiplierSet(_weeks, _multiplier);
    }

    function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }

    mapping(IERC20 => bool) public poolExistence;

    modifier nonDuplicated(IERC20 _lpToken) {
        require(poolExistence[_lpToken] == false, "nonDuplicated: duplicated");
        _;
    }

    // Add a new lp to the pool. Can only be called by the owner.
    function add(uint256 _allocPoint, IERC20 _lpToken, bool _withUpdate) external onlyOwner nonDuplicated(_lpToken) {
        // valid ERC20 token
        _lpToken.balanceOf(address(this));

        if (_withUpdate) {
            massUpdatePools();
        }

        // update pools total alloc points
        totalAllocPoint = totalAllocPoint + _allocPoint;

        poolExistence[_lpToken] = true;

        // Push empty struct first (structs with mappings must be in storage)
        poolInfo.push();
        uint256 pid = poolInfo.length - 1;

        // Set fields on storage struct
        PoolInfo storage newPool = poolInfo[pid];
        newPool.lpToken = _lpToken;
        newPool.allocPoint = _allocPoint;
        newPool.lastRewardTime = block.timestamp;
        newPool.lpSupply = 0;

        emit AddPool(pid, address(_lpToken), _allocPoint);
    }

    // Update the given pool's allocation point. Can only be called by the owner.
    function setPoolAllocPoints(uint256 _pid, uint256 _allocPoint, bool _withUpdate) external onlyOwner {
        if (_withUpdate) {
            massUpdatePools();
        }
        totalAllocPoint = totalAllocPoint - poolInfo[_pid].allocPoint + _allocPoint;
        poolInfo[_pid].allocPoint = _allocPoint;

        emit SetPool(_pid, address(poolInfo[_pid].lpToken), _allocPoint);
    }

    // Add a new reward token. Can only be called by the owner.
    function addRewardToken(address _token) external onlyOwner {
        require(address(_token) != address(0), "Invalid token");
        require(!isRewardToken[_token], "Token already added");

        bool isPresent = false;
        for (uint256 i = 0; i < rewardTokens.length; ++i) {
            if (address(rewardTokens[i]) == address(_token)) {
                isPresent = true;
                break;
            }
        }

        if (!isPresent) {
            rewardTokens.push(IERC20(_token));
        }

        isRewardToken[_token] = true;

        emit RewardTokenAdded(address(_token));
    }

    // Remove a reward token. Can only be called by the owner.
    function removeRewardToken(address _token) external onlyOwner {
        require(isRewardToken[_token], "Token not found");
        require(address(_token) != address(hexToken), "Cannot remove HEX token");

        isRewardToken[_token] = false;

        emit RewardTokenRemoved(address(_token));
    }

    function rewardTokenCount() external view returns (uint256) {
        return rewardTokens.length;
    }

    // Update reward variables for all pools. Be careful of gas spending!
    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            updatePool(pid);
        }
    }

    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];

        uint256 lpSupply = pool.lpSupply;
        if (lpSupply == 0 || pool.allocPoint == 0) {
            pool.lastRewardTime = block.timestamp;
            return;
        }

        // Update accumulation for each reward token
        uint256 length = rewardTokens.length;

        uint256 activeTotalAllocPoint = getActiveTotalAllocPoint();

        for (uint256 i = 0; i < length; ++i) {
            address token = address(rewardTokens[i]);
            uint256 undistributed = undistributedRewards[token];
            if (undistributed > 0) {
                uint256 poolReward = (undistributed * pool.allocPoint) / activeTotalAllocPoint;
                pool.accTokenPerShareX18[token] = pool.accTokenPerShareX18[token] + (poolReward * 1e18) / lpSupply;
            }

            // Update snapshot for APY calculations if 3 days have passed
            _updateShareRateSnapshot(_pid, token, pool.accTokenPerShareX18[token]);
        }

        pool.lastRewardTime = block.timestamp;

        emit LogUpdatePool(_pid, pool.lastRewardTime, lpSupply, pool.accTokenPerShareX18[address(hexToken)]);
    }

    // Get the total allocation points of the active pools
    function getActiveTotalAllocPoint() public view returns (uint256) {
        uint256 activeTotalAllocPoint = 0;

        for (uint256 pid = 0; pid < poolInfo.length; pid++) {
            if (poolInfo[pid].lpSupply == 0) {
                continue;
            }
            activeTotalAllocPoint += poolInfo[pid].allocPoint;
        }

        return activeTotalAllocPoint;
    }

    // Get accTokenPerShare for a specific token and pool (for external queries)
    function getAccTokenPerShare(uint256 _pid, address _token) external view returns (uint256) {
        return poolInfo[_pid].accTokenPerShareX18[_token];
    }

    // Get rewardDebt for a specific token, pool, and user (for external queries)
    function getRewardDebt(uint256 _pid, address _user, address _token) external view returns (int256) {
        return userInfo[_pid][_user].rewardDebt[_token];
    }

    // Get valid durations array
    function getValidDurations() external view returns (uint256[] memory) {
        return validDurations;
    }

    // Get user's staking info
    function getUserStakeInfo(uint256 _pid, address _user)
        external
        view
        returns (
            uint256 amount,
            uint256 durationWeeks,
            uint256 stakedAt,
            uint256 unlockTime,
            bool canWithdraw,
            uint256 effectiveShares
        )
    {
        UserInfo storage user = userInfo[_pid][_user];
        amount = user.amount;
        durationWeeks = user.durationWeeks;
        stakedAt = user.stakedAt;
        uint256 durationSeconds = durationWeeks * 7 days;
        unlockTime = stakedAt + durationSeconds;
        // canWithdraw is only true if user has staked (stakedAt > 0) and unlock time has passed
        canWithdraw = stakedAt > 0 && block.timestamp >= unlockTime;
        effectiveShares = getEffectiveShares(_pid, _user);
    }

    // Distribute rewards for a single token to the pools.
    function distributeRewards(address _token, uint256 _amount) public {
        require(isRewardToken[_token], "Token not a reward token");

        IERC20(_token).safeTransferFrom(msg.sender, address(this), _amount);

        undistributedRewards[_token] = _amount;
        massUpdatePools();
        undistributedRewards[_token] = 0;

        emit RewardsDistributed(address(_token), _amount);
    }

    // Internal function to update share rate snapshots for APY calculations
    function _updateShareRateSnapshot(uint256 _pid, address _token, uint256 _currentAccTokenPerShare) internal {
        uint256 currentTime = block.timestamp;

        // Initialize if first time
        if (lastSnapshotTime[_pid][_token] == 0) {
            lastSnapshotTime[_pid][_token] = currentTime;
            accTokenPerShareThreeDaysAgo[_pid][_token] = _currentAccTokenPerShare;
            return;
        }

        // Update 3-day-ago snapshot if 3 days have passed since last snapshot
        if (currentTime >= lastSnapshotTime[_pid][_token] + THREE_DAYS) {
            // Store the current value as the new snapshot (this will be the "3 days ago" value)
            accTokenPerShareThreeDaysAgo[_pid][_token] = _currentAccTokenPerShare;
            lastSnapshotTime[_pid][_token] = currentTime;
        }
    }

    // Get effective shares for a user (amount * multiplier)
    function getEffectiveShares(uint256 _pid, address _user) public view returns (uint256) {
        UserInfo storage user = userInfo[_pid][_user];
        if (user.amount == 0 || user.durationWeeks == 0) {
            return user.amount; // No multiplier if no stake or no duration set
        }
        uint256 multiplier = durationMultiplier[user.durationWeeks];
        return (user.amount * multiplier) / 1e18;
    }

    // View function to see pending rewards for a specific token.
    function pendingReward(uint256 _pid, address _user, address _token) external view returns (uint256) {
        require(isRewardToken[_token], "Token not a reward token");

        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accTokenPerShare = pool.accTokenPerShareX18[_token];

        // Use effective shares (amount * multiplier)
        uint256 effectiveShares = getEffectiveShares(_pid, _user);
        int256 accumulated = int256(effectiveShares * accTokenPerShare / 1e18);

        return uint256(accumulated - user.rewardDebt[_token]);
    }

    // View function to see all pending rewards.
    function pendingRewards(uint256 _pid, address _user)
        external
        view
        returns (address[] memory tokens, uint256[] memory amounts)
    {
        uint256 length = rewardTokens.length;
        tokens = new address[](length);
        amounts = new uint256[](length);

        for (uint256 i = 0; i < length; ++i) {
            tokens[i] = address(rewardTokens[i]);
            amounts[i] = this.pendingReward(_pid, _user, address(rewardTokens[i]));
        }
    }

    // Stake LP tokens to MasterChef for reward allocation.
    // @param _durationWeeks The staking duration in weeks (must be a valid duration)
    function deposit(uint256 _pid, uint256 _amount, uint256 _durationWeeks) external nonReentrant {
        _deposit(_pid, _amount, _durationWeeks);
    }

    // Overloaded deposit function for backward compatibility (uses 1 week default)
    function deposit(uint256 _pid, uint256 _amount) external nonReentrant {
        // Default to 0 week if no duration specified
        _deposit(_pid, _amount, 1);
    }

    // Internal deposit function
    function _deposit(uint256 _pid, uint256 _amount, uint256 _durationWeeks) internal {
        require(durationMultiplier[_durationWeeks] > 0, "Invalid duration");

        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);

        // Harvest all pending rewards
        if (user.amount > 0) {
            _harvestRewards(_pid, msg.sender, msg.sender);
        }

        if (_amount > 0) {
            uint256 balanceBefore = pool.lpToken.balanceOf(address(this));
            pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
            _amount = pool.lpToken.balanceOf(address(this)) - balanceBefore;

            // If this is a new deposit or user wants to change duration, set new duration
            if (user.amount == 0 || user.durationWeeks != _durationWeeks) {
                require(user.amount == 0, "Cannot change duration on existing stake");
                user.durationWeeks = _durationWeeks;
            }

            user.stakedAt = block.timestamp;

            // Calculate effective shares for the new amount
            uint256 multiplier = durationMultiplier[user.durationWeeks];
            uint256 effectiveSharesAdded = (_amount * multiplier) / 1e18;

            user.amount = user.amount + _amount;
            // Update lpSupply with effective shares (not raw amount)
            pool.lpSupply = pool.lpSupply + effectiveSharesAdded;
        }

        // Update reward debt for all tokens (using effective shares)
        _updateRewardDebt(_pid, msg.sender);

        emit Deposit(msg.sender, _pid, _amount);
    }

    // Withdraw LP tokens and harvest rewards from MasterChef.
    function withdraw(uint256 _pid, uint256 _amount) external nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        require(user.amount >= _amount, "withdraw: not enough amount");

        // Check if user's chosen duration has passed
        require(block.timestamp >= user.stakedAt + user.durationWeeks * 7 days, "withdraw: duration not yet passed");

        updatePool(_pid);

        // Harvest all pending rewards
        _harvestRewards(_pid, msg.sender, msg.sender);

        if (_amount > 0) {
            // Calculate effective shares for the amount being withdrawn
            uint256 multiplier = durationMultiplier[user.durationWeeks];
            uint256 effectiveSharesRemoved = (_amount * multiplier) / 1e18;

            user.amount = user.amount - _amount;
            pool.lpToken.safeTransfer(address(msg.sender), _amount);
            // Update lpSupply by removing effective shares (not raw amount)
            pool.lpSupply = pool.lpSupply - effectiveSharesRemoved;
        }

        // If fully withdrawn, reset duration
        if (user.amount == 0) {
            user.durationWeeks = 0;
        }

        // Update reward debt for all tokens
        _updateRewardDebt(_pid, msg.sender);

        emit Withdraw(msg.sender, _pid, _amount);
    }

    // Harvest proceeds for transaction sender to `to`.
    function harvest(uint256 _pid, address _to) public nonReentrant {
        UserInfo storage user = userInfo[_pid][msg.sender];

        // Check if user's chosen duration has passed (can harvest after duration)
        uint256 durationSeconds = user.durationWeeks * 7 days;
        require(block.timestamp >= user.stakedAt + durationSeconds, "harvest: duration not yet passed");

        updatePool(_pid);
        _harvestRewards(_pid, msg.sender, _to);
        _updateRewardDebt(_pid, msg.sender);
    }

    // Withdraw LP tokens from MasterChef and harvest proceeds for transaction sender to `to`.
    function withdrawAndHarvest(uint256 _pid, uint256 _amount, address _to) public nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        require(user.amount >= _amount, "withdrawAndHarvest: not good");

        // Check if user's chosen duration has passed
        uint256 durationSeconds = user.durationWeeks * 7 days;
        require(block.timestamp >= user.stakedAt + durationSeconds, "withdrawAndHarvest: duration not yet passed");

        updatePool(_pid);

        // Harvest all pending rewards
        _harvestRewards(_pid, msg.sender, _to);

        if (_amount > 0) {
            // Calculate effective shares for the amount being withdrawn
            uint256 multiplier = durationMultiplier[user.durationWeeks];
            uint256 effectiveSharesRemoved = (_amount * multiplier) / 1e18;

            user.amount = user.amount - _amount;
            pool.lpToken.safeTransfer(_to, _amount);
            // Update lpSupply by removing effective shares (not raw amount)
            pool.lpSupply = pool.lpSupply - effectiveSharesRemoved;
        }

        // If fully withdrawn, reset duration
        if (user.amount == 0) {
            user.durationWeeks = 0;
        }

        // Update reward debt for all tokens
        _updateRewardDebt(_pid, msg.sender);

        emit Withdraw(msg.sender, _pid, _amount);
    }

    // Internal function to harvest all pending rewards for a user
    function _harvestRewards(uint256 _pid, address _user, address _to) internal {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];

        if (user.amount == 0) return;

        // Calculate effective shares (amount * multiplier)
        uint256 effectiveShares = getEffectiveShares(_pid, _user);
        uint256 length = rewardTokens.length;

        for (uint256 i = 0; i < length; ++i) {
            IERC20 token = rewardTokens[i];

            // If user deposited after token was removed, set his reward debt to the current accTokenPerShare
            if (isRewardToken[address(token)] == false && user.rewardDebt[address(token)] == 0) {
                user.rewardDebt[address(token)] =
                    int256(effectiveShares * pool.accTokenPerShareX18[address(token)] / 1e18);
                continue;
            }

            int256 accumulated = int256(effectiveShares * pool.accTokenPerShareX18[address(token)] / 1e18);
            int256 pending = accumulated - user.rewardDebt[address(token)];

            if (pending > 0) {
                uint256 pendingAmount = uint256(pending);
                _safeTokenTransfer(token, _to, pendingAmount);
                emit Harvest(_user, _pid, pendingAmount);
            }
        }
    }

    // Internal function to update reward debt for all tokens
    function _updateRewardDebt(uint256 _pid, address _user) internal {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];

        // Calculate effective shares (amount * multiplier)
        uint256 effectiveShares = getEffectiveShares(_pid, _user);
        uint256 length = rewardTokens.length;
        for (uint256 i = 0; i < length; ++i) {
            address token = address(rewardTokens[i]);
            user.rewardDebt[token] = int256(effectiveShares * pool.accTokenPerShareX18[token] / 1e18);
        }
    }

    // Safe token transfer function, just in case if rounding error causes pool to not have enough tokens.
    function _safeTokenTransfer(IERC20 _token, address _to, uint256 _amount) internal {
        uint256 tokenBal = _token.balanceOf(address(this));
        uint256 transferAmount = _amount > tokenBal ? tokenBal : _amount;

        if (transferAmount > 0) {
            _token.safeTransfer(_to, transferAmount);
        }
    }

    // Get pool info for a specific pool
    function getPoolInfo(uint256 _pid)
        external
        view
        returns (address lpToken, uint256 allocPoint, uint256 lastRewardTime, uint256 lpSupply)
    {
        PoolInfo storage pool = poolInfo[_pid];

        lpToken = address(pool.lpToken);
        allocPoint = pool.allocPoint;
        lastRewardTime = pool.lastRewardTime;
        lpSupply = pool.lpSupply;
    }

    /// @notice Calculate APY based on share rate increase over the last 3 days
    /// @param _pid Pool ID
    /// @param _token Reward token address
    /// @return apyBpsX18 APY in basis points (10000 = 100%)
    /// @dev Formula: ((accTokenPerShareNow / accTokenPerShareThreeDaysAgo) ^ (365/3) - 1) * 100
    function calculateEstimatedAPY(uint256 _pid, address _token) external view returns (uint256 apyBpsX18) {
        require(isRewardToken[_token], "Token not a reward token");
        PoolInfo storage pool = poolInfo[_pid];

        if (pool.lpSupply == 0 || pool.allocPoint == 0) {
            return 0;
        }

        // Get current accTokenPerShare (need to update pool first to get latest value)
        // Note: This is a view function, so we use the stored value
        uint256 accTokenPerShareNow = pool.accTokenPerShareX18[_token];
        uint256 accTokenPerShareSnapshot = accTokenPerShareThreeDaysAgo[_pid][_token];

        // If we don't have 3 days of history yet, return 0
        if (lastSnapshotTime[_pid][_token] == 0 || block.timestamp < lastSnapshotTime[_pid][_token] + THREE_DAYS) {
            return 0;
        }

        // Prevent division by zero
        if (accTokenPerShareSnapshot == 0) {
            return 0;
        }

        // Formula: ((accTokenPerShareNow / accTokenPerShareSnapshot) ^ (365/3) - 1) * 100
        // Calculate growth ratio: (accTokenPerShareNow * 1e18) / accTokenPerShareSnapshot
        // Note: Both values are already scaled by 1e18, so ratio represents the growth factor
        uint256 ratio = (accTokenPerShareNow * 1e18) / accTokenPerShareSnapshot;

        if (ratio > 1e18) {
            uint256 ratioMinusOne = ratio - 1e18; // 3-day yield scaled by 1e18
            // APY in basis points: ((ratio - 1e18) * 365 * 10000) / 3
            apyBpsX18 = (ratioMinusOne * 365 * 100) / 3;
        } else {
            apyBpsX18 = 0; // No growth or negative growth
        }
    }
}
        

/introspection/IERC165.sol

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

pragma solidity ^0.8.20;

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

/Errors.sol

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

pragma solidity ^0.8.20;

/**
 * @dev Collection of common custom errors used in multiple contracts
 *
 * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.
 * It is recommended to avoid relying on the error API for critical functionality.
 *
 * _Available since v5.1._
 */
library Errors {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error InsufficientBalance(uint256 balance, uint256 needed);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedCall();

    /**
     * @dev The deployment failed.
     */
    error FailedDeployment();

    /**
     * @dev A necessary precompile is missing.
     */
    error MissingPrecompile(address);
}
          

/IERC165.sol

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

pragma solidity ^0.8.20;

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

/IERC20.sol

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

pragma solidity ^0.8.20;

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

/Address.sol

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

pragma solidity ^0.8.20;

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

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @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.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        if (address(this).balance < amount) {
            revert Errors.InsufficientBalance(address(this).balance, amount);
        }

        (bool success, ) = recipient.call{value: amount}("");
        if (!success) {
            revert Errors.FailedCall();
        }
    }

    /**
     * @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 or custom error, it is bubbled
     * up by this function (like regular Solidity function calls). However, if
     * the call reverted with no returned reason, this function reverts with a
     * {Errors.FailedCall} error.
     *
     * 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.
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0);
    }

    /**
     * @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`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert Errors.InsufficientBalance(address(this).balance, value);
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

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

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

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
     * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case
     * of an unsuccessful call.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            // only check if target is a contract if the call was successful and the return data is empty
            // otherwise we already know that it was a contract
            if (returndata.length == 0 && target.code.length == 0) {
                revert AddressEmptyCode(target);
            }
            return returndata;
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
     * revert reason or with a default {Errors.FailedCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            return returndata;
        }
    }

    /**
     * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.
     */
    function _revert(bytes memory returndata) 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
            assembly ("memory-safe") {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert Errors.FailedCall();
        }
    }
}
          

/IERC1363.sol

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

pragma solidity ^0.8.20;

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

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

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

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

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

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

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

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

/Context.sol

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

pragma solidity ^0.8.20;

/**
 * @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;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}
          

/

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

interface IPandaStaking {
    function distributeRewards(address _token, uint256 _amount) external;
}
          

/ERC20/IERC20.sol

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

pragma solidity ^0.8.20;

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

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

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

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

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

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

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

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

/ERC20/utils/SafeERC20.sol

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

pragma solidity ^0.8.20;

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

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

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

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transfer, (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.encodeCall(token.transferFrom, (from, to, 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.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

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

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

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

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

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

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

    /**
     * @dev Imitates a Solidity 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 {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            // bubble errors
            if iszero(success) {
                let ptr := mload(0x40)
                returndatacopy(ptr, 0, returndatasize())
                revert(ptr, returndatasize())
            }
            returnSize := returndatasize()
            returnValue := mload(0)
        }

        if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @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 silently catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        bool success;
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            returnSize := returndatasize()
            returnValue := mload(0)
        }
        return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
    }
}
          

/Ownable.sol

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

pragma solidity ^0.8.20;

import {Context} from "../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.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @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 {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @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 {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _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);
    }
}
          

/ReentrancyGuard.sol

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

pragma solidity ^0.8.20;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If EIP-1153 (transient storage) is available on the chain you're deploying at,
 * consider using {ReentrancyGuardTransient} instead.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

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

    uint256 private _status;

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

    constructor() {
        _status = NOT_ENTERED;
    }

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

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

        // Any calls to nonReentrant after this point will fail
        _status = ENTERED;
    }

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

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

Compiler Settings

{"remappings":[":@core/=src/",":@interfaces/=src/interfaces/",":@libs/=src/libs/",":@mocks/=test/mocks/",":@openzeppelin/=node_modules/@openzeppelin/",":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",":@script/=script/",":@structs/=src/structs/",":@test/=test/",":@utils/=src/utils/",":ds-test/=lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",":forge-std/=lib/forge-std/src/",":halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",":murky/=lib/murky/",":openzeppelin-contracts/=lib/openzeppelin-contracts/"],"optimizer":{"runs":200,"enabled":false},"metadata":{"bytecodeHash":"ipfs"},"libraries":{},"evmVersion":"shanghai","compilationTarget":{"src/PandaStaking.sol":"PandaStaking"}}
              

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_hexToken","internalType":"address"},{"type":"address","name":"_owner","internalType":"address"}]},{"type":"error","name":"OwnableInvalidOwner","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"error","name":"OwnableUnauthorizedAccount","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"error","name":"ReentrancyGuardReentrantCall","inputs":[]},{"type":"error","name":"SafeERC20FailedOperation","inputs":[{"type":"address","name":"token","internalType":"address"}]},{"type":"event","name":"AddPool","inputs":[{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"address","name":"lpToken","internalType":"address","indexed":false},{"type":"uint256","name":"allocPoint","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Deposit","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"DurationMultiplierSet","inputs":[{"type":"uint256","name":"durationWeeks","internalType":"uint256","indexed":true},{"type":"uint256","name":"multiplier","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Harvest","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"LogUpdatePool","inputs":[{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"uint256","name":"lastRewardTime","internalType":"uint256","indexed":false},{"type":"uint256","name":"lpSupply","internalType":"uint256","indexed":false},{"type":"uint256","name":"accHEXPerShareX18","internalType":"uint256","indexed":false}],"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":"RewardTokenAdded","inputs":[{"type":"address","name":"token","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"RewardTokenRemoved","inputs":[{"type":"address","name":"token","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"RewardsDistributed","inputs":[{"type":"address","name":"token","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"SetPool","inputs":[{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"address","name":"lpToken","internalType":"address","indexed":false},{"type":"uint256","name":"allocPoint","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"UpdateStartTime","inputs":[{"type":"uint256","name":"newStartBlock","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Withdraw","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"accTokenPerShareThreeDaysAgo","inputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"add","inputs":[{"type":"uint256","name":"_allocPoint","internalType":"uint256"},{"type":"address","name":"_lpToken","internalType":"contract IERC20"},{"type":"bool","name":"_withUpdate","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"addRewardToken","inputs":[{"type":"address","name":"_token","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"apyBpsX18","internalType":"uint256"}],"name":"calculateEstimatedAPY","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"address","name":"_token","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deposit","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_amount","internalType":"uint256"},{"type":"uint256","name":"_durationWeeks","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deposit","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"distributeRewards","inputs":[{"type":"address","name":"_token","internalType":"address"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"durationMultiplier","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getAccTokenPerShare","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"address","name":"_token","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getActiveTotalAllocPoint","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getEffectiveShares","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"address","name":"_user","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"lpToken","internalType":"address"},{"type":"uint256","name":"allocPoint","internalType":"uint256"},{"type":"uint256","name":"lastRewardTime","internalType":"uint256"},{"type":"uint256","name":"lpSupply","internalType":"uint256"}],"name":"getPoolInfo","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"int256","name":"","internalType":"int256"}],"name":"getRewardDebt","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"address","name":"_user","internalType":"address"},{"type":"address","name":"_token","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint256","name":"durationWeeks","internalType":"uint256"},{"type":"uint256","name":"stakedAt","internalType":"uint256"},{"type":"uint256","name":"unlockTime","internalType":"uint256"},{"type":"bool","name":"canWithdraw","internalType":"bool"},{"type":"uint256","name":"effectiveShares","internalType":"uint256"}],"name":"getUserStakeInfo","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"address","name":"_user","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256[]","name":"","internalType":"uint256[]"}],"name":"getValidDurations","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"harvest","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"address","name":"_to","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC20"}],"name":"hexToken","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isRewardToken","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"lastSnapshotTime","inputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"massUpdatePools","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"pendingReward","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"address","name":"_user","internalType":"address"},{"type":"address","name":"_token","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address[]","name":"tokens","internalType":"address[]"},{"type":"uint256[]","name":"amounts","internalType":"uint256[]"}],"name":"pendingRewards","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"address","name":"_user","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"poolExistence","inputs":[{"type":"address","name":"","internalType":"contract IERC20"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"lpToken","internalType":"contract IERC20"},{"type":"uint256","name":"allocPoint","internalType":"uint256"},{"type":"uint256","name":"lastRewardTime","internalType":"uint256"},{"type":"uint256","name":"lpSupply","internalType":"uint256"}],"name":"poolInfo","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"poolLength","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"removeRewardToken","inputs":[{"type":"address","name":"_token","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"rewardTokenCount","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC20"}],"name":"rewardTokens","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setPoolAllocPoints","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_allocPoint","internalType":"uint256"},{"type":"bool","name":"_withUpdate","internalType":"bool"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalAllocPoint","inputs":[]},{"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":"undistributedRewards","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updatePool","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint256","name":"stakedAt","internalType":"uint256"},{"type":"uint256","name":"durationWeeks","internalType":"uint256"}],"name":"userInfo","inputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"validDurations","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdraw","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdrawAndHarvest","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_amount","internalType":"uint256"},{"type":"address","name":"_to","internalType":"address"}]}]
              

Contract Creation Code

Verify & Publish
0x60a06040525f60045534801562000014575f80fd5b5060405162004b0038038062004b0083398181016040528101906200003a9190620003fb565b805f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620000ae575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620000a5919062000451565b60405180910390fd5b620000bf816200025b60201b60201c565b50600180819055508173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1681525050600782908060018154018082558091505060019003905f5260205f20015f9091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160085f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550620001cb6001670de0b6b3a76400006200031c60201b60201c565b620001e66002670e4b4b8af6a700006200031c60201b60201c565b620002016005670f43fc2c04ee00006200031c60201b60201c565b6200021c600a671bc16d674ec800006200031c60201b60201c565b620002376019674ba24a1fe9e100006200031c60201b60201c565b620002536034680139153878d4d000006200031c60201b60201c565b5050620004a1565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80600a5f8481526020019081526020015f2081905550600b82908060018154018082558091505060019003905f5260205f20015f9091909190915055817fcb5504f6136f224bc82f2bb8b1afd873faeb834ab51fc7f63982f7ac80b7f955826040516200038a919062000486565b60405180910390a25050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f620003c5826200039a565b9050919050565b620003d781620003b9565b8114620003e2575f80fd5b50565b5f81519050620003f581620003cc565b92915050565b5f806040838503121562000414576200041362000396565b5b5f6200042385828601620003e5565b92505060206200043685828601620003e5565b9150509250929050565b6200044b81620003b9565b82525050565b5f602082019050620004665f83018462000440565b92915050565b5f819050919050565b62000480816200046c565b82525050565b5f6020820190506200049b5f83018462000475565b92915050565b608051614638620004c85f395f81816111b501528181611551015261187001526146385ff3fe608060405234801561000f575f80fd5b506004361061023a575f3560e01c8063630b5ba111610139578063b2411773116100b6578063d1abb9071161007a578063d1abb9071461072e578063e08857ee1461074a578063e2bbb1581461077a578063f2fde38b14610796578063f7903fa5146107b25761023a565b8063b24117731461063d578063b5fd73f81461066d578063c0bfbd7b1461069d578063cbd258b5146106cd578063d18df53c146106fd5761023a565b8063832ca5bd116100fd578063832ca5bd146105835780638da5cb5b146105b357806393f1a40b146105d1578063a8031a1d14610603578063abb06b951461061f5761023a565b8063630b5ba1146105035780636911cc081461050d5780636eae76691461052b578063715018a6146105495780637bb7bed1146105535761023a565b806323340784116101c7578063441a3e701161018b578063441a3e701461044d57806349ce0a11146104695780634c07ed9414610487578063504edfa6146104b757806351eb05a6146104e75761023a565b806323340784146103695780632f380b35146103995780633248d3c9146103cc5780633300a2d3146103fc5780633d509c97146104315761023a565b806317caf6f11161020e57806317caf6f1146102c757806318fccc76146102e55780631aa7edec146103015780631c03e6cc146103315780631eaaa0451461034d5761023a565b8062aeef8a1461023e578063081e3eda1461025a57806310425f5b146102785780631526fe2714610294575b5f80fd5b6102586004803603810190610253919061360e565b6107e2565b005b610262610802565b60405161026f919061366d565b60405180910390f35b610292600480360381019061028d91906136bb565b61080e565b005b6102ae60048036038101906102a9919061370b565b61090f565b6040516102be94939291906137b0565b60405180910390f35b6102cf610969565b6040516102dc919061366d565b60405180910390f35b6102ff60048036038101906102fa919061382e565b61096f565b005b61031b6004803603810190610316919061382e565b610a5a565b604051610328919061366d565b60405180910390f35b61034b6004803603810190610346919061386c565b610ac2565b005b610367600480360381019061036291906138d2565b610d57565b005b610383600480360381019061037e919061386c565b610fd2565b604051610390919061366d565b60405180910390f35b6103b360048036038101906103ae919061370b565b610fe7565b6040516103c39493929190613931565b60405180910390f35b6103e660048036038101906103e1919061370b565b611050565b6040516103f3919061366d565b60405180910390f35b6104166004803603810190610411919061382e565b611070565b60405161042896959493929190613983565b60405180910390f35b61044b6004803603810190610446919061386c565b611122565b005b610467600480360381019061046291906139e2565b6112db565b005b61047161154f565b60405161047e9190613a20565b60405180910390f35b6104a1600480360381019061049c919061370b565b611573565b6040516104ae919061366d565b60405180910390f35b6104d160048036038101906104cc9190613a39565b611588565b6040516104de9190613aa1565b60405180910390f35b61050160048036038101906104fc919061370b565b61161d565b005b61050b6118e8565b005b610515611913565b604051610522919061366d565b60405180910390f35b610533611999565b6040516105409190613b71565b60405180910390f35b6105516119ef565b005b61056d6004803603810190610568919061370b565b611a02565b60405161057a9190613a20565b60405180910390f35b61059d6004803603810190610598919061382e565b611a3d565b6040516105aa919061366d565b60405180910390f35b6105bb611af8565b6040516105c89190613b91565b60405180910390f35b6105eb60048036038101906105e6919061382e565b611b1f565b6040516105fa93929190613baa565b60405180910390f35b61061d60048036038101906106189190613bdf565b611b50565b005b610627611ce4565b604051610634919061366d565b60405180910390f35b61065760048036038101906106529190613a39565b611cf0565b604051610664919061366d565b60405180910390f35b6106876004803603810190610682919061386c565b611eb7565b6040516106949190613c1d565b60405180910390f35b6106b760048036038101906106b2919061382e565b611ed4565b6040516106c4919061366d565b60405180910390f35b6106e760048036038101906106e29190613c36565b611ef4565b6040516106f49190613c1d565b60405180910390f35b6107176004803603810190610712919061382e565b611f11565b604051610725929190613d18565b60405180910390f35b61074860048036038101906107439190613d4d565b612130565b005b610764600480360381019061075f919061382e565b6123aa565b604051610771919061366d565b60405180910390f35b610794600480360381019061078f91906139e2565b612668565b005b6107b060048036038101906107ab919061386c565b612688565b005b6107cc60048036038101906107c7919061382e565b61270c565b6040516107d9919061366d565b60405180910390f35b6107ea61272c565b6107f5838383612772565b6107fd612b31565b505050565b5f600280549050905090565b610816612b3a565b8015610825576108246118e8565b5b816002848154811061083a57610839613d9d565b5b905f5260205f209060050201600101546004546108579190613df7565b6108619190613e2a565b600481905550816002848154811061087c5761087b613d9d565b5b905f5260205f20906005020160010181905550827f9ced7e143bed267ec55d956df49f446d793739c7ed973ba28439281fb56a2075600285815481106108c5576108c4613d9d565b5b905f5260205f2090600502015f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684604051610902929190613e5d565b60405180910390a2505050565b6002818154811061091e575f80fd5b905f5260205f2090600502015f91509050805f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060040154905084565b60045481565b61097761272c565b5f60035f8481526020019081526020015f205f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f62093a8082600301546109da9190613e84565b90508082600201546109ec9190613e2a565b421015610a2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a2590613f1f565b60405180910390fd5b610a378461161d565b610a42843385612bc1565b610a4c8433612f1a565b5050610a56612b31565b5050565b5f60028381548110610a6f57610a6e613d9d565b5b905f5260205f2090600502016003015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b610aca612b3a565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610b38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2f90613f87565b60405180910390fd5b60085f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615610bc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb990613fef565b60405180910390fd5b5f805b600780549050811015610c54578273ffffffffffffffffffffffffffffffffffffffff1660078281548110610bfd57610bfc613d9d565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610c495760019150610c54565b806001019050610bc5565b5080610cbb57600782908060018154018082558091505060019003905f5260205f20015f9091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160085f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167ff3e4c2c64e71e6ba2eaab9a599bced62f9eb91d2cda610bf41aa8c80ff2cf82660405160405180910390a25050565b610d5f612b3a565b815f1515600c5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16151514610def576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de690614057565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610e289190613b91565b602060405180830381865afa158015610e43573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e679190614089565b508115610e7757610e766118e8565b5b83600454610e859190613e2a565b6004819055506001600c5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550600260018160018154018082558091505003905f5260205f209050505f6001600280549050610f0f9190613df7565b90505f60028281548110610f2657610f25613d9d565b5b905f5260205f209060050201905084815f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508581600101819055504281600201819055505f8160040181905550817f4b132ffdb152fb2a0fcabe7d9f8e5577c3ec5e665661d251acd4eebbc27555778688604051610fc2929190613e5d565b60405180910390a2505050505050565b6009602052805f5260405f205f915090505481565b5f805f805f6002868154811061100057610fff613d9d565b5b905f5260205f2090600502019050805f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169450806001015493508060020154925080600401549150509193509193565b600b818154811061105f575f80fd5b905f5260205f20015f915090505481565b5f805f805f805f60035f8a81526020019081526020015f205f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f209050805f0154965080600301549550806002015494505f62093a80876110e99190613e84565b905080866110f79190613e2a565b94505f861180156111085750844210155b93506111148a8a611a3d565b925050509295509295509295565b61112a612b3a565b60085f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff166111b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111aa906140fe565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611241576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123890614166565b60405180910390fd5b5f60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff167f66257bcef574219c04f7c05f7a1c78d599da10491294c92a5805c48b4cdf500960405160405180910390a250565b6112e361272c565b5f600283815481106112f8576112f7613d9d565b5b905f5260205f20906005020190505f60035f8581526020019081526020015f205f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20905082815f0154101561139b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611392906141ce565b60405180910390fd5b62093a8081600301546113ae9190613e84565b81600201546113bd9190613e2a565b4210156113ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f69061425c565b60405180910390fd5b6114088461161d565b611413843333612bc1565b5f8311156114d4575f600a5f836003015481526020019081526020015f205490505f670de0b6b3a7640000828661144a9190613e84565b61145491906142a7565b905084835f01546114659190613df7565b835f01819055506114b93386865f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166130a19092919063ffffffff16565b8084600401546114c99190613df7565b846004018190555050505b5f815f0154036114e8575f81600301819055505b6114f28433612f1a565b833373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b56885604051611539919061366d565b60405180910390a3505061154b612b31565b5050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600a602052805f5260405f205f915090505481565b5f60035f8581526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206001015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490509392505050565b5f6002828154811061163257611631613d9d565b5b905f5260205f20906005020190505f816004015490505f81148061165957505f8260010154145b1561166e5742826002018190555050506118e5565b5f60078054905090505f611680611913565b90505f5b82811015611837575f600782815481106116a1576116a0613d9d565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505f60095f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f8111156117e0575f848860010154836117269190613e84565b61173091906142a7565b905086670de0b6b3a7640000826117479190613e84565b61175191906142a7565b886003015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461179b9190613e2a565b886003015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b61182a8883896003015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054613120565b5050806001019050611684565b50428460020181905550847fcb7325664a4a3b7c7223eefc492a97ca4fdf94d46884621e5a8fae5a04b2b9d2856002015485876003015f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546040516118d893929190613baa565b60405180910390a2505050505b50565b5f60028054905090505f5b8181101561190f576119048161161d565b8060010190506118f3565b5050565b5f805f90505f5b600280549050811015611991575f6002828154811061193c5761193b613d9d565b5b905f5260205f209060050201600401540315611984576002818154811061196657611965613d9d565b5b905f5260205f20906005020160010154826119819190613e2a565b91505b808060010191505061191a565b508091505090565b6060600b8054806020026020016040519081016040528092919081815260200182805480156119e557602002820191905f5260205f20905b8154815260200190600101908083116119d1575b5050505050905090565b6119f7612b3a565b611a005f61332a565b565b60078181548110611a11575f80fd5b905f5260205f20015f915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f8060035f8581526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f815f01541480611aa157505f8160030154145b15611ab257805f0154915050611af2565b5f600a5f836003015481526020019081526020015f20549050670de0b6b3a764000081835f0154611ae39190613e84565b611aed91906142a7565b925050505b92915050565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6003602052815f5260405f20602052805f5260405f205f9150915050805f0154908060020154908060030154905083565b60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16611bd9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bd090614321565b60405180910390fd5b611c063330838573ffffffffffffffffffffffffffffffffffffffff166133eb909392919063ffffffff16565b8060095f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550611c506118e8565b5f60095f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff167fdf29796aad820e4bb192f3a8d631b76519bcd2cbe77cc85af20e9df53cece08682604051611cd8919061366d565b60405180910390a25050565b5f600780549050905090565b5f60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16611d7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7190614321565b60405180910390fd5b5f60028581548110611d8f57611d8e613d9d565b5b905f5260205f20906005020190505f60035f8781526020019081526020015f205f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f826003015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f611e3a8888611a3d565b90505f670de0b6b3a76400008383611e529190613e84565b611e5c91906142a7565b9050836001015f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205481611ea9919061433f565b955050505050509392505050565b6008602052805f5260405f205f915054906101000a900460ff1681565b6005602052815f5260405f20602052805f5260405f205f91509150505481565b600c602052805f5260405f205f915054906101000a900460ff1681565b6060805f60078054905090508067ffffffffffffffff811115611f3757611f3661437f565b5b604051908082528060200260200182016040528015611f655781602001602082028036833780820191505090505b5092508067ffffffffffffffff811115611f8257611f8161437f565b5b604051908082528060200260200182016040528015611fb05781602001602082028036833780820191505090505b5091505f5b818110156121275760078181548110611fd157611fd0613d9d565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684828151811061200c5761200b613d9d565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250503073ffffffffffffffffffffffffffffffffffffffff1663b241177387876007858154811061207857612077613d9d565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518463ffffffff1660e01b81526004016120be939291906143ac565b602060405180830381865afa1580156120d9573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906120fd9190614089565b8382815181106121105761210f613d9d565b5b602002602001018181525050806001019050611fb5565b50509250929050565b61213861272c565b5f6002848154811061214d5761214c613d9d565b5b905f5260205f20906005020190505f60035f8681526020019081526020015f205f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20905083815f015410156121f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121e79061442b565b60405180910390fd5b5f62093a8082600301546122049190613e84565b90508082600201546122169190613e2a565b421015612258576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161224f906144b9565b60405180910390fd5b6122618661161d565b61226c863386612bc1565b5f85111561232d575f600a5f846003015481526020019081526020015f205490505f670de0b6b3a764000082886122a39190613e84565b6122ad91906142a7565b905086845f01546122be9190613df7565b845f01819055506123128688875f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166130a19092919063ffffffff16565b8085600401546123229190613df7565b856004018190555050505b5f825f015403612341575f82600301819055505b61234b8633612f1a565b853373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b56887604051612392919061366d565b60405180910390a35050506123a5612b31565b505050565b5f60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16612434576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242b90614321565b60405180910390fd5b5f6002848154811061244957612448613d9d565b5b905f5260205f20906005020190505f8160040154148061246c57505f8160010154145b1561247a575f915050612662565b5f816003015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f60055f8781526020019081526020015f205f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f60065f8881526020019081526020015f205f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205414806125c057506203f48060065f8881526020019081526020015f205f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546125bd9190613e2a565b42105b156125d0575f9350505050612662565b5f81036125e2575f9350505050612662565b5f81670de0b6b3a7640000846125f89190613e84565b61260291906142a7565b9050670de0b6b3a7640000811115612659575f670de0b6b3a7640000826126299190613df7565b90506003606461016d8361263d9190613e84565b6126479190613e84565b61265191906142a7565b95505061265d565b5f94505b505050505b92915050565b61267061272c565b61267c82826001612772565b612684612b31565b5050565b612690612b3a565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612700575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016126f79190613b91565b60405180910390fd5b6127098161332a565b50565b6006602052815f5260405f20602052805f5260405f205f91509150505481565b600260015403612768576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600181905550565b5f600a5f8381526020019081526020015f2054116127c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127bc90614521565b60405180910390fd5b5f600284815481106127da576127d9613d9d565b5b905f5260205f20906005020190505f60035f8681526020019081526020015f205f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090506128408561161d565b5f815f0154111561285757612856853333612bc1565b5b5f841115612ad1575f825f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016128bb9190613b91565b602060405180830381865afa1580156128d6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906128fa9190614089565b905061294b333087865f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166133eb909392919063ffffffff16565b80835f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016129a79190613b91565b602060405180830381865afa1580156129c2573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906129e69190614089565b6129f09190613df7565b94505f825f01541480612a07575083826003015414155b15612a5b575f825f015414612a51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a48906145af565b60405180910390fd5b8382600301819055505b4282600201819055505f600a5f846003015481526020019081526020015f205490505f670de0b6b3a76400008288612a939190613e84565b612a9d91906142a7565b905086845f0154612aae9190613e2a565b845f0181905550808560040154612ac59190613e2a565b85600401819055505050505b612adb8533612f1a565b843373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1586604051612b22919061366d565b60405180910390a35050505050565b60018081905550565b612b4261346d565b73ffffffffffffffffffffffffffffffffffffffff16612b60611af8565b73ffffffffffffffffffffffffffffffffffffffff1614612bbf57612b8361346d565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401612bb69190613b91565b60405180910390fd5b565b5f60028481548110612bd657612bd5613d9d565b5b905f5260205f20906005020190505f60035f8681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f815f015403612c44575050612f15565b5f612c4f8686611a3d565b90505f60078054905090505f5b81811015612f0f575f60078281548110612c7957612c78613d9d565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505f151560085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff161515148015612d3d57505f856001015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054145b15612de957670de0b6b3a7640000866003015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205485612d969190613e84565b612da091906142a7565b856001015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555050612f04565b5f670de0b6b3a7640000876003015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205486612e3e9190613e84565b612e4891906142a7565b90505f866001015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205482612e96919061433f565b90505f811315612f00575f819050612eaf848b83613474565b8b8b73ffffffffffffffffffffffffffffffffffffffff167f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae066092495483604051612ef6919061366d565b60405180910390a3505b5050505b806001019050612c5c565b50505050505b505050565b5f60028381548110612f2f57612f2e613d9d565b5b905f5260205f20906005020190505f60035f8581526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f612f978585611a3d565b90505f60078054905090505f5b81811015613098575f60078281548110612fc157612fc0613d9d565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050670de0b6b3a7640000866003015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20548561303f9190613e84565b61304991906142a7565b856001015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555050806001019050612fa4565b50505050505050565b61311b838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040516024016130d4929190613e5d565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061353c565b505050565b5f4290505f60065f8681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20540361321f578060065f8681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508160055f8681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555050613325565b6203f48060065f8681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461327a9190613e2a565b8110613323578160055f8681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508060065f8681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505b505b505050565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b613467848573ffffffffffffffffffffffffffffffffffffffff166323b872dd868686604051602401613420939291906145cd565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061353c565b50505050565b5f33905090565b5f8373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016134ae9190613b91565b602060405180830381865afa1580156134c9573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906134ed9190614089565b90505f8183116134fd57826134ff565b815b90505f8111156135355761353484828773ffffffffffffffffffffffffffffffffffffffff166130a19092919063ffffffff16565b5b5050505050565b5f8060205f8451602086015f885af18061355b576040513d5f823e3d81fd5b3d92505f519150505f821461357457600181141561358f565b5f8473ffffffffffffffffffffffffffffffffffffffff163b145b156135d157836040517f5274afe70000000000000000000000000000000000000000000000000000000081526004016135c89190613b91565b60405180910390fd5b50505050565b5f80fd5b5f819050919050565b6135ed816135db565b81146135f7575f80fd5b50565b5f81359050613608816135e4565b92915050565b5f805f60608486031215613625576136246135d7565b5b5f613632868287016135fa565b9350506020613643868287016135fa565b9250506040613654868287016135fa565b9150509250925092565b613667816135db565b82525050565b5f6020820190506136805f83018461365e565b92915050565b5f8115159050919050565b61369a81613686565b81146136a4575f80fd5b50565b5f813590506136b581613691565b92915050565b5f805f606084860312156136d2576136d16135d7565b5b5f6136df868287016135fa565b93505060206136f0868287016135fa565b9250506040613701868287016136a7565b9150509250925092565b5f602082840312156137205761371f6135d7565b5b5f61372d848285016135fa565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61377861377361376e84613736565b613755565b613736565b9050919050565b5f6137898261375e565b9050919050565b5f61379a8261377f565b9050919050565b6137aa81613790565b82525050565b5f6080820190506137c35f8301876137a1565b6137d0602083018661365e565b6137dd604083018561365e565b6137ea606083018461365e565b95945050505050565b5f6137fd82613736565b9050919050565b61380d816137f3565b8114613817575f80fd5b50565b5f8135905061382881613804565b92915050565b5f8060408385031215613844576138436135d7565b5b5f613851858286016135fa565b92505060206138628582860161381a565b9150509250929050565b5f60208284031215613881576138806135d7565b5b5f61388e8482850161381a565b91505092915050565b5f6138a1826137f3565b9050919050565b6138b181613897565b81146138bb575f80fd5b50565b5f813590506138cc816138a8565b92915050565b5f805f606084860312156138e9576138e86135d7565b5b5f6138f6868287016135fa565b9350506020613907868287016138be565b9250506040613918868287016136a7565b9150509250925092565b61392b816137f3565b82525050565b5f6080820190506139445f830187613922565b613951602083018661365e565b61395e604083018561365e565b61396b606083018461365e565b95945050505050565b61397d81613686565b82525050565b5f60c0820190506139965f83018961365e565b6139a3602083018861365e565b6139b0604083018761365e565b6139bd606083018661365e565b6139ca6080830185613974565b6139d760a083018461365e565b979650505050505050565b5f80604083850312156139f8576139f76135d7565b5b5f613a05858286016135fa565b9250506020613a16858286016135fa565b9150509250929050565b5f602082019050613a335f8301846137a1565b92915050565b5f805f60608486031215613a5057613a4f6135d7565b5b5f613a5d868287016135fa565b9350506020613a6e8682870161381a565b9250506040613a7f8682870161381a565b9150509250925092565b5f819050919050565b613a9b81613a89565b82525050565b5f602082019050613ab45f830184613a92565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b613aec816135db565b82525050565b5f613afd8383613ae3565b60208301905092915050565b5f602082019050919050565b5f613b1f82613aba565b613b298185613ac4565b9350613b3483613ad4565b805f5b83811015613b64578151613b4b8882613af2565b9750613b5683613b09565b925050600181019050613b37565b5085935050505092915050565b5f6020820190508181035f830152613b898184613b15565b905092915050565b5f602082019050613ba45f830184613922565b92915050565b5f606082019050613bbd5f83018661365e565b613bca602083018561365e565b613bd7604083018461365e565b949350505050565b5f8060408385031215613bf557613bf46135d7565b5b5f613c028582860161381a565b9250506020613c13858286016135fa565b9150509250929050565b5f602082019050613c305f830184613974565b92915050565b5f60208284031215613c4b57613c4a6135d7565b5b5f613c58848285016138be565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b613c93816137f3565b82525050565b5f613ca48383613c8a565b60208301905092915050565b5f602082019050919050565b5f613cc682613c61565b613cd08185613c6b565b9350613cdb83613c7b565b805f5b83811015613d0b578151613cf28882613c99565b9750613cfd83613cb0565b925050600181019050613cde565b5085935050505092915050565b5f6040820190508181035f830152613d308185613cbc565b90508181036020830152613d448184613b15565b90509392505050565b5f805f60608486031215613d6457613d636135d7565b5b5f613d71868287016135fa565b9350506020613d82868287016135fa565b9250506040613d938682870161381a565b9150509250925092565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f613e01826135db565b9150613e0c836135db565b9250828203905081811115613e2457613e23613dca565b5b92915050565b5f613e34826135db565b9150613e3f836135db565b9250828201905080821115613e5757613e56613dca565b5b92915050565b5f604082019050613e705f830185613922565b613e7d602083018461365e565b9392505050565b5f613e8e826135db565b9150613e99836135db565b9250828202613ea7816135db565b91508282048414831517613ebe57613ebd613dca565b5b5092915050565b5f82825260208201905092915050565b7f686172766573743a206475726174696f6e206e6f7420796574207061737365645f82015250565b5f613f09602083613ec5565b9150613f1482613ed5565b602082019050919050565b5f6020820190508181035f830152613f3681613efd565b9050919050565b7f496e76616c696420746f6b656e000000000000000000000000000000000000005f82015250565b5f613f71600d83613ec5565b9150613f7c82613f3d565b602082019050919050565b5f6020820190508181035f830152613f9e81613f65565b9050919050565b7f546f6b656e20616c7265616479206164646564000000000000000000000000005f82015250565b5f613fd9601383613ec5565b9150613fe482613fa5565b602082019050919050565b5f6020820190508181035f83015261400681613fcd565b9050919050565b7f6e6f6e4475706c6963617465643a206475706c696361746564000000000000005f82015250565b5f614041601983613ec5565b915061404c8261400d565b602082019050919050565b5f6020820190508181035f83015261406e81614035565b9050919050565b5f81519050614083816135e4565b92915050565b5f6020828403121561409e5761409d6135d7565b5b5f6140ab84828501614075565b91505092915050565b7f546f6b656e206e6f7420666f756e6400000000000000000000000000000000005f82015250565b5f6140e8600f83613ec5565b91506140f3826140b4565b602082019050919050565b5f6020820190508181035f830152614115816140dc565b9050919050565b7f43616e6e6f742072656d6f76652048455820746f6b656e0000000000000000005f82015250565b5f614150601783613ec5565b915061415b8261411c565b602082019050919050565b5f6020820190508181035f83015261417d81614144565b9050919050565b7f77697468647261773a206e6f7420656e6f75676820616d6f756e7400000000005f82015250565b5f6141b8601b83613ec5565b91506141c382614184565b602082019050919050565b5f6020820190508181035f8301526141e5816141ac565b9050919050565b7f77697468647261773a206475726174696f6e206e6f74207965742070617373655f8201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b5f614246602183613ec5565b9150614251826141ec565b604082019050919050565b5f6020820190508181035f8301526142738161423a565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6142b1826135db565b91506142bc836135db565b9250826142cc576142cb61427a565b5b828204905092915050565b7f546f6b656e206e6f7420612072657761726420746f6b656e00000000000000005f82015250565b5f61430b601883613ec5565b9150614316826142d7565b602082019050919050565b5f6020820190508181035f830152614338816142ff565b9050919050565b5f61434982613a89565b915061435483613a89565b925082820390508181125f8412168282135f85121516171561437957614378613dca565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f6060820190506143bf5f83018661365e565b6143cc6020830185613922565b6143d96040830184613922565b949350505050565b7f7769746864726177416e64486172766573743a206e6f7420676f6f64000000005f82015250565b5f614415601c83613ec5565b9150614420826143e1565b602082019050919050565b5f6020820190508181035f83015261444281614409565b9050919050565b7f7769746864726177416e64486172766573743a206475726174696f6e206e6f745f8201527f2079657420706173736564000000000000000000000000000000000000000000602082015250565b5f6144a3602b83613ec5565b91506144ae82614449565b604082019050919050565b5f6020820190508181035f8301526144d081614497565b9050919050565b7f496e76616c6964206475726174696f6e000000000000000000000000000000005f82015250565b5f61450b601083613ec5565b9150614516826144d7565b602082019050919050565b5f6020820190508181035f830152614538816144ff565b9050919050565b7f43616e6e6f74206368616e6765206475726174696f6e206f6e206578697374695f8201527f6e67207374616b65000000000000000000000000000000000000000000000000602082015250565b5f614599602883613ec5565b91506145a48261453f565b604082019050919050565b5f6020820190508181035f8301526145c68161458d565b9050919050565b5f6060820190506145e05f830186613922565b6145ed6020830185613922565b6145fa604083018461365e565b94935050505056fea2646970667358221220e03749a6f16c038a905d2520265f136138f52aef355538bbae18032d27f2b8ef64736f6c634300081700330000000000000000000000002b591e99afe9f32eaa6214f7b7629768c40eeb39000000000000000000000000d4b58a72469222efad11cc06e40ac24a9f860008

Deployed ByteCode

0x608060405234801561000f575f80fd5b506004361061023a575f3560e01c8063630b5ba111610139578063b2411773116100b6578063d1abb9071161007a578063d1abb9071461072e578063e08857ee1461074a578063e2bbb1581461077a578063f2fde38b14610796578063f7903fa5146107b25761023a565b8063b24117731461063d578063b5fd73f81461066d578063c0bfbd7b1461069d578063cbd258b5146106cd578063d18df53c146106fd5761023a565b8063832ca5bd116100fd578063832ca5bd146105835780638da5cb5b146105b357806393f1a40b146105d1578063a8031a1d14610603578063abb06b951461061f5761023a565b8063630b5ba1146105035780636911cc081461050d5780636eae76691461052b578063715018a6146105495780637bb7bed1146105535761023a565b806323340784116101c7578063441a3e701161018b578063441a3e701461044d57806349ce0a11146104695780634c07ed9414610487578063504edfa6146104b757806351eb05a6146104e75761023a565b806323340784146103695780632f380b35146103995780633248d3c9146103cc5780633300a2d3146103fc5780633d509c97146104315761023a565b806317caf6f11161020e57806317caf6f1146102c757806318fccc76146102e55780631aa7edec146103015780631c03e6cc146103315780631eaaa0451461034d5761023a565b8062aeef8a1461023e578063081e3eda1461025a57806310425f5b146102785780631526fe2714610294575b5f80fd5b6102586004803603810190610253919061360e565b6107e2565b005b610262610802565b60405161026f919061366d565b60405180910390f35b610292600480360381019061028d91906136bb565b61080e565b005b6102ae60048036038101906102a9919061370b565b61090f565b6040516102be94939291906137b0565b60405180910390f35b6102cf610969565b6040516102dc919061366d565b60405180910390f35b6102ff60048036038101906102fa919061382e565b61096f565b005b61031b6004803603810190610316919061382e565b610a5a565b604051610328919061366d565b60405180910390f35b61034b6004803603810190610346919061386c565b610ac2565b005b610367600480360381019061036291906138d2565b610d57565b005b610383600480360381019061037e919061386c565b610fd2565b604051610390919061366d565b60405180910390f35b6103b360048036038101906103ae919061370b565b610fe7565b6040516103c39493929190613931565b60405180910390f35b6103e660048036038101906103e1919061370b565b611050565b6040516103f3919061366d565b60405180910390f35b6104166004803603810190610411919061382e565b611070565b60405161042896959493929190613983565b60405180910390f35b61044b6004803603810190610446919061386c565b611122565b005b610467600480360381019061046291906139e2565b6112db565b005b61047161154f565b60405161047e9190613a20565b60405180910390f35b6104a1600480360381019061049c919061370b565b611573565b6040516104ae919061366d565b60405180910390f35b6104d160048036038101906104cc9190613a39565b611588565b6040516104de9190613aa1565b60405180910390f35b61050160048036038101906104fc919061370b565b61161d565b005b61050b6118e8565b005b610515611913565b604051610522919061366d565b60405180910390f35b610533611999565b6040516105409190613b71565b60405180910390f35b6105516119ef565b005b61056d6004803603810190610568919061370b565b611a02565b60405161057a9190613a20565b60405180910390f35b61059d6004803603810190610598919061382e565b611a3d565b6040516105aa919061366d565b60405180910390f35b6105bb611af8565b6040516105c89190613b91565b60405180910390f35b6105eb60048036038101906105e6919061382e565b611b1f565b6040516105fa93929190613baa565b60405180910390f35b61061d60048036038101906106189190613bdf565b611b50565b005b610627611ce4565b604051610634919061366d565b60405180910390f35b61065760048036038101906106529190613a39565b611cf0565b604051610664919061366d565b60405180910390f35b6106876004803603810190610682919061386c565b611eb7565b6040516106949190613c1d565b60405180910390f35b6106b760048036038101906106b2919061382e565b611ed4565b6040516106c4919061366d565b60405180910390f35b6106e760048036038101906106e29190613c36565b611ef4565b6040516106f49190613c1d565b60405180910390f35b6107176004803603810190610712919061382e565b611f11565b604051610725929190613d18565b60405180910390f35b61074860048036038101906107439190613d4d565b612130565b005b610764600480360381019061075f919061382e565b6123aa565b604051610771919061366d565b60405180910390f35b610794600480360381019061078f91906139e2565b612668565b005b6107b060048036038101906107ab919061386c565b612688565b005b6107cc60048036038101906107c7919061382e565b61270c565b6040516107d9919061366d565b60405180910390f35b6107ea61272c565b6107f5838383612772565b6107fd612b31565b505050565b5f600280549050905090565b610816612b3a565b8015610825576108246118e8565b5b816002848154811061083a57610839613d9d565b5b905f5260205f209060050201600101546004546108579190613df7565b6108619190613e2a565b600481905550816002848154811061087c5761087b613d9d565b5b905f5260205f20906005020160010181905550827f9ced7e143bed267ec55d956df49f446d793739c7ed973ba28439281fb56a2075600285815481106108c5576108c4613d9d565b5b905f5260205f2090600502015f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684604051610902929190613e5d565b60405180910390a2505050565b6002818154811061091e575f80fd5b905f5260205f2090600502015f91509050805f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060040154905084565b60045481565b61097761272c565b5f60035f8481526020019081526020015f205f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f62093a8082600301546109da9190613e84565b90508082600201546109ec9190613e2a565b421015610a2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a2590613f1f565b60405180910390fd5b610a378461161d565b610a42843385612bc1565b610a4c8433612f1a565b5050610a56612b31565b5050565b5f60028381548110610a6f57610a6e613d9d565b5b905f5260205f2090600502016003015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b610aca612b3a565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610b38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2f90613f87565b60405180910390fd5b60085f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615610bc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb990613fef565b60405180910390fd5b5f805b600780549050811015610c54578273ffffffffffffffffffffffffffffffffffffffff1660078281548110610bfd57610bfc613d9d565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610c495760019150610c54565b806001019050610bc5565b5080610cbb57600782908060018154018082558091505060019003905f5260205f20015f9091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160085f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167ff3e4c2c64e71e6ba2eaab9a599bced62f9eb91d2cda610bf41aa8c80ff2cf82660405160405180910390a25050565b610d5f612b3a565b815f1515600c5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16151514610def576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de690614057565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610e289190613b91565b602060405180830381865afa158015610e43573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e679190614089565b508115610e7757610e766118e8565b5b83600454610e859190613e2a565b6004819055506001600c5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550600260018160018154018082558091505003905f5260205f209050505f6001600280549050610f0f9190613df7565b90505f60028281548110610f2657610f25613d9d565b5b905f5260205f209060050201905084815f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508581600101819055504281600201819055505f8160040181905550817f4b132ffdb152fb2a0fcabe7d9f8e5577c3ec5e665661d251acd4eebbc27555778688604051610fc2929190613e5d565b60405180910390a2505050505050565b6009602052805f5260405f205f915090505481565b5f805f805f6002868154811061100057610fff613d9d565b5b905f5260205f2090600502019050805f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169450806001015493508060020154925080600401549150509193509193565b600b818154811061105f575f80fd5b905f5260205f20015f915090505481565b5f805f805f805f60035f8a81526020019081526020015f205f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f209050805f0154965080600301549550806002015494505f62093a80876110e99190613e84565b905080866110f79190613e2a565b94505f861180156111085750844210155b93506111148a8a611a3d565b925050509295509295509295565b61112a612b3a565b60085f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff166111b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111aa906140fe565b60405180910390fd5b7f0000000000000000000000002b591e99afe9f32eaa6214f7b7629768c40eeb3973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611241576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123890614166565b60405180910390fd5b5f60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff167f66257bcef574219c04f7c05f7a1c78d599da10491294c92a5805c48b4cdf500960405160405180910390a250565b6112e361272c565b5f600283815481106112f8576112f7613d9d565b5b905f5260205f20906005020190505f60035f8581526020019081526020015f205f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20905082815f0154101561139b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611392906141ce565b60405180910390fd5b62093a8081600301546113ae9190613e84565b81600201546113bd9190613e2a565b4210156113ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f69061425c565b60405180910390fd5b6114088461161d565b611413843333612bc1565b5f8311156114d4575f600a5f836003015481526020019081526020015f205490505f670de0b6b3a7640000828661144a9190613e84565b61145491906142a7565b905084835f01546114659190613df7565b835f01819055506114b93386865f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166130a19092919063ffffffff16565b8084600401546114c99190613df7565b846004018190555050505b5f815f0154036114e8575f81600301819055505b6114f28433612f1a565b833373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b56885604051611539919061366d565b60405180910390a3505061154b612b31565b5050565b7f0000000000000000000000002b591e99afe9f32eaa6214f7b7629768c40eeb3981565b600a602052805f5260405f205f915090505481565b5f60035f8581526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206001015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490509392505050565b5f6002828154811061163257611631613d9d565b5b905f5260205f20906005020190505f816004015490505f81148061165957505f8260010154145b1561166e5742826002018190555050506118e5565b5f60078054905090505f611680611913565b90505f5b82811015611837575f600782815481106116a1576116a0613d9d565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505f60095f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f8111156117e0575f848860010154836117269190613e84565b61173091906142a7565b905086670de0b6b3a7640000826117479190613e84565b61175191906142a7565b886003015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461179b9190613e2a565b886003015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b61182a8883896003015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054613120565b5050806001019050611684565b50428460020181905550847fcb7325664a4a3b7c7223eefc492a97ca4fdf94d46884621e5a8fae5a04b2b9d2856002015485876003015f7f0000000000000000000000002b591e99afe9f32eaa6214f7b7629768c40eeb3973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546040516118d893929190613baa565b60405180910390a2505050505b50565b5f60028054905090505f5b8181101561190f576119048161161d565b8060010190506118f3565b5050565b5f805f90505f5b600280549050811015611991575f6002828154811061193c5761193b613d9d565b5b905f5260205f209060050201600401540315611984576002818154811061196657611965613d9d565b5b905f5260205f20906005020160010154826119819190613e2a565b91505b808060010191505061191a565b508091505090565b6060600b8054806020026020016040519081016040528092919081815260200182805480156119e557602002820191905f5260205f20905b8154815260200190600101908083116119d1575b5050505050905090565b6119f7612b3a565b611a005f61332a565b565b60078181548110611a11575f80fd5b905f5260205f20015f915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f8060035f8581526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f815f01541480611aa157505f8160030154145b15611ab257805f0154915050611af2565b5f600a5f836003015481526020019081526020015f20549050670de0b6b3a764000081835f0154611ae39190613e84565b611aed91906142a7565b925050505b92915050565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6003602052815f5260405f20602052805f5260405f205f9150915050805f0154908060020154908060030154905083565b60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16611bd9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bd090614321565b60405180910390fd5b611c063330838573ffffffffffffffffffffffffffffffffffffffff166133eb909392919063ffffffff16565b8060095f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550611c506118e8565b5f60095f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff167fdf29796aad820e4bb192f3a8d631b76519bcd2cbe77cc85af20e9df53cece08682604051611cd8919061366d565b60405180910390a25050565b5f600780549050905090565b5f60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16611d7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7190614321565b60405180910390fd5b5f60028581548110611d8f57611d8e613d9d565b5b905f5260205f20906005020190505f60035f8781526020019081526020015f205f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f826003015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f611e3a8888611a3d565b90505f670de0b6b3a76400008383611e529190613e84565b611e5c91906142a7565b9050836001015f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205481611ea9919061433f565b955050505050509392505050565b6008602052805f5260405f205f915054906101000a900460ff1681565b6005602052815f5260405f20602052805f5260405f205f91509150505481565b600c602052805f5260405f205f915054906101000a900460ff1681565b6060805f60078054905090508067ffffffffffffffff811115611f3757611f3661437f565b5b604051908082528060200260200182016040528015611f655781602001602082028036833780820191505090505b5092508067ffffffffffffffff811115611f8257611f8161437f565b5b604051908082528060200260200182016040528015611fb05781602001602082028036833780820191505090505b5091505f5b818110156121275760078181548110611fd157611fd0613d9d565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684828151811061200c5761200b613d9d565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250503073ffffffffffffffffffffffffffffffffffffffff1663b241177387876007858154811061207857612077613d9d565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518463ffffffff1660e01b81526004016120be939291906143ac565b602060405180830381865afa1580156120d9573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906120fd9190614089565b8382815181106121105761210f613d9d565b5b602002602001018181525050806001019050611fb5565b50509250929050565b61213861272c565b5f6002848154811061214d5761214c613d9d565b5b905f5260205f20906005020190505f60035f8681526020019081526020015f205f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20905083815f015410156121f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121e79061442b565b60405180910390fd5b5f62093a8082600301546122049190613e84565b90508082600201546122169190613e2a565b421015612258576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161224f906144b9565b60405180910390fd5b6122618661161d565b61226c863386612bc1565b5f85111561232d575f600a5f846003015481526020019081526020015f205490505f670de0b6b3a764000082886122a39190613e84565b6122ad91906142a7565b905086845f01546122be9190613df7565b845f01819055506123128688875f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166130a19092919063ffffffff16565b8085600401546123229190613df7565b856004018190555050505b5f825f015403612341575f82600301819055505b61234b8633612f1a565b853373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b56887604051612392919061366d565b60405180910390a35050506123a5612b31565b505050565b5f60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16612434576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242b90614321565b60405180910390fd5b5f6002848154811061244957612448613d9d565b5b905f5260205f20906005020190505f8160040154148061246c57505f8160010154145b1561247a575f915050612662565b5f816003015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f60055f8781526020019081526020015f205f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f60065f8881526020019081526020015f205f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205414806125c057506203f48060065f8881526020019081526020015f205f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546125bd9190613e2a565b42105b156125d0575f9350505050612662565b5f81036125e2575f9350505050612662565b5f81670de0b6b3a7640000846125f89190613e84565b61260291906142a7565b9050670de0b6b3a7640000811115612659575f670de0b6b3a7640000826126299190613df7565b90506003606461016d8361263d9190613e84565b6126479190613e84565b61265191906142a7565b95505061265d565b5f94505b505050505b92915050565b61267061272c565b61267c82826001612772565b612684612b31565b5050565b612690612b3a565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612700575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016126f79190613b91565b60405180910390fd5b6127098161332a565b50565b6006602052815f5260405f20602052805f5260405f205f91509150505481565b600260015403612768576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600181905550565b5f600a5f8381526020019081526020015f2054116127c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127bc90614521565b60405180910390fd5b5f600284815481106127da576127d9613d9d565b5b905f5260205f20906005020190505f60035f8681526020019081526020015f205f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090506128408561161d565b5f815f0154111561285757612856853333612bc1565b5b5f841115612ad1575f825f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016128bb9190613b91565b602060405180830381865afa1580156128d6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906128fa9190614089565b905061294b333087865f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166133eb909392919063ffffffff16565b80835f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016129a79190613b91565b602060405180830381865afa1580156129c2573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906129e69190614089565b6129f09190613df7565b94505f825f01541480612a07575083826003015414155b15612a5b575f825f015414612a51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a48906145af565b60405180910390fd5b8382600301819055505b4282600201819055505f600a5f846003015481526020019081526020015f205490505f670de0b6b3a76400008288612a939190613e84565b612a9d91906142a7565b905086845f0154612aae9190613e2a565b845f0181905550808560040154612ac59190613e2a565b85600401819055505050505b612adb8533612f1a565b843373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1586604051612b22919061366d565b60405180910390a35050505050565b60018081905550565b612b4261346d565b73ffffffffffffffffffffffffffffffffffffffff16612b60611af8565b73ffffffffffffffffffffffffffffffffffffffff1614612bbf57612b8361346d565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401612bb69190613b91565b60405180910390fd5b565b5f60028481548110612bd657612bd5613d9d565b5b905f5260205f20906005020190505f60035f8681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f815f015403612c44575050612f15565b5f612c4f8686611a3d565b90505f60078054905090505f5b81811015612f0f575f60078281548110612c7957612c78613d9d565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505f151560085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff161515148015612d3d57505f856001015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054145b15612de957670de0b6b3a7640000866003015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205485612d969190613e84565b612da091906142a7565b856001015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555050612f04565b5f670de0b6b3a7640000876003015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205486612e3e9190613e84565b612e4891906142a7565b90505f866001015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205482612e96919061433f565b90505f811315612f00575f819050612eaf848b83613474565b8b8b73ffffffffffffffffffffffffffffffffffffffff167f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae066092495483604051612ef6919061366d565b60405180910390a3505b5050505b806001019050612c5c565b50505050505b505050565b5f60028381548110612f2f57612f2e613d9d565b5b905f5260205f20906005020190505f60035f8581526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f612f978585611a3d565b90505f60078054905090505f5b81811015613098575f60078281548110612fc157612fc0613d9d565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050670de0b6b3a7640000866003015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20548561303f9190613e84565b61304991906142a7565b856001015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555050806001019050612fa4565b50505050505050565b61311b838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040516024016130d4929190613e5d565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061353c565b505050565b5f4290505f60065f8681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20540361321f578060065f8681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508160055f8681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555050613325565b6203f48060065f8681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461327a9190613e2a565b8110613323578160055f8681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508060065f8681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505b505b505050565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b613467848573ffffffffffffffffffffffffffffffffffffffff166323b872dd868686604051602401613420939291906145cd565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061353c565b50505050565b5f33905090565b5f8373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016134ae9190613b91565b602060405180830381865afa1580156134c9573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906134ed9190614089565b90505f8183116134fd57826134ff565b815b90505f8111156135355761353484828773ffffffffffffffffffffffffffffffffffffffff166130a19092919063ffffffff16565b5b5050505050565b5f8060205f8451602086015f885af18061355b576040513d5f823e3d81fd5b3d92505f519150505f821461357457600181141561358f565b5f8473ffffffffffffffffffffffffffffffffffffffff163b145b156135d157836040517f5274afe70000000000000000000000000000000000000000000000000000000081526004016135c89190613b91565b60405180910390fd5b50505050565b5f80fd5b5f819050919050565b6135ed816135db565b81146135f7575f80fd5b50565b5f81359050613608816135e4565b92915050565b5f805f60608486031215613625576136246135d7565b5b5f613632868287016135fa565b9350506020613643868287016135fa565b9250506040613654868287016135fa565b9150509250925092565b613667816135db565b82525050565b5f6020820190506136805f83018461365e565b92915050565b5f8115159050919050565b61369a81613686565b81146136a4575f80fd5b50565b5f813590506136b581613691565b92915050565b5f805f606084860312156136d2576136d16135d7565b5b5f6136df868287016135fa565b93505060206136f0868287016135fa565b9250506040613701868287016136a7565b9150509250925092565b5f602082840312156137205761371f6135d7565b5b5f61372d848285016135fa565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61377861377361376e84613736565b613755565b613736565b9050919050565b5f6137898261375e565b9050919050565b5f61379a8261377f565b9050919050565b6137aa81613790565b82525050565b5f6080820190506137c35f8301876137a1565b6137d0602083018661365e565b6137dd604083018561365e565b6137ea606083018461365e565b95945050505050565b5f6137fd82613736565b9050919050565b61380d816137f3565b8114613817575f80fd5b50565b5f8135905061382881613804565b92915050565b5f8060408385031215613844576138436135d7565b5b5f613851858286016135fa565b92505060206138628582860161381a565b9150509250929050565b5f60208284031215613881576138806135d7565b5b5f61388e8482850161381a565b91505092915050565b5f6138a1826137f3565b9050919050565b6138b181613897565b81146138bb575f80fd5b50565b5f813590506138cc816138a8565b92915050565b5f805f606084860312156138e9576138e86135d7565b5b5f6138f6868287016135fa565b9350506020613907868287016138be565b9250506040613918868287016136a7565b9150509250925092565b61392b816137f3565b82525050565b5f6080820190506139445f830187613922565b613951602083018661365e565b61395e604083018561365e565b61396b606083018461365e565b95945050505050565b61397d81613686565b82525050565b5f60c0820190506139965f83018961365e565b6139a3602083018861365e565b6139b0604083018761365e565b6139bd606083018661365e565b6139ca6080830185613974565b6139d760a083018461365e565b979650505050505050565b5f80604083850312156139f8576139f76135d7565b5b5f613a05858286016135fa565b9250506020613a16858286016135fa565b9150509250929050565b5f602082019050613a335f8301846137a1565b92915050565b5f805f60608486031215613a5057613a4f6135d7565b5b5f613a5d868287016135fa565b9350506020613a6e8682870161381a565b9250506040613a7f8682870161381a565b9150509250925092565b5f819050919050565b613a9b81613a89565b82525050565b5f602082019050613ab45f830184613a92565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b613aec816135db565b82525050565b5f613afd8383613ae3565b60208301905092915050565b5f602082019050919050565b5f613b1f82613aba565b613b298185613ac4565b9350613b3483613ad4565b805f5b83811015613b64578151613b4b8882613af2565b9750613b5683613b09565b925050600181019050613b37565b5085935050505092915050565b5f6020820190508181035f830152613b898184613b15565b905092915050565b5f602082019050613ba45f830184613922565b92915050565b5f606082019050613bbd5f83018661365e565b613bca602083018561365e565b613bd7604083018461365e565b949350505050565b5f8060408385031215613bf557613bf46135d7565b5b5f613c028582860161381a565b9250506020613c13858286016135fa565b9150509250929050565b5f602082019050613c305f830184613974565b92915050565b5f60208284031215613c4b57613c4a6135d7565b5b5f613c58848285016138be565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b613c93816137f3565b82525050565b5f613ca48383613c8a565b60208301905092915050565b5f602082019050919050565b5f613cc682613c61565b613cd08185613c6b565b9350613cdb83613c7b565b805f5b83811015613d0b578151613cf28882613c99565b9750613cfd83613cb0565b925050600181019050613cde565b5085935050505092915050565b5f6040820190508181035f830152613d308185613cbc565b90508181036020830152613d448184613b15565b90509392505050565b5f805f60608486031215613d6457613d636135d7565b5b5f613d71868287016135fa565b9350506020613d82868287016135fa565b9250506040613d938682870161381a565b9150509250925092565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f613e01826135db565b9150613e0c836135db565b9250828203905081811115613e2457613e23613dca565b5b92915050565b5f613e34826135db565b9150613e3f836135db565b9250828201905080821115613e5757613e56613dca565b5b92915050565b5f604082019050613e705f830185613922565b613e7d602083018461365e565b9392505050565b5f613e8e826135db565b9150613e99836135db565b9250828202613ea7816135db565b91508282048414831517613ebe57613ebd613dca565b5b5092915050565b5f82825260208201905092915050565b7f686172766573743a206475726174696f6e206e6f7420796574207061737365645f82015250565b5f613f09602083613ec5565b9150613f1482613ed5565b602082019050919050565b5f6020820190508181035f830152613f3681613efd565b9050919050565b7f496e76616c696420746f6b656e000000000000000000000000000000000000005f82015250565b5f613f71600d83613ec5565b9150613f7c82613f3d565b602082019050919050565b5f6020820190508181035f830152613f9e81613f65565b9050919050565b7f546f6b656e20616c7265616479206164646564000000000000000000000000005f82015250565b5f613fd9601383613ec5565b9150613fe482613fa5565b602082019050919050565b5f6020820190508181035f83015261400681613fcd565b9050919050565b7f6e6f6e4475706c6963617465643a206475706c696361746564000000000000005f82015250565b5f614041601983613ec5565b915061404c8261400d565b602082019050919050565b5f6020820190508181035f83015261406e81614035565b9050919050565b5f81519050614083816135e4565b92915050565b5f6020828403121561409e5761409d6135d7565b5b5f6140ab84828501614075565b91505092915050565b7f546f6b656e206e6f7420666f756e6400000000000000000000000000000000005f82015250565b5f6140e8600f83613ec5565b91506140f3826140b4565b602082019050919050565b5f6020820190508181035f830152614115816140dc565b9050919050565b7f43616e6e6f742072656d6f76652048455820746f6b656e0000000000000000005f82015250565b5f614150601783613ec5565b915061415b8261411c565b602082019050919050565b5f6020820190508181035f83015261417d81614144565b9050919050565b7f77697468647261773a206e6f7420656e6f75676820616d6f756e7400000000005f82015250565b5f6141b8601b83613ec5565b91506141c382614184565b602082019050919050565b5f6020820190508181035f8301526141e5816141ac565b9050919050565b7f77697468647261773a206475726174696f6e206e6f74207965742070617373655f8201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b5f614246602183613ec5565b9150614251826141ec565b604082019050919050565b5f6020820190508181035f8301526142738161423a565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6142b1826135db565b91506142bc836135db565b9250826142cc576142cb61427a565b5b828204905092915050565b7f546f6b656e206e6f7420612072657761726420746f6b656e00000000000000005f82015250565b5f61430b601883613ec5565b9150614316826142d7565b602082019050919050565b5f6020820190508181035f830152614338816142ff565b9050919050565b5f61434982613a89565b915061435483613a89565b925082820390508181125f8412168282135f85121516171561437957614378613dca565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f6060820190506143bf5f83018661365e565b6143cc6020830185613922565b6143d96040830184613922565b949350505050565b7f7769746864726177416e64486172766573743a206e6f7420676f6f64000000005f82015250565b5f614415601c83613ec5565b9150614420826143e1565b602082019050919050565b5f6020820190508181035f83015261444281614409565b9050919050565b7f7769746864726177416e64486172766573743a206475726174696f6e206e6f745f8201527f2079657420706173736564000000000000000000000000000000000000000000602082015250565b5f6144a3602b83613ec5565b91506144ae82614449565b604082019050919050565b5f6020820190508181035f8301526144d081614497565b9050919050565b7f496e76616c6964206475726174696f6e000000000000000000000000000000005f82015250565b5f61450b601083613ec5565b9150614516826144d7565b602082019050919050565b5f6020820190508181035f830152614538816144ff565b9050919050565b7f43616e6e6f74206368616e6765206475726174696f6e206f6e206578697374695f8201527f6e67207374616b65000000000000000000000000000000000000000000000000602082015250565b5f614599602883613ec5565b91506145a48261453f565b604082019050919050565b5f6020820190508181035f8301526145c68161458d565b9050919050565b5f6060820190506145e05f830186613922565b6145ed6020830185613922565b6145fa604083018461365e565b94935050505056fea2646970667358221220e03749a6f16c038a905d2520265f136138f52aef355538bbae18032d27f2b8ef64736f6c63430008170033