Contract 0x0E55e1913C50e015e0F60386ff56A4Bfb00D7110

 
Txn Hash Method
Index
From
To
Value
0x0fa322284ecb21f9fa20c5fdc62ac925e1ffbb6c02a6e024679de56c5461e250Set Approval For...136412492022-07-01 16:00:191 day 9 hrs ago0x1c1ce70ca6975cf60658fa55ae9358c8b295d062 IN  0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether0.0002863278030.001
0xd3bcb310ae92764daa4cc5be74ba2580000a01f0dc8161a51fa8b2fa37af0651Set Approval For...136412442022-07-01 16:00:031 day 9 hrs ago0x1c1ce70ca6975cf60658fa55ae9358c8b295d062 IN  0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether0.0002863278030.001
0x147696b74bcc593eb9aef8953523b78c7663a3d08a9ce379e4bbd34dc1288e16Set Approval For...136382762022-07-01 15:00:331 day 10 hrs ago0xbc373f98b0e8aaee3db4cf86c5ed1f113adf2793 IN  0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether0.0000974964750.001
0x3889f633fb5c85b104f4bee5b1a5a5d015082cde6a8f1f95c9f37a995f79f223Set Approval For...136066492022-07-01 8:08:481 day 17 hrs ago0xa12d1aa37e0a2939044d2fc67704cd55b8a852fe IN  0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether0.0000647687210.001
0x5b705c61ab156b8532d5a4f58127466369fcd528429d04ee9f507cae9f265198Set Approval For...136057362022-07-01 8:02:301 day 17 hrs ago0xe49408ce9aa0dfa8648b7960955c4869786bcba9 IN  0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether0.000084773480.001
0xe1eb152a7b6063f06a34b403c5b8a0e937d7dac1c0dcec6095b8e8f694440de4Set Approval For...135575622022-06-30 19:39:462 days 6 hrs ago0x22c032d041a70150134aa350b595afe162afb993 IN  0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether0.0001695759070.001
0x801aaed1de7ed4551223d3ff0f502299efb66b3588c46c1f829c2372aeaa6d02Safe Transfer Fr...131884252022-06-26 21:20:216 days 4 hrs ago0x4f368e2d4612fef0b923667d19183785a5d3c950 IN  0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether0.0001103808940.001
0x742b9b914791579c32e5e4f7cb859f188f0fb28a23517e68c6f4a6d4629bc79cSet Approval For...131811632022-06-26 19:14:146 days 6 hrs ago 0x22e86ab483084053562ce713e94431c29d1adb8b IN  0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether0.0002126820940.001
0xbcf28b39871fe12a3206a151068066b6f8b2258e243de0aa152e80f3d37bbc74Safe Transfer Fr...130556652022-06-25 16:20:327 days 9 hrs ago0xa12d1aa37e0a2939044d2fc67704cd55b8a852fe IN  0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether0.000297658530.001
0x9caee216101e3df8e0a290072f8c1f9bcb2ffe0d0eb53211a53a66aede480fe7Safe Transfer Fr...130552462022-06-25 16:12:357 days 9 hrs ago0xa12d1aa37e0a2939044d2fc67704cd55b8a852fe IN  0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether0.0004657678470.001
0x390529034b3100ab42777a3a05193a7fdcacd2208a23ca98d8a6b01491d6db4eSafe Transfer Fr...130551922022-06-25 16:11:507 days 9 hrs ago0xe49408ce9aa0dfa8648b7960955c4869786bcba9 IN  0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether0.0003575497560.001
0xc50e246a27b120b2c12fdadbc1aadeca077c1460e3ac1cddb194d4bae4fe1e43Safe Transfer Fr...130551192022-06-25 16:10:327 days 9 hrs ago0xa12d1aa37e0a2939044d2fc67704cd55b8a852fe IN  0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether0.0003295769680.001
0x8088bd29df224d6357ca8c3b2acd08cd64b955db71c4cb7f96c3e1d886c995e8Safe Transfer Fr...130550562022-06-25 16:09:317 days 9 hrs ago0xa630a6e84b4dabf5c74c2f770ab499637f8a67d6 IN  0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether0.0003547914330.001
0x60cb1dc55d9935f50c4d35e6e164a24fba925253eea050dc861f343c54c9df2eSafe Transfer Fr...130543072022-06-25 16:02:097 days 9 hrs ago0xa12d1aa37e0a2939044d2fc67704cd55b8a852fe IN  0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether0.0002854964790.001
0x03c9945d2fe2da9ec2b938491a54cf437d61835c71abc0d821553f2021c434cbSafe Transfer Fr...130542942022-06-25 16:02:097 days 9 hrs ago0xa12d1aa37e0a2939044d2fc67704cd55b8a852fe IN  0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether0.0002855135790.001
0x7b640d20169a6ddeee534652c86b09cf46cf6d343e54cd7ace129a6c0e34dd05Safe Transfer Fr...130538882022-06-25 15:56:127 days 9 hrs ago0xa12d1aa37e0a2939044d2fc67704cd55b8a852fe IN  0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether0.0001971961630.001
0xb5670e605728cf52b3df5e0098228b87a49bd04c7790fc1184575fed16ba91e7Safe Transfer Fr...130537692022-06-25 15:55:257 days 9 hrs ago0xa12d1aa37e0a2939044d2fc67704cd55b8a852fe IN  0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether0.0001971913630.001
0xb37c9b25b5baa9433b8d6f0523f286772cae30efb8e49d6f9db4e7763c22b65cSafe Transfer Fr...130535612022-06-25 15:53:537 days 9 hrs ago0xe49408ce9aa0dfa8648b7960955c4869786bcba9 IN  0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether0.0002137124910.001
0x6d1d74fcca22de8c9da72845110803e5001a7c9eeba8d6b2ad3c5c9e812bfc8fSafe Transfer Fr...130533802022-06-25 15:52:387 days 9 hrs ago0xe49408ce9aa0dfa8648b7960955c4869786bcba9 IN  0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether0.0001599722330.001
0x920ff5f92b1e549e89bf4382194eb79ef5f81beb291b303db3d5ea8244cf2b94Safe Transfer Fr...130528612022-06-25 15:51:237 days 9 hrs ago0xa12d1aa37e0a2939044d2fc67704cd55b8a852fe IN  0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether0.0001662885440.001
0xdde3c55be58dc345215f551873c312676cc5492980a13099ee978df6cb0ed533Safe Transfer Fr...129683542022-06-24 22:41:398 days 3 hrs ago0xe49408ce9aa0dfa8648b7960955c4869786bcba9 IN  0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether0.0001602833580.001
0x0b55b04badb59f7360a2b7f3b63a98b386e5af5b2237d9757c688278b3ac60ccSet Approval For...125368542022-06-21 5:10:4011 days 20 hrs ago0xbabf6c52ff5f75eb22f831f22ec279f055f2df44 IN  0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether0.0000800045780.001
0x60d06dcfcf4e16f1ae11ed55323086e444a5b88400b2210aef9f043ea40eafa3Set Approval For...125345422022-06-21 4:31:4011 days 21 hrs ago0x1c1ce70ca6975cf60658fa55ae9358c8b295d062 IN  0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether0.0001460008450.001
0x36cba13df1e4380053713c099edc4c5255402e559d80c1cd2c7cf4576e7e5e59Set Approval For...124178592022-06-20 3:18:2912 days 22 hrs ago0x4fc885d34a300c93bc19d02eabe3e23ff6368605 IN  0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether0.0000698196010.001
0xd3ac136e2b58c129d069abd2965e25a3fce0d440048810906a8a43b505e6e3b0Safe Transfer Fr...122426602022-06-18 17:05:3914 days 8 hrs ago0xf8de1e04e35d3059ed38a80c23a85884c3a12833 IN  0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether0.0002263968350.001
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x5e2f353d1ecffb7cb2aa2e47466ffc874027e2eb405896c48f92c3df82f7623a136868162022-07-02 9:26:1116 hrs 24 mins ago 0x0e55e1913c50e015e0f60386ff56a4bfb00d7110 0xdbfeaae58b6da8901a8a40ba0712beb2ee18368e0 Ether
0x5e2f353d1ecffb7cb2aa2e47466ffc874027e2eb405896c48f92c3df82f7623a136868162022-07-02 9:26:1116 hrs 24 mins ago 0x0e55e1913c50e015e0f60386ff56a4bfb00d7110 0xe03c4eb2a0a797766a5db708172e04f6a970dc7f0 Ether
0x5e2f353d1ecffb7cb2aa2e47466ffc874027e2eb405896c48f92c3df82f7623a136868162022-07-02 9:26:1116 hrs 24 mins ago 0x124760902088ddbfeb8f27210d3b0c645a5c0a8b 0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether
0x548cea726b8c84f67d3321bb64fe0a2106ffc6f5ba69c47c7119ae58319c5a25136864082022-07-02 9:22:1716 hrs 28 mins ago 0x0e55e1913c50e015e0f60386ff56a4bfb00d7110 0xdbfeaae58b6da8901a8a40ba0712beb2ee18368e0 Ether
0x548cea726b8c84f67d3321bb64fe0a2106ffc6f5ba69c47c7119ae58319c5a25136864082022-07-02 9:22:1716 hrs 28 mins ago 0x0e55e1913c50e015e0f60386ff56a4bfb00d7110 0xe03c4eb2a0a797766a5db708172e04f6a970dc7f0 Ether
0x548cea726b8c84f67d3321bb64fe0a2106ffc6f5ba69c47c7119ae58319c5a25136864082022-07-02 9:22:1716 hrs 28 mins ago 0x124760902088ddbfeb8f27210d3b0c645a5c0a8b 0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether
0x49c5896641bc3dd32b0f1315073d65e8bb6053fe184617c7f9e61071dccf9538136862672022-07-02 9:18:0016 hrs 32 mins ago 0x0e55e1913c50e015e0f60386ff56a4bfb00d7110 0xe03c4eb2a0a797766a5db708172e04f6a970dc7f0 Ether
0x49c5896641bc3dd32b0f1315073d65e8bb6053fe184617c7f9e61071dccf9538136862672022-07-02 9:18:0016 hrs 32 mins ago 0x124760902088ddbfeb8f27210d3b0c645a5c0a8b 0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether
0xa9fd6cbebea7f388c32a7efc35ee94fba4786ef2c274fa25994549140f9bd9ab136862542022-07-02 9:17:4416 hrs 32 mins ago 0x0e55e1913c50e015e0f60386ff56a4bfb00d7110 0xe03c4eb2a0a797766a5db708172e04f6a970dc7f0 Ether
0xa9fd6cbebea7f388c32a7efc35ee94fba4786ef2c274fa25994549140f9bd9ab136862542022-07-02 9:17:4416 hrs 32 mins ago 0x124760902088ddbfeb8f27210d3b0c645a5c0a8b 0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether
0x003761a0865b818626f637a1487e1272fadc82d018dcaaf93e01336c972ffdc7136839982022-07-02 8:16:4117 hrs 33 mins ago 0x0e55e1913c50e015e0f60386ff56a4bfb00d7110 0xe03c4eb2a0a797766a5db708172e04f6a970dc7f0 Ether
0x003761a0865b818626f637a1487e1272fadc82d018dcaaf93e01336c972ffdc7136839982022-07-02 8:16:4117 hrs 33 mins ago 0x124760902088ddbfeb8f27210d3b0c645a5c0a8b 0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether
0x447d6434a684d392e831526140ad5655cecb0c144e3e03e0eb4544997d78f6d8136179532022-07-01 10:26:221 day 15 hrs ago 0x0e55e1913c50e015e0f60386ff56a4bfb00d7110 0xe03c4eb2a0a797766a5db708172e04f6a970dc7f0 Ether
0x447d6434a684d392e831526140ad5655cecb0c144e3e03e0eb4544997d78f6d8136179532022-07-01 10:26:221 day 15 hrs ago 0x124760902088ddbfeb8f27210d3b0c645a5c0a8b 0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether
0x66ba2e4f9c18f324b9addfd99e769e12fe178b233ffb06a63ebcccb357e0d935136140062022-07-01 9:31:491 day 16 hrs ago 0x0e55e1913c50e015e0f60386ff56a4bfb00d7110 0xe03c4eb2a0a797766a5db708172e04f6a970dc7f0 Ether
0x66ba2e4f9c18f324b9addfd99e769e12fe178b233ffb06a63ebcccb357e0d935136140062022-07-01 9:31:491 day 16 hrs ago 0x124760902088ddbfeb8f27210d3b0c645a5c0a8b 0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether
0x7e99d0a3a25c7ed15535cd8ff9dc8d9eaa96e49beccbd438ca4b32024bd046ca135850942022-07-01 3:28:021 day 22 hrs ago 0x0e55e1913c50e015e0f60386ff56a4bfb00d7110 0xe03c4eb2a0a797766a5db708172e04f6a970dc7f0 Ether
0x7e99d0a3a25c7ed15535cd8ff9dc8d9eaa96e49beccbd438ca4b32024bd046ca135850942022-07-01 3:28:021 day 22 hrs ago 0x124760902088ddbfeb8f27210d3b0c645a5c0a8b 0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether
0x4a357a10eb7da3b94dbb603261c37c79a1b5f302de6735f580120ad5ae013dd9135850012022-07-01 3:26:431 day 22 hrs ago 0x0e55e1913c50e015e0f60386ff56a4bfb00d7110 0xe03c4eb2a0a797766a5db708172e04f6a970dc7f0 Ether
0x4a357a10eb7da3b94dbb603261c37c79a1b5f302de6735f580120ad5ae013dd9135850012022-07-01 3:26:431 day 22 hrs ago 0x124760902088ddbfeb8f27210d3b0c645a5c0a8b 0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether
0x3beaf652f6579ba6e0032ec6ed5ae7c0ea2885e4524f2aee4da73799150e1427134607872022-06-29 13:32:533 days 12 hrs ago 0x0e55e1913c50e015e0f60386ff56a4bfb00d7110 0xe03c4eb2a0a797766a5db708172e04f6a970dc7f0 Ether
0x3beaf652f6579ba6e0032ec6ed5ae7c0ea2885e4524f2aee4da73799150e1427134607872022-06-29 13:32:533 days 12 hrs ago 0x124760902088ddbfeb8f27210d3b0c645a5c0a8b 0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether
0x9301b3fe561b6664309d4310e118811454b78b8e097a9d01cfbee3f1c2bd7ba0133921372022-06-28 14:55:084 days 10 hrs ago 0x0e55e1913c50e015e0f60386ff56a4bfb00d7110 0xe03c4eb2a0a797766a5db708172e04f6a970dc7f0 Ether
0x9301b3fe561b6664309d4310e118811454b78b8e097a9d01cfbee3f1c2bd7ba0133921372022-06-28 14:55:084 days 10 hrs ago 0x124760902088ddbfeb8f27210d3b0c645a5c0a8b 0x0e55e1913c50e015e0f60386ff56a4bfb00d71100 Ether
0xe110f94e49b123c8cf3f512c9aca8dfb39bde174a423a5323f05701d54657273133610122022-06-28 4:42:434 days 21 hrs ago 0x0e55e1913c50e015e0f60386ff56a4bfb00d7110 0xe03c4eb2a0a797766a5db708172e04f6a970dc7f0 Ether
[ Download CSV Export 
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
SwapMeet

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU GPLv3 license

Contract Source Code (Solidity Multiple files format)

File 16 of 18: SwapMeet.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.0;

// ============ Imports ============

import './IERC20.sol';
import './IERC721.sol';
import './ERC1155.sol';
import './Ownable.sol';

import './Components.sol';
import './SwapMeetMetadata.sol';
import './TokenId.sol';
import './ISwapMeet.sol';

/// @title Dope Gear SwapMeet
/// @author Tarrence van As, forked from Georgios Konstantopoulos
/// @notice Allows "opening" your ERC721 dope and extracting the items inside it
contract SwapMeet is ISwapMeet, ERC1155, SwapMeetMetadata, Ownable {
    event SetRle(uint256 id);

    constructor(address _components) SwapMeetMetadata(_components) {}

    /// @notice Bulk opens the provided tokenIds. This
    /// can only be done once per DOPE token.
    function open(
        uint256 id,
        address to,
        bytes memory data
    ) external override onlyOwner {
        uint256[] memory amounts = new uint256[](9);
        uint256[] memory parts = new uint256[](9);

        uint256 i = 0;
        uint256[] memory items = itemIds(id);
        parts[i] = items[0];
        parts[i + 1] = items[1];
        parts[i + 2] = items[2];
        parts[i + 3] = items[3];
        parts[i + 4] = items[4];
        parts[i + 5] = items[5];
        parts[i + 6] = items[6];
        parts[i + 7] = items[7];
        parts[i + 8] = items[8];

        amounts[i] = 1;
        amounts[i + 1] = 1;
        amounts[i + 2] = 1;
        amounts[i + 3] = 1;
        amounts[i + 4] = 1;
        amounts[i + 5] = 1;
        amounts[i + 6] = 1;
        amounts[i + 7] = 1;
        amounts[i + 8] = 1;

        _mintBatch(to, parts, amounts, data);
    }

    function itemIds(uint256 tokenId) public view returns (uint256[] memory) {
        uint256[] memory ids = new uint256[](9);
        uint8[5][9] memory items = sc.items(tokenId);
        for (uint8 i = 0; i < 9; i++) {
            ids[i] = TokenId.toId(items[i], i);
        }
        return ids;
    }

    function uri(uint256 tokenId) public view override returns (string memory) {
        return tokenURI(tokenId);
    }

    function mint(
        address to,
        uint8[5] memory components,
        uint8 componentType,
        uint256 amount,
        bytes memory data
    ) external override onlyOwner returns (uint256) {
        uint256 id = TokenId.toId(components, componentType);
        _mint(to, id, amount, data);
        return id;
    }

    function mintBatch(
        address to,
        uint8[] memory components,
        uint8[] memory componentTypes,
        uint256[] memory amounts,
        bytes memory data
    ) external override onlyOwner returns (uint256[] memory) {
        require(components.length % 5 == 0, 'components len');
        require(components.length / 5 == componentTypes.length, 'len mismatch');
        uint256[] memory ids = new uint256[](componentTypes.length);

        for (uint256 i = 0; i < components.length; i += 5) {
            uint8[5] memory _components;
            _components[0] = components[i];
            _components[1] = components[i + 1];
            _components[2] = components[i + 2];
            _components[3] = components[i + 3];
            _components[4] = components[i + 4];
            ids[i / 5] = TokenId.toId(_components, componentTypes[i / 5]);
        }

        _mintBatch(to, ids, amounts, data);
        return ids;
    }

    function setPalette(uint8 id, bytes4[] memory palette) external override onlyOwner {
        palettes[id] = palette;
    }

    function setRle(
        uint256 id,
        bytes memory male,
        bytes memory female
    ) public override onlyOwner {
        rles[id][Gender.MALE] = male;
        rles[id][Gender.FEMALE] = female;
        emit SetRle(id);
    }

    function batchSetRle(uint256[] calldata ids, bytes[] calldata rles) external override onlyOwner {
        require(ids.length == rles.length / 2, 'ids rles mismatch');

        for (uint256 i = 0; i < rles.length; i += 2) {
            setRle(ids[i / 2], rles[i], rles[i + 1]);
        }
    }
}

File 1 of 18: Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/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.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // 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 {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 2 of 18: Components.sol
// SPDX-License-Identifier: Unlicense

/*
    Components.sol
    
    This is a utility contract to make it easier for other
    contracts to work with Loot properties.
    
    Call weaponComponents(), clothesComponents(), etc. to get 
    an array of attributes that correspond to the item. 
    
    The return format is:
    
    uint8[5] =>
        [0] = Item ID
        [1] = Suffix ID (0 for none)
        [2] = Name Prefix ID (0 for none)
        [3] = Name Suffix ID (0 for none)
        [4] = Augmentation (0 = false, 1 = true)
    
    See the item and attribute tables below for corresponding IDs.

*/

pragma solidity ^0.8.4;

import './Ownable.sol';

import './MetadataUtils.sol';

library ComponentTypes {
    uint8 internal constant WEAPON = 0x0;
    uint8 internal constant CLOTHES = 0x1;
    uint8 internal constant VEHICLE = 0x2;
    uint8 internal constant WAIST = 0x3;
    uint8 internal constant FOOT = 0x4;
    uint8 internal constant HAND = 0x5;
    uint8 internal constant DRUGS = 0x6;
    uint8 internal constant NECK = 0x7;
    uint8 internal constant RING = 0x8;
    uint8 internal constant ACCESSORY = 0x9;
    uint8 internal constant NAME_PREFIX = 0xa;
    uint8 internal constant NAME_SUFFIX = 0xb;
    uint8 internal constant SUFFIX = 0xc;
}

contract Components is Ownable {
    string constant UnexpectedComponent = 'unexpected component type';

    string[10] internal slots = [
        'Weapon',
        'Clothes',
        'Vehicle',
        'Waist',
        'Foot',
        'Hand',
        'Drugs',
        'Neck',
        'Ring',
        'Accessory'
    ];

    string[9] internal slotKeys = ['WEAPON', 'CLOTHES', 'VEHICLE', 'WAIST', 'FOOT', 'HAND', 'DRUGS', 'NECK', 'RING'];
    uint256[9] internal slotLens = [18, 20, 17, 16, 17, 14, 19, 3, 7];

    string[] public weapons = [
        'Pocket Knife', // 0
        'Chain', // 1
        'Knife', // 2
        'Crowbar', // 3
        'Handgun', // 4
        'AK47', // 5
        'Shovel', // 6
        'Baseball Bat', // 7
        'Tire Iron', // 8
        'Police Baton', // 9
        'Pepper Spray', // 10
        'Razor Blade', // 11
        'Chain', // 12
        'Taser', // 13
        'Brass Knuckles', // 14
        'Shotgun', // 15
        'Glock', // 16
        'Uzi' // 17
    ];

    string[] public clothes = [
        'White T Shirt', // 0
        'Black T Shirt', // 1
        'White Hoodie', // 2
        'Black Hoodie', // 3
        'Bulletproof Vest', // 4
        '3 Piece Suit', // 5
        'Checkered Shirt', // 6
        'Bikini', // 7
        'Golden Shirt', // 8
        'Leather Vest', // 9
        'Blood Stained Shirt', // 10
        'Police Uniform', // 11
        'Combat Jacket', // 12
        'Basketball Jersey', // 13
        'Track Suit', // 14
        'Trenchcoat', // 15
        'White Tank Top', // 16
        'Black Tank Top', // 17
        'Shirtless', // 18
        'Naked' // 19
    ];

    string[] public vehicle = [
        'Dodge', // 0
        'Porsche', // 1
        'Tricycle', // 2
        'Scooter', // 3
        'ATV', // 4
        'Push Bike', // 5
        'Electric Scooter', // 6
        'Golf Cart', // 7
        'Chopper', // 8
        'Rollerblades', // 9
        'Lowrider', // 10
        'Camper', // 11
        'Rolls Royce', // 12
        'BMW M3', // 13
        'Bike', // 14
        'C63 AMG', // 15
        'G Wagon' // 16
    ];

    string[] public waistArmor = [
        'Gucci Belt', // 0
        'Versace Belt', // 1
        'Studded Belt', // 2
        'Taser Holster', // 3
        'Concealed Holster', // 4
        'Diamond Belt', // 5
        'D Ring Belt', // 6
        'Suspenders', // 7
        'Military Belt', // 8
        'Metal Belt', // 9
        'Pistol Holster', // 10
        'SMG Holster', // 11
        'Knife Holster', // 12
        'Laces', // 13
        'Sash', // 14
        'Fanny Pack' // 15
    ];

    string[] public footArmor = [
        'Black Air Force 1s', // 0
        'White Forces', // 1
        'Air Jordan 1 Chicagos', // 2
        'Gucci Tennis 84', // 3
        'Air Max 95', // 4
        'Timberlands', // 5
        'Reebok Classics', // 6
        'Flip Flops', // 7
        'Nike Cortez', // 8
        'Dress Shoes', // 9
        'Converse All Stars', // 10
        'White Slippers', // 11
        'Gucci Slides', // 12
        'Alligator Dress Shoes', // 13
        'Socks', // 14
        'Open Toe Sandals', // 15
        'Barefoot' // 16
    ];

    string[] public handArmor = [
        'Rubber Gloves', // 0
        'Baseball Gloves', // 1
        'Boxing Gloves', // 2
        'MMA Wraps', // 3
        'Winter Gloves', // 4
        'Nitrile Gloves', // 5
        'Studded Leather Gloves', // 6
        'Combat Gloves', // 7
        'Leather Gloves', // 8
        'White Gloves', // 9
        'Black Gloves', // 10
        'Kevlar Gloves', // 11
        'Surgical Gloves', // 12
        'Fingerless Gloves' // 13
    ];

    string[] public necklaces = [
        'Bronze Chain', // 0
        'Silver Chain', // 1
        'Gold Chain' // 2
    ];

    string[] public rings = [
        'Gold Ring', // 0
        'Silver Ring', // 1
        'Diamond Ring', // 2
        'Platinum Ring', // 3
        'Titanium Ring', // 4
        'Pinky Ring', // 5
        'Thumb Ring' // 6
    ];

    string[] public drugs = [
        'Weed', // 0
        'Cocaine', // 1
        'Ludes', // 2
        'Acid', // 3
        'Speed', // 4
        'Heroin', // 5
        'Oxycontin', // 6
        'Zoloft', // 7
        'Fentanyl', // 8
        'Krokodil', // 9
        'Coke', // 10
        'Crack', // 11
        'PCP', // 12
        'LSD', // 13
        'Shrooms', // 14
        'Soma', // 15
        'Xanax', // 16
        'Molly', // 17
        'Adderall' // 18
    ];

    string[] public accessories;

    string[] public suffixes = [
        // <no suffix>          // 0
        'from the Bayou', // 1
        'from Atlanta', // 2
        'from Compton', // 3
        'from Oakland', // 4
        'from SOMA', // 5
        'from Hong Kong', // 6
        'from London', // 7
        'from Chicago', // 8
        'from Brooklyn', // 9
        'from Detroit', // 10
        'from Mob Town', // 11
        'from Murdertown', // 12
        'from Sin City', // 13
        'from Big Smoke', // 14
        'from the Backwoods', // 15
        'from the Big Easy', // 16
        'from Queens', // 17
        'from BedStuy', // 18
        'from Buffalo' // 19
    ];
    uint256 private constant suffixesLength = 19;

    string[] public namePrefixes = [
        // <no name>            // 0
        'OG', // 1
        'King of the Street', // 2
        'Cop Killer', // 3
        'Blasta', // 4
        'Lil', // 5
        'Big', // 6
        'Tiny', // 7
        'Playboi', // 8
        'Snitch boi', // 9
        'Kingpin', // 10
        'Father of the Game', // 11
        'Son of the Game', // 12
        'Loose Trigger Finger', // 13
        'Slum Prince', // 14
        'Corpse', // 15
        'Mother of the Game', // 16
        'Daughter of the Game', // 17
        'Slum Princess', // 18
        'Da', // 19
        'Notorious', // 20
        'The Boss of Bosses', // 21
        'The Dog Killer', // 22
        'The Killer of Dog Killer', // 23
        'Slum God', // 24
        'Candyman', // 25
        'Candywoman', // 26
        'The Butcher', // 27
        'Yung Capone', // 28
        'Yung Chapo', // 29
        'Yung Blanco', // 30
        'The Fixer', // 31
        'Jail Bird', // 32
        'Corner Cockatoo', // 33
        'Powder Prince', // 34
        'Hippie', // 35
        'John E. Dell', // 36
        'The Burning Man', // 37
        'The Burning Woman', // 38
        'Kid of the Game', // 39
        'Street Queen', // 40
        'The Killer of Dog Killers Killer', // 41
        'Slum General', // 42
        'Mafia Prince', // 43
        'Crooked Cop', // 44
        'Street Mayor', // 45
        'Undercover Cop', // 46
        'Oregano Farmer', // 47
        'Bloody', // 48
        'High on the Supply', // 49
        'The Orphan', // 50
        'The Orphan Maker', // 51
        'Ex Boxer', // 52
        'Ex Cop', // 53
        'Ex School Teacher', // 54
        'Ex Priest', // 55
        'Ex Engineer', // 56
        'Street Robinhood', // 57
        'Hell Bound', // 58
        'SoundCloud Rapper', // 59
        'Gang Leader', // 60
        'The CEO', // 61
        'The Freelance Pharmacist', // 62
        'Soccer Mom', // 63
        'Soccer Dad' // 64
    ];
    uint256 private constant namePrefixesLength = 64;

    string[] public nameSuffixes = [
        // <no name>            // 0
        'Feared', // 1
        'Baron', // 2
        'Vicious', // 3
        'Killer', // 4
        'Fugitive', // 5
        'Triggerman', // 6
        'Conman', // 7
        'Outlaw', // 8
        'Assassin', // 9
        'Shooter', // 10
        'Hitman', // 11
        'Bloodstained', // 12
        'Punishment', // 13
        'Sin', // 14
        'Smuggled', // 15
        'LastResort', // 16
        'Contraband', // 17
        'Illicit' // 18
    ];
    uint256 private constant nameSuffixesLength = 18;

    event AddComponent(uint256 id, uint256 componentType, string component);

    function random(string memory input) internal pure returns (uint256) {
        return uint256(keccak256(abi.encodePacked(input)));
    }

    function seed(uint256 tokenId, uint8 componentType) public view returns (uint256, uint256) {
        uint256 rand = random(string(abi.encodePacked(slotKeys[componentType], toString(tokenId))));
        return (rand, rand % 21);
    }

    function pluck(uint256 rand, uint256 sourceArrayLength) internal pure returns (uint8[5] memory) {
        uint8[5] memory components;
        uint256 greatness = rand % 21;

        components[0] = uint8(rand % sourceArrayLength);
        components[1] = 0;
        components[2] = 0;

        if (greatness > 14) {
            components[1] = uint8((rand % suffixesLength) + 1);
        }
        if (greatness >= 19) {
            components[2] = uint8((rand % namePrefixesLength) + 1);
            components[3] = uint8((rand % nameSuffixesLength) + 1);
            if (greatness == 19) {
                // ...
            } else {
                components[4] = 1;
            }
        }

        return components;
    }

    function items(uint256 tokenId) external view returns (uint8[5][9] memory items_) {
        string memory id = toString(tokenId);

        for (uint8 i = 0; i < 9; i++) {
            uint256 rand = random(string(abi.encodePacked(slotKeys[i], id)));
            items_[i] = pluck(rand, slotLens[i]);
        }
    }

    function title(uint256 hustlerId) external view returns (string memory) {
        uint256 rand = random(string(abi.encodePacked('OG', hustlerId)));
        // We subtract two to remove the soccer mom/dad prefixes
        return prefix(uint8((rand % (namePrefixesLength - 2)) + 1), uint8((rand % nameSuffixesLength) + 1));
    }

    function addComponent(uint8 componentType, string calldata component) external onlyOwner returns (uint8) {
        string[] storage arr;
        if (componentType == ComponentTypes.WEAPON) {
            arr = weapons;
        } else if (componentType == ComponentTypes.CLOTHES) {
            arr = clothes;
        } else if (componentType == ComponentTypes.VEHICLE) {
            arr = vehicle;
        } else if (componentType == ComponentTypes.WAIST) {
            arr = waistArmor;
        } else if (componentType == ComponentTypes.FOOT) {
            arr = footArmor;
        } else if (componentType == ComponentTypes.HAND) {
            arr = handArmor;
        } else if (componentType == ComponentTypes.DRUGS) {
            arr = drugs;
        } else if (componentType == ComponentTypes.NECK) {
            arr = necklaces;
        } else if (componentType == ComponentTypes.RING) {
            arr = rings;
        } else if (componentType == ComponentTypes.ACCESSORY) {
            arr = accessories;
        } else if (componentType == ComponentTypes.NAME_PREFIX) {
            arr = namePrefixes;
        } else if (componentType == ComponentTypes.NAME_SUFFIX) {
            arr = nameSuffixes;
        } else if (componentType == ComponentTypes.SUFFIX) {
            arr = suffixes;
        } else {
            revert(UnexpectedComponent);
        }

        require(arr.length < 255, 'component full');
        arr.push(component);
        uint8 id = uint8(arr.length) - 1;

        // prefix/suffix components are handled differently since they aren't always set.
        if (
            componentType == ComponentTypes.NAME_PREFIX ||
            componentType == ComponentTypes.NAME_SUFFIX ||
            componentType == ComponentTypes.SUFFIX
        ) {
            id = id + 1;
        }

        emit AddComponent(id, componentType, component);

        return id;
    }

    // Returns the "vanilla" item name w/o any prefix/suffixes or augmentations
    function name(uint8 componentType, uint256 idx) public view returns (string memory) {
        if (componentType == ComponentTypes.WEAPON) {
            return weapons[idx];
        } else if (componentType == ComponentTypes.CLOTHES) {
            return clothes[idx];
        } else if (componentType == ComponentTypes.VEHICLE) {
            return vehicle[idx];
        } else if (componentType == ComponentTypes.WAIST) {
            return waistArmor[idx];
        } else if (componentType == ComponentTypes.FOOT) {
            return footArmor[idx];
        } else if (componentType == ComponentTypes.HAND) {
            return handArmor[idx];
        } else if (componentType == ComponentTypes.DRUGS) {
            return drugs[idx];
        } else if (componentType == ComponentTypes.NECK) {
            return necklaces[idx];
        } else if (componentType == ComponentTypes.RING) {
            return rings[idx];
        } else if (componentType == ComponentTypes.ACCESSORY) {
            return accessories[idx];
        } else {
            revert(UnexpectedComponent);
        }
    }

    function prefix(uint8 prefixComponent, uint8 suffixComponent) public view returns (string memory) {
        if (prefixComponent == 0) {
            return '';
        }

        string memory namePrefixSuffix = namePrefixes[prefixComponent - 1];

        if (suffixComponent > 0) {
            namePrefixSuffix = string(abi.encodePacked(namePrefixSuffix, ' ', nameSuffixes[suffixComponent - 1]));
        }

        return namePrefixSuffix;
    }

    function suffix(uint8 suffixComponent) public view returns (string memory) {
        if (suffixComponent == 0) {
            return '';
        }

        return suffixes[suffixComponent - 1];
    }

    /// @notice Returns the attributes associated with this item.
    /// @dev Opensea Standards: https://docs.opensea.io/docs/metadata-standards
    function attributes(uint8[5] calldata components, uint8 componentType) external view returns (string memory) {
        string memory slot = slots[componentType];
        string memory res = string(abi.encodePacked('[', trait('Slot', slot)));

        string memory item = name(componentType, components[0]);
        res = string(abi.encodePacked(res, ', ', trait('Item', item)));

        if (components[1] > 0) {
            string memory data = suffixes[components[1] - 1];
            res = string(abi.encodePacked(res, ', ', trait('Suffix', data)));
        }

        if (components[2] > 0) {
            string memory data = namePrefixes[components[2] - 1];
            res = string(abi.encodePacked(res, ', ', trait('Name Prefix', data)));
        }

        if (components[3] > 0) {
            string memory data = nameSuffixes[components[3] - 1];
            res = string(abi.encodePacked(res, ', ', trait('Name Suffix', data)));
        }

        if (components[4] > 0) {
            res = string(abi.encodePacked(res, ', ', trait('Augmentation', 'Yes')));
        }

        res = string(abi.encodePacked(res, ']'));

        return res;
    }

    // Helper for encoding as json w/ trait_type / value from opensea
    function trait(string memory traitType, string memory value) internal pure returns (string memory) {
        return string(abi.encodePacked('{', '"trait_type": "', traitType, '", ', '"value": "', value, '"', '}'));
    }
}

File 3 of 18: Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 4 of 18: ERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./IERC1155MetadataURI.sol";
import "./Address.sol";
import "./Context.sol";
import "./ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) internal _balances;

    // Mapping from account to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(_msgSender() != operator, "ERC1155: setting approval status for self");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC1155-isApprovedForAll}.
     */
    function isApprovedForAll(address account, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[account][operator];
    }

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(account != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data);

        _balances[id][account] += amount;
        emit TransferSingle(operator, address(0), account, id, amount);

        _doSafeTransferAcceptanceCheck(operator, address(0), account, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) internal pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 5 of 18: ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 6 of 18: IERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 7 of 18: IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 8 of 18: IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
        @dev Handles the receipt of a single ERC1155 token type. This function is
        called at the end of a `safeTransferFrom` after the balance has been updated.
        To accept the transfer, this must return
        `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
        (i.e. 0xf23a6e61, or its own function selector).
        @param operator The address which initiated the transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param id The ID of the token being transferred
        @param value The amount of tokens being transferred
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
    */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
        @dev Handles the receipt of a multiple ERC1155 token types. This function
        is called at the end of a `safeBatchTransferFrom` after the balances have
        been updated. To accept the transfer(s), this must return
        `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
        (i.e. 0xbc197c81, or its own function selector).
        @param operator The address which initiated the batch transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param ids An array containing ids of each token being transferred (order and length must match values array)
        @param values An array containing amounts of each token being transferred (order and length must match ids array)
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
    */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 9 of 18: IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 10 of 18: IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

File 11 of 18: IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 12 of 18: ISwapMeet.sol
// SPDX-License-Identifier: GPL-3.0

/// @title Interface for SwapMeet

pragma solidity ^0.8.6;

import './ERC1155.sol';

interface IPaletteProvider {
    function palette(uint8) external view returns (bytes4[] memory);
}

interface ISwapMeetMetadata {
    function fullname(uint256 id) external view returns (string memory n);

    function tokenRle(uint256 id, uint8 gender) external view returns (bytes memory);

    function params(uint256 id)
        external
        view
        returns (
            string memory,
            string memory,
            string memory,
            string memory,
            string memory,
            bytes4
        );
}

interface ISwapMeet is ISwapMeetMetadata, IPaletteProvider, IERC1155 {
    function open(
        uint256 id,
        address to,
        bytes memory data
    ) external;

    function mint(
        address to,
        uint8[5] memory components,
        uint8 componentType,
        uint256 amount,
        bytes memory data
    ) external returns (uint256);

    function mintBatch(
        address to,
        uint8[] memory components,
        uint8[] memory componentTypes,
        uint256[] memory amounts,
        bytes memory data
    ) external returns (uint256[] memory);

    function setPalette(uint8 id, bytes4[] memory palette) external;

    function setRle(
        uint256 id,
        bytes memory male,
        bytes memory female
    ) external;

    function batchSetRle(uint256[] calldata ids, bytes[] calldata rles) external;
}

File 13 of 18: MetadataBuilder.sol
// SPDX-License-Identifier: GPL-3.0

/// @title A library used to convert multi-part RLE compressed images to SVG
/// From: https://raw.githubusercontent.com/nounsDAO/nouns-monorepo/master/packages/nouns-contracts/contracts/libs/MetadataBuilder.sol

pragma solidity ^0.8.6;

import './ISwapMeet.sol';
import './MetadataUtils.sol';

library DisplayTypes {
    uint8 constant NONE = 0x0;
    uint8 constant RANKING = 0x1;
    uint8 constant NUMBER = 0x2;
    uint8 constant BOOST_PERCENT = 0x3;
    uint8 constant BOOST_NUMBER = 0x4;
    uint8 constant DATE = 0x5;
}

library Transform {
    function translate(
        int256 direction,
        bytes memory b,
        bytes32 offset
    ) internal pure returns (bytes memory) {
        assembly {
            mstore(add(b, 32), add(mload(add(b, 32)), mul(direction, offset)))
        }
        return b;
    }
}

library MetadataBuilder {
    bytes16 internal constant HEX = '0123456789abcdef';

    struct Params {
        uint8 resolution;
        bytes4 color;
        bytes4 background;
        uint8[4] viewbox;
        string text;
        string subtext;
        string name;
        string description;
        string attributes;
        bytes[] parts;
    }

    struct ContentBounds {
        uint8 top;
        uint8 right;
        uint8 bottom;
        uint8 left;
    }

    struct Rect {
        uint8 length;
        uint8 colorIndex;
    }

    struct DecodedImage {
        uint8 paletteIndex;
        ContentBounds bounds;
        Rect[] rects;
    }

    /**
     * @notice Given RLE image parts and color palettes, merge to generate a single SVG image.
     */
    function generateSVG(Params memory params, IPaletteProvider paletteProvider)
        public
        view
        returns (string memory svg)
    {
        // prettier-ignore
        return string(
            abi.encodePacked(
                '<svg width="320" height="320" viewBox="', generateViewbox(params.viewbox), '" xmlns="http://www.w3.org/2000/svg" shape-rendering="crispEdges">',
                generateStyles(params),
                '<rect width="320px" height="320px" fill="#', toColor(params.background), '" />',
                generateText(params), generateSVGRects(params, paletteProvider),
                '</svg>'
            )
        );
    }

    function generateViewbox(uint8[4] memory viewbox) private pure returns (string memory) {
        if (viewbox[0] == 0 && viewbox[1] == 0 && viewbox[2] == 0 && viewbox[3] == 0) {
            return '0 0 320 320';
        }

        return
            string(
                abi.encodePacked(
                    toString(viewbox[0]),
                    ' ',
                    toString(viewbox[1]),
                    ' ',
                    toString(viewbox[2]),
                    ' ',
                    toString(viewbox[3])
                )
            );
    }

    function generateStyles(Params memory params) private pure returns (string memory) {
        return
            string(
                abi.encodePacked(
                    '<style>@font-face { font-family: "d"; src: url(data:application/octet-stream;base64,d09GMgABAAAAAA74AA4AAAAAIWgAAA6hAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgnIIHAmBaREICqsQnwULgSoAATYCJAOCUAQgBYo0ByAMOxu8GbMRFWwcQGJ4V0/2XyXEMQbHhjYjKkES183ibt/y5rebOf+mW+IzIBJJuv7nLUlJfGaEJLMQ1dq/vbvzED7w3UfCKCCFrCMTGUfggD14JJfy/PM4Z29nxsrEaYy0ExMaCm1p8z8wTpydqDPzVEjt/0mR80k50/ZM2gInykgm7STBrtZ2S/xDGiERo08nEWnhxQxx6X8A8cL2ab7bp2CbXQlK6kZh4Ac5ZE1PSKf2flFxOed0jHpVlYsxY5ZBKNDfT1X6FZ2SjqX0ejxDvACGgAJUVsCspy8rz8+KKp9yV2XsLWfJ3ZuXdrO5nI65WMtSFhaGy1GvgKEaxm0n6zOxrDYxsgGRG9y8Yfw67gDRu1QBB/Cc56AyG4tv1uDWWjnN0dHICTAUz9szwDA8xeaQyWlkid1yzyzwAOgBrQcWCjAVSu+RYSephCxMYviGSfEWUU4LHaywxqH/ApsSKgOhi22aevfJR++89carFMVC5WTYTKU31DAO5SricLrcHq8PfyAYYo0XfPZZDdD//BmZWZadnZObl19QWFRcUlpWXlFZVV1TW1ffQCM0Nbe0trV3dC5fsXJVmUMqd1ZUutyeKq9PRlD8Rma4xAwX9QBa/8yrf6MAwdYH70LpyAE8k4uvKnV26YD6vwFnMg7iwWysTz6AKrWsvltWtapNlq1LPbvYPq7HlFr9rSavX17N1zENVsPQjQ1ozdx83Y2tktdQoyeob1iaytxmZvEW1nl2kW3trBvT7lFfV7dg8l1EhSjLG5aQzdwqLd6qdthXcT5H6QjTavInV/tWt57oHfOx66q6Maxt9bU+9QMksLnsUt0LywlSFflP3DISruDq7ywuA9R/i16cFS6z/W2dF8B1nuIsP6auQWlpBkFZusErZLh0XmNS1AhnIx5tqVqM4hqRDEnxbtOl0OEKJ8WDTeL1+j0iyeJKs3ySKSleqRCmljM9CKWkzpMbEr83xy9Rn9PvTXbtSHpt/DXuqDeYHfC73SIZEpb8sNgSEzv0qVvMJ5FAsoTv4kh+LPAmHsvvbBRzaIrMNBm9DgIrSfkGFs1mn22apYJlfNcHW+n8jE24HKcx4poRqNiiyYEAbT/NEtA2xVZxmcNX2zWLQmOjbR1fTJeF2oX7pAJJPqNe+ZWT/+mGsiijty9vUyGnvQo8pvbtQhOW4cyCJDsx0AiBTv7yv6eg7fM4WGaPnsBA3PZQ7FA0Fl8gg6YOaiLUs9UHy9BE0uD3aslpPnWPDJmxWNekcVnMCdfTPyIj2ctMllFkRJhEpu8Vy9Om3JwPVrIK+QPX70k+Iz14usGCKabTdx26JcuuOA7IbhcSk7B5Aw2WPvSRv80O3TMHTSOGkz+q22iPsbmFIodoWcF/QrkvUpAcxnpnrsaKsG8ygbFJ0dMx9gPv54aMitlTCVaija0FLdZ0KYdhscfIVK5Dn0H2yoh1iXwhhJRCiIDJdozvwgRJj/JamwoEVyynzDaYAaMiQbGY8vjEhgi6+hKNpxcB+/G5Dx2k7CfvjpgqrQ4yflleGhJ4oYLTDS+waFBqvuPUWhBq5AYibLjADnYrwjZ9XqtY0mdabM1ev9eqBQZG2giKMhBjgL2vLylOtfHj0VFDTl7zlYbIznRXuascmsnV7oXi+I32zMxfq1n4Lm6sWzq+7APE9bczJjlbyAIrdrh30xRP8uzI6buiCyQ+jDB7Hi+X4IwIfguKSpw6xBJY8ZJxBRpKmhGwApEFotsPY71h8+VfLFaF/XPYPn7aj7a7WFGwATDJFSN9cRLzSpeB/3pRDgRc3D19nyTX5+xQdKMoIDlTC75Kh0laHAjC5HkHM/dM57Wp/Eye/3ih/fMZgDsY9TeBShRnaMPZA9x7jgB+RecE1RyhOgynrjWicAZMcMmQJUxmTr+yEbP+IQucbwERj/+tZ1TrcZ2n6zNklQuVH8ynqz8FN6EEkQIBo4BMRAxsYohejZ4SGy7Hd09Uyu2Kn53fOV65DT8nNFyFHrBvKrdtCk3M+ZP2yaUNAVsDoLf2jdr82QG+Btfwh1IBTrYvmvZt/MVd/JPNmVKEEX8oHRLw+HfEdrRql/3AJLpm3VCtTLkMdl85+PCqLwcPTq06XMR0MEz770xJ/cM1VmvNw/Ul1vqXaksCtx+/oZLs3LrhL6e19qV6q7X+5XHJL9dbq6ZtY3T25zd/Y2ow189yHbDCC3GxMfWfEBQz7zzJPz5pf74FgJrhCdyTbVkxKPybCtmkeIiEfMhXQ7xojeXFKZOQZ+I1b7wGJI96EKDH4jEsYx1jHKfgnhWnGDtMPkEMXCqtplSm7J9HZDBqsG/F5OXLFvooAVRZrVaDSSiBfi7TkeQCTLIjxzVyKT3JBLik/gV3NpKoBGEakHG17KOg+sOWvh39Fh/7ZV+WVdhcUcq+v8I3oRLl73dheFaZKp+Qf6HTmM+OfMYkmJSeYsJsrj/FILHIHvMc9YKqkQiWsUlM9x55Bm+OA+NEjEkfTVsbpxVD1+8Tp9rDHrf7KHKCKnuop196+MXn+ShXxdo0b1Gjd381z+lTTZAfk2j61o3yExItQwkYihkzna/ClfzjbV2iXzidbRav5JMXHAQOXfxOLhKb288IfvHIu09wqLTF3Auw90zCeY8RM8DwV9Eqo/zel55no/yP2eYJjcITbV22iO2LtjuEipNn9iEVINWEgKGO/hCS33yYUhq9L/rGDfR28sbDYUv/rgHLFJsbyDG7mFxRzgbQQCnJXtZrl10MY0aPGHG3O+YmZax26ZfJlTEzBtfpldzPXzaJdULTmb0A+3ubuWr2ibasGEPUpJj8MJDQhE+zQVG299pi5TFL7wOdQ+TSYO4zISSeSW8Ut3MbvuoRAetONqO3caBwbVqWjSAqUVBd1DCxqqvINHoibhJn5vN0uatNg1ufzoqq8EV7kFeYQGeOb2Rz/UlGHr/IekCiJqga0YlboIS4KNS7Ql4r45J6hju6Z/QkF6AniD/sTh9d8+iL1Ojt255vLxiyiVSdwKPaI/c8fI+ok+9GjZ80/jukA3nzLaTbvnz1NazboZ/7QqceSyyTb+RzHYkeRiPtocQNmq/TbT3QnRSQ1f9VEqRaUhst/emLkP3X5W9vTtki4v/pdUJArJj//1Y+NPEwNWncr7vFTw/fUVo+8Y1LDgJJeGvif3Z8E4AugEVCQvtfkPhMd4KT7a5pKx4scl5v3O4pWcyt+6pLdAhdWoLHYpHd9Wix54Zl824ph7yGqJ/4KQJD8yt/mZexLDyZgmVZIuO++4bR/ewFKN4aXEaG//TzLTpRKCCNuKiLmLbWiw4Ahy5uzTcxzTHtKg277DFVGxhV8bErKZVlJJcSwzyyl4JH+wDPVatxzyd4XqAawbkrSwyEjiJkgOvBuGdD+E0OytduZHzLkLxasfd+/QQTqOQ+zbXY6thP/3+biWNKDQqGRiOl3R3r2AJz+zu99nI9vpuqFAzkHWJ95ZtixHZCB1PFpI6m2WNMeiBpJtoOnSyy/NYAQ7zg0HSJyfXnmAJbA38GyesyiL947Pa+YpnNXpax/Hz6myZrH1fT0RTnF3o7m5gIkffE9gA5ia6/S/FvL5UUH6+lNRjhUwTUAn2B/r05PP5I+g72Vzbwdbco1U8Ytazrn1JF+C+TEHyW3u1jLYB1QiNCV3uQD5KT9CSYRCKYIAJRhSI6lDHHZsZVstm+Lxk8/hHB3UYh4oiyHGuL7N1HiU58YBKdgJqnBSLt5HIdCTZIClZv2O0Quo82MYHYe5CgX8ykNwjHuGBHVgiJR75azx0TNqS7xHOQSlVARC8XujsD7DHrE+9ptgjtsb6vSmiYaR/IWjH5JJIe99MIBSwRubdbu3LUUpDnXTF2ObsIdgN6eAFH/vlTcPCZ7v2cLOZEed7p75e6nfy/tp9dGvdKiGqEIoRUhIPFJa/8VrzLi7wAxfwgH4L5p2I4ChVXXrWD3PXDzyUSqA6S99bgELktk62XSJ4CchCDGuSFSclz3gXePX+MNPcOYlKT3DF3tHS6BaClkJgEDscNTHtRu6Uw2b4s47P0bR9radwVFrJagn2MfEu/BY/jOVzFVqOeDdg3rFre4fJ6zxqlGNGuD64pWnTyAp39HwDQ9u6kjwEA2l8YQQEGGsw2swoALoCzJPSdShpnoAAD3mItHnQ7sNOhm6QUoGdJroZLuPhsJ1jlDDDnDIrYZ5VDcEsS+RlRlqzg9bLwbuYMcjO9F2shXMduADU60/l1CGlwlg5m/0Enuloq4zOhl/NIfhZ1BoUrYI8xynJBAjkJc2h1p4GzlI5XjQFJ17dEx8EaumkYnFkI6ZrpTvFiQZT3QVCuMnV7R1F4zW5F4zJn0aSk6yiQXigOjPmITki/FA9+ybpygIAMYlDiAd0KTFHEzZqiCZpjaCCdQ4F0R3HgNC/RCemr4iFZHPEGSJVSjnphkAAbTmwARoeaAeINl9IBxeAyZoZDc+IGS6anBaDC7TCt2LiW9AtDgkQHdcOimkbZkuKmpArPJfJahC/aV2h2Ir0AB9OIy5fYEhJ6sQJtAakFFQKmvS6QAI35mRao2dlkKNXCNGapswTpa/JcVs5GtQVUrmqPg7vEADlQDzpuYJUxQZCyh5lTAsL0xwziHF9RWRIA9dCDcYpcAJlmGYCO1vUbSG4mBWg3CLIwwDYU4Gh4cAyxTii5jABdBgTGBiY3JyAQD5AGVytowQOYX6/cBsaxFq+tEjanDTydcHCrPN8lb5zDFYnzOf9wqid9d8jrexfhUvlM8ZOqp/sJyxMt+DUGtCnhIrCh+6X0/y9n7QHo+zYAGMwpeJ656prkVYn04+H0z1mCDwbCOQ1PhZW1P0tEO9rB+0pk69l0DAh/jXAHoQcydGwxemRmjVg1IFDEBygTcM7dy06sTR6eMDqh0Y6trqacKo7lw6imHOHCjWJK7KTTZOw1OUDI95cZB0wO9J9D1RTjegAIGkpKHqCJkYVDpRm8hC0GUxQeQu595I64SgAAAA==);}</style>',
                    '<style>.base { fill: #',
                    toColor(params.color),
                    '; font-family: d; font-size: 14px; }</style>'
                )
            );
    }

    function generateText(Params memory params) private pure returns (string memory) {
        return
            string(
                abi.encodePacked(
                    '<text x="160" y="25" with="320" text-anchor="middle" class="base">',
                    params.text,
                    '</text><text x="160" y="303" with="320" text-anchor="middle" class="base">',
                    params.subtext,
                    '</text>'
                )
            );
    }

    /// @dev Opensea contract metadata: https://docs.opensea.io/docs/contract-level-metadata
    function contractURI(string calldata name, string calldata description) external pure returns (string memory) {
        string memory json = string(abi.encodePacked('{ "name": "', name, '", ', '"description" : ', description, '}'));
        string memory encodedJson = Base64.encode(bytes(json));
        string memory output = string(abi.encodePacked('data:application/json;base64,', encodedJson));
        return output;
    }

    function tokenURI(Params memory params, IPaletteProvider paletteProvider) external view returns (string memory) {
        string memory output = Base64.encode(bytes(generateSVG(params, paletteProvider)));
        string memory json = Base64.encode(
            bytes(
                string(
                    abi.encodePacked(
                        '{ "name": "',
                        params.name,
                        '", ',
                        '"description" : "',
                        params.description,
                        '", ',
                        '"image": "data:image/svg+xml;base64,',
                        output,
                        '", '
                        '"attributes": ',
                        params.attributes,
                        '}'
                    )
                )
            )
        );
        output = string(abi.encodePacked('data:application/json;base64,', json));
        return output;
    }

    /**
     * @notice Given RLE image parts and color palettes, generate SVG rects.
     */
    // prettier-ignore
    function generateSVGRects(Params memory params, IPaletteProvider paletteProvider)
        private
        view
        returns (string memory svg)
    {
        string[] memory lookup = new string[](params.resolution + 1);
        uint16 step = 320 / params.resolution;
        string memory stepstr = toString(step);
        for (uint16 i = 0; i <= 320; i += step) {
            lookup[i/step] = toString(i);
        }

        string memory rects;
        for (uint8 p = 0; p < params.parts.length; p++) {
            if (params.parts[p].length == 0) {
                continue;
            }
        
            DecodedImage memory image = _decodeRLEImage(params.parts[p]);
            bytes4[] memory palette = paletteProvider.palette(image.paletteIndex);
            uint256 currentX = image.bounds.left;
            uint256 currentY = image.bounds.top;
            uint256 cursor;
            string[16] memory buffer;

            string memory part;
            for (uint256 i = 0; i < image.rects.length; i++) {
                Rect memory rect = image.rects[i];
                if (rect.colorIndex != 0) {
                    buffer[cursor] = lookup[rect.length];          // width
                    buffer[cursor + 1] = lookup[currentX];         // x
                    buffer[cursor + 2] = lookup[currentY];         // y
                    buffer[cursor + 3] = toColor(palette[rect.colorIndex]); // color

                    cursor += 4;

                    if (cursor >= 16) {
                        part = string(abi.encodePacked(part, _getChunk(cursor, buffer, stepstr)));
                        cursor = 0;
                    }
                }

                currentX += rect.length;
                if (currentX == image.bounds.right) {
                    currentX = image.bounds.left;
                    currentY++;
                }
            }

            if (cursor != 0) {
                part = string(abi.encodePacked(part, _getChunk(cursor, buffer, stepstr)));
            }
            rects = string(abi.encodePacked(rects, part));
        }
        return rects;
    }

    /**
     * @notice Return a string that consists of all rects in the provided `buffer`.
     */
    // prettier-ignore
    function _getChunk(uint256 cursor, string[16] memory buffer, string memory height) private pure returns (string memory) {
        string memory chunk;
        for (uint256 i = 0; i < cursor; i += 4) {
            chunk = string(
                abi.encodePacked(
                    chunk,
                    '<rect width="', buffer[i], '" height="', height, '" x="', buffer[i + 1], '" y="', buffer[i + 2], '" fill="#', buffer[i + 3], '" />'
                )
            );
        }
        return chunk;
    }

    /**
     * @notice Decode a single RLE compressed image into a `DecodedImage`.
     */
    function _decodeRLEImage(bytes memory image) private pure returns (DecodedImage memory) {
        uint8 paletteIndex = uint8(image[0]);
        ContentBounds memory bounds = ContentBounds({
            top: uint8(image[1]),
            right: uint8(image[2]),
            bottom: uint8(image[3]),
            left: uint8(image[4])
        });

        uint256 cursor;
        Rect[] memory rects = new Rect[]((image.length - 5) / 2);
        for (uint256 i = 5; i < image.length; i += 2) {
            rects[cursor] = Rect({ length: uint8(image[i]), colorIndex: uint8(image[i + 1]) });
            cursor++;
        }

        return DecodedImage({ paletteIndex: paletteIndex, bounds: bounds, rects: rects });
    }

    function attributes(bytes[] calldata traits) external pure returns (string memory) {
        string memory res = string(abi.encodePacked('['));

        for (uint256 i = 0; i < traits.length; i++) {
            if (traits[i].length == 0) {
                continue;
            }

            if (i > 0) {
                res = string(abi.encodePacked(res, ','));
            }

            res = string(abi.encodePacked(res, trait(traits[i])));
        }

        res = string(abi.encodePacked(res, ']'));
        return res;
    }

    // Helper for encoding as json w/ trait_type / value from opensea
    function trait(bytes calldata t) internal pure returns (string memory) {
        (uint8 d, string memory typ, bytes memory v) = abi.decode(t, (uint8, string, bytes));

        string memory value = '';
        if (d == DisplayTypes.NONE) {
            value = abi.decode(v, (string));
            value = string(abi.encodePacked('"', value, '"'));
        } else {
            uint256 num = abi.decode(v, (uint256));
            value = string(abi.encodePacked(toString(num)));
        }

        if (d == DisplayTypes.RANKING) {
            return string(abi.encodePacked('{', '"trait_type": "', typ, '", ', '"value": ', value, '}'));
        }

        string memory display = '';
        if (d == DisplayTypes.NUMBER) {
            display = string(abi.encodePacked('"display_type": "number", '));
        } else if (d == DisplayTypes.BOOST_NUMBER) {
            display = string(abi.encodePacked('"display_type": "boost_number", '));
        } else if (d == DisplayTypes.BOOST_PERCENT) {
            display = string(abi.encodePacked('"display_type": "boost_percentage", '));
        } else if (d == DisplayTypes.DATE) {
            display = string(abi.encodePacked('"display_type": "date", '));
        }

        return string(abi.encodePacked('{"trait_type": "', typ, '", ', display, '"value": ', value, '}'));
    }

    function toColor(bytes4 value) internal pure returns (string memory) {
        bytes memory buffer = new bytes(8);
        for (uint256 i = 0; i < value.length; i++) {
            buffer[i * 2 + 1] = HEX[uint8(value[i]) & 0xf];
            buffer[i * 2] = HEX[uint8(value[i] >> 4) & 0xf];
        }
        return string(buffer);
    }
}

File 14 of 18: MetadataUtils.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.0;

function toString(uint256 value) pure returns (string memory) {
    // Inspired by OraclizeAPI's implementation - MIT license
    // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

    if (value == 0) {
        return '0';
    }
    uint256 temp = value;
    uint256 digits;
    while (temp != 0) {
        digits++;
        temp /= 10;
    }
    bytes memory buffer = new bytes(digits);
    while (value != 0) {
        digits -= 1;
        buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
        value /= 10;
    }
    return string(buffer);
}

/// [MIT License]
/// @title Base64
/// @notice Provides a function for encoding some bytes in base64
/// @author Brecht Devos <[email protected]>
library Base64 {
    bytes internal constant TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';

    /// @notice Encodes some bytes to the base64 representation
    function encode(bytes memory data) internal pure returns (string memory) {
        uint256 len = data.length;
        if (len == 0) return '';

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((len + 2) / 3);

        // Add some extra buffer at the end
        bytes memory result = new bytes(encodedLen + 32);

        bytes memory table = TABLE;

        assembly {
            let tablePtr := add(table, 1)
            let resultPtr := add(result, 32)

            for {
                let i := 0
            } lt(i, len) {

            } {
                i := add(i, 3)
                let input := and(mload(add(data, i)), 0xffffff)

                let out := mload(add(tablePtr, and(shr(18, input), 0x3F)))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF))
                out := shl(224, out)

                mstore(resultPtr, out)

                resultPtr := add(resultPtr, 4)
            }

            switch mod(len, 3)
            case 1 {
                mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
            }
            case 2 {
                mstore(sub(resultPtr, 1), shl(248, 0x3d))
            }

            mstore(result, encodedLen)
        }

        return string(result);
    }
}

File 15 of 18: Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./Context.sol";

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

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

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 17 of 18: SwapMeetMetadata.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.0;

import './Components.sol';
import './TokenId.sol';

import './ISwapMeet.sol';
import './MetadataBuilder.sol';
import './ISwapMeet.sol';

library Gender {
    uint8 internal constant MALE = 0x0;
    uint8 internal constant FEMALE = 0x1;
}

/// @title Helper contract for generating ERC-1155 token ids and descriptions for
/// the individual items inside a Loot bag.
/// @author Tarrence van As, forked from Georgios Konstantopoulos
/// @dev Inherit from this contract and use it to generate metadata for your tokens
contract SwapMeetMetadata is ISwapMeetMetadata, IPaletteProvider {
    string private constant _name = 'Swap Meet';
    string private constant description = 'Get fitted.';
    bytes private constant female =
        hex'000a26361a050004440300040006440200040007440100020009440100020008440200020002440100054402000300014401000544020006000344030006000244040006000244040004000644020003000844010002000a4402000a44010002440100084401000144020006440100014401000144030005440100014401000144030004440200014401000144030004440200014401000144030004440200014401000144030004440200014401000144020006440100014402440100094402440100074401000144014402000844010004000244020002440200040002440200024402000400024402000244020004000244020002440200040002440200024402000400024402000244020004000244020002440200040002440200024402000400014403000144030004000144030001440300040001440300014403000400014403000144030004000144030001440300040001440300014403000400014403000144030004000144030001440300040001440300014403000400014403000144030004000244020003440100';
    bytes private constant male =
        hex'000927361907000344040006000544030006000544030006000544030006000544030007000444030007000344040007000244050004000744030002000b44010001000d4401000d4401000d440e440e44024401000b44024401000b44024401000b44024401000b44024401000b44024401000b44024401000b44024401000b44024401000b440c440100014402440100034403000444010003000344030003440200030003440300034402000300034403000344020003000344030003440200030003440300034402000300034403000344020003000344030003440200030003440300034402000300024404000244030003000244040002440300030002440400024403000300024404000244030003000244040002440300030002440400024403000300024404000244030003000244040002440300030002440400024403000300024404000344020003000344030004440100';
    bytes private constant shadow = hex'0036283818022b01000d2b0500092b0200';
    bytes private constant drugShadow = hex'00362f3729062b';

    // green, blue, red, yellow
    bytes4[4] private backgrounds = [bytes4(hex'b6ccc3ff'), hex'97adccff', hex'f2c4c5ff', hex'f1d8abff'];

    // Color Palettes (Index => Hex Colors)
    mapping(uint8 => bytes4[]) internal palettes;

    // Item RLE (TokenID => RLE)
    mapping(uint256 => bytes[2]) internal rles;

    Components internal immutable sc;

    constructor(address _components) {
        sc = Components(_components);
    }

    function name() external pure returns (string memory) {
        return _name;
    }

    function symbol() external pure returns (string memory) {
        return 'SWAP';
    }

    function palette(uint8 id) external view override returns (bytes4[] memory) {
        return palettes[id];
    }

    /// @dev Opensea contract metadata: https://docs.opensea.io/docs/contract-level-metadata
    function contractURI() external pure returns (string memory) {
        return MetadataBuilder.contractURI(_name, description);
    }

    /// @notice Returns an SVG for the provided token id
    function tokenURI(uint256 tokenId) public view returns (string memory) {
        (
            string memory name_,
            string memory description_,
            string memory attributes_,
            string memory prefix_,
            string memory subtext_,
            bytes4 background_
        ) = params(tokenId);

        MetadataBuilder.Params memory p;
        p.name = name_;
        p.description = description_;
        p.color = hex'202221ff';
        p.background = background_;
        p.text = prefix_;
        p.subtext = subtext_;
        p.attributes = attributes_;

        if (TokenId.decode(tokenId, 0) == ComponentTypes.VEHICLE) {
            p.parts = vehicleParts(tokenId);
            p.resolution = 160;
        } else {
            p.parts = itemParts(tokenId);
            p.resolution = 64;
        }

        return MetadataBuilder.tokenURI(p, this);
    }

    function fullname(uint256 id) public view override returns (string memory n) {
        (n, , , , , ) = params(id);
    }

    function params(uint256 id)
        public
        view
        override
        returns (
            string memory,
            string memory,
            string memory,
            string memory,
            string memory,
            bytes4
        )
    {
        (uint8[5] memory components, uint8 componentType) = TokenId.fromId(id);

        uint8 bg = 0;
        string memory name_ = sc.name(componentType, components[0]);

        if (components[1] > 0) {
            name_ = string(abi.encodePacked(name_, ' ', sc.suffix(components[1])));
            bg = 1;
        }

        string memory subtext = name_;
        string memory prefix;

        if (components[2] > 0) {
            prefix = sc.prefix(components[2], components[3]);
            name_ = string(abi.encodePacked('\\"', prefix, '\\" ', name_));

            // NOTE: abi encoding requires a double escape to render double quotes in json.
            // the svg renderer can't handle this (renders \"), so we use a modified font
            // which renders a double quote for back ticks.
            prefix = string(abi.encodePacked('`', prefix, '`'));
            bg = 2;
        }

        if (components[4] > 0) {
            subtext = string(abi.encodePacked(subtext, ' +1'));
            name_ = string(abi.encodePacked(name_, ' +1'));
            bg = 3;
        }

        return (name_, description, sc.attributes(components, componentType), prefix, subtext, backgrounds[bg]);
    }

    function tokenRle(uint256 id, uint8 gender) public view override returns (bytes memory) {
        if (rles[id][gender].length > 0) {
            return rles[id][gender];
        }

        return rles[toBaseId(id)][gender];
    }

    function toId(uint8[5] memory components, uint8 componentType) public pure returns (uint256) {
        return TokenId.toId(components, componentType);
    }

    function toBaseId(uint256 id) public pure returns (uint256) {
        (uint8[5] memory components, uint8 componentType) = TokenId.fromId(id);
        components[1] = 0;
        components[2] = 0;
        components[3] = 0;
        components[4] = 0;
        return TokenId.toId(components, componentType);
    }

    function itemParts(uint256 tokenId) internal view returns (bytes[] memory) {
        uint8 componentType = TokenId.decode(tokenId, 0);

        bytes[] memory parts = new bytes[](8);

        bytes[4] memory male_ = genderParts(male, tokenId, Gender.MALE, componentType);
        bytes[4] memory female_ = genderParts(female, tokenId, Gender.FEMALE, componentType);

        parts[0] = male_[0];
        parts[1] = male_[1];
        parts[2] = male_[2];
        parts[3] = male_[3];
        parts[4] = female_[0];
        parts[5] = female_[1];
        parts[6] = female_[2];
        parts[7] = female_[3];

        return parts;
    }

    function genderParts(
        bytes memory silhouette,
        uint256 id,
        uint8 gender,
        uint8 componentType
    ) internal view returns (bytes[4] memory) {
        bytes[4] memory parts;

        int256 direction = 1;
        if (gender == Gender.MALE) {
            direction = -1;
        }

        bytes32 offset = hex'00000C000C';

        parts[0] = Transform.translate(direction, shadow, offset);

        if (componentType == ComponentTypes.DRUGS) {
            parts[1] = Transform.translate(direction, drugShadow, offset);
        }

        parts[2] = Transform.translate(direction, silhouette, offset);

        bytes memory item = tokenRle(id, gender);
        if (item.length > 0) {
            parts[3] = Transform.translate(direction, item, offset);
        }

        return parts;
    }

    function vehicleParts(uint256 tokenId) internal view returns (bytes[] memory) {
        bytes[] memory parts = new bytes[](1);
        parts[0] = tokenRle(tokenId, 0);
        return parts;
    }
}

File 18 of 18: TokenId.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.0;

/// @title Encoding / decoding utilities for token ids
/// @author Georgios Konstantopoulos
/// @dev Token ids are generated from the components via a bijective encoding
/// using the token type and its attributes. We shift left by 16 bits, i.e. 2 bytes
/// each time so that the IDs do not overlap, assuming that components are smaller than 256
library TokenId {
    // 2 bytes
    uint256 constant SHIFT = 16;

    /// Encodes an array of Loot components and an item type (weapon, chest etc.)
    /// to a token id
    function toId(uint8[5] memory components, uint256 itemType) internal pure returns (uint256) {
        uint256 id = itemType;
        id += encode(components[0], 1);
        id += encode(components[1], 2);
        id += encode(components[2], 3);
        id += encode(components[3], 4);
        id += encode(components[4], 5);

        return id;
    }

    /// Decodes a token id to an array of Loot components and its item type (weapon, chest etc.)
    function fromId(uint256 id) internal pure returns (uint8[5] memory components, uint8 itemType) {
        itemType = decode(id, 0);
        components[0] = decode(id, 1);
        components[1] = decode(id, 2);
        components[2] = decode(id, 3);
        components[3] = decode(id, 4);
        components[4] = decode(id, 5);
    }

    /// Masks the component with 0xff and left shifts it by `idx * 2 bytes
    function encode(uint256 component, uint256 idx) internal pure returns (uint256) {
        return (component & 0xff) << (SHIFT * idx);
    }

    /// Right shifts the provided token id by `idx * 2 bytes` and then masks the
    /// returned value with 0xff.
    function decode(uint256 id, uint256 idx) internal pure returns (uint8) {
        return uint8((id >> (SHIFT * idx)) & 0xff);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_components","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"SetRle","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"bytes[]","name":"rles","type":"bytes[]"}],"name":"batchSetRle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"fullname","outputs":[{"internalType":"string","name":"n","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"itemIds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint8[5]","name":"components","type":"uint8[5]"},{"internalType":"uint8","name":"componentType","type":"uint8"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint8[]","name":"components","type":"uint8[]"},{"internalType":"uint8[]","name":"componentTypes","type":"uint8[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mintBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"open","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"id","type":"uint8"}],"name":"palette","outputs":[{"internalType":"bytes4[]","name":"","type":"bytes4[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"params","outputs":[{"internalType":"string","name":"","type":"string"},{"internalType":"string","name":"","type":"string"},{"internalType":"string","name":"","type":"string"},{"internalType":"string","name":"","type":"string"},{"internalType":"string","name":"","type":"string"},{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"id","type":"uint8"},{"internalType":"bytes4[]","name":"palette","type":"bytes4[]"}],"name":"setPalette","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes","name":"male","type":"bytes"},{"internalType":"bytes","name":"female","type":"bytes"}],"name":"setRle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"toBaseId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint8[5]","name":"components","type":"uint8[5]"},{"internalType":"uint8","name":"componentType","type":"uint8"}],"name":"toId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint8","name":"gender","type":"uint8"}],"name":"tokenRle","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

61012060405263b6ccc3ff60e01b60a09081526397adccff60e01b60c05263f2c4c5ff60e01b60e05263f1d8abff60e01b6101005262000044906002906004620000eb565b503480156200005257600080fd5b506040516200439e3803806200439e8339810160408190526200007591620001a2565b606081901b6001600160601b031916608052620000923362000099565b50620001d4565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600183019183908215620001795791602002820160005b838211156200014557835183826101000a81548163ffffffff021916908360e01c0217905550926020019260040160208160030104928301926001030262000102565b8015620001775782816101000a81549063ffffffff021916905560040160208160030104928301926001030262000145565b505b50620001879291506200018b565b5090565b5b808211156200018757600081556001016200018c565b600060208284031215620001b557600080fd5b81516001600160a01b0381168114620001cd57600080fd5b9392505050565b60805160601c61418f6200020f60003960008181610f690152818161101f015281816111080152818161126b01526118c2015261418f6000f3fe608060405234801561001057600080fd5b50600436106101c35760003560e01c806391f1fa43116100f9578063c87b56dd11610097578063e985e9c511610071578063e985e9c5146103fb578063f242432a14610437578063f2fde38b1461044a578063fbbe3f941461045d57600080fd5b8063c87b56dd146103cd578063deeb2696146103e0578063e8a3d485146103f357600080fd5b8063a22cb465116100d3578063a22cb46514610381578063a32b3cb814610394578063ada38f78146103a7578063b3dc00fe146103ba57600080fd5b806391f1fa431461032957806395d89b411461033c5780639d2f053c1461035c57600080fd5b80634e1273f411610166578063727b0e2b11610140578063727b0e2b146102d557806376f44143146102e857806381d390fc146102fb5780638da5cb5b1461030e57600080fd5b80634e1273f41461029a5780635337b14d146102ba578063715018a6146102cd57600080fd5b806309102203116101a2578063091022031461023f5780630e89341c1461025f5780632623e350146102725780632eb2c2d61461028757600080fd5b8062fdd58e146101c857806301ffc9a7146101ee57806306fdde0314610211575b600080fd5b6101db6101d6366004612fd9565b610470565b6040519081526020015b60405180910390f35b6102016101fc36600461322d565b61050a565b60405190151581526020016101e5565b60408051808201909152600981526814ddd85c081359595d60ba1b60208201525b6040516101e591906137dc565b61025261024d3660046133d4565b61055a565b6040516101e5919061370f565b61023261026d3660046132de565b6105ed565b6102856102803660046132f7565b6105f8565b005b610285610295366004612dc1565b610a58565b6102ad6102a8366004613003565b610aef565b6040516101e5919061375d565b6101db6102c8366004613200565b610c18565b610285610c2e565b6102326102e33660046132de565b610c64565b6102856102f636600461334d565b610c7b565b6101db610309366004612ece565b610d24565b6005546040516001600160a01b0390911681526020016101e5565b6102326103373660046133af565b610d78565b6040805180820190915260048152630535741560e41b6020820152610232565b61036f61036a3660046132de565b610f26565b6040516101e596959493929190613814565b61028561038f366004612f9d565b611342565b6102856103a2366004613195565b611419565b6102ad6103b5366004612f32565b611596565b6102ad6103c83660046132de565b611877565b6102326103db3660046132de565b6119af565b6102856103ee3660046133f1565b611af4565b610232611b46565b610201610409366004612d8e565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b610285610445366004612e6a565b611c1e565b610285610458366004612d73565b611ca5565b6101db61046b3660046132de565b611d40565b60006001600160a01b0383166104e15760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061053b57506001600160e01b031982166303a24d0760e21b145b8061050457506301ffc9a760e01b6001600160e01b0319831614610504565b60ff81166000908152600360209081526040918290208054835181840281018401909452808452606093928301828280156105e157602002820191906000526020600020906000905b82829054906101000a900460e01b6001600160e01b031916815260200190600401906020826003010492830192600103820291508084116105a35790505b50505050509050919050565b6060610504826119af565b6005546001600160a01b031633146106225760405162461bcd60e51b81526004016104d890613969565b60408051600980825261014082019092526000916020820161012080368337505060408051600980825261014082019092529293506000929150602082016101208036833701905050905060008061067987611877565b90508060008151811061068e5761068e613d7d565b60200260200101518383815181106106a8576106a8613d7d565b602002602001018181525050806001815181106106c7576106c7613d7d565b6020026020010151838360016106dd9190613bdf565b815181106106ed576106ed613d7d565b6020026020010181815250508060028151811061070c5761070c613d7d565b6020026020010151838360026107229190613bdf565b8151811061073257610732613d7d565b6020026020010181815250508060038151811061075157610751613d7d565b6020026020010151838360036107679190613bdf565b8151811061077757610777613d7d565b6020026020010181815250508060048151811061079657610796613d7d565b6020026020010151838360046107ac9190613bdf565b815181106107bc576107bc613d7d565b602002602001018181525050806005815181106107db576107db613d7d565b6020026020010151838360056107f19190613bdf565b8151811061080157610801613d7d565b6020026020010181815250508060068151811061082057610820613d7d565b6020026020010151838360066108369190613bdf565b8151811061084657610846613d7d565b6020026020010181815250508060078151811061086557610865613d7d565b60200260200101518383600761087b9190613bdf565b8151811061088b5761088b613d7d565b602002602001018181525050806008815181106108aa576108aa613d7d565b6020026020010151838360086108c09190613bdf565b815181106108d0576108d0613d7d565b60200260200101818152505060018483815181106108f0576108f0613d7d565b60209081029190910101526001846109088483613bdf565b8151811061091857610918613d7d565b6020908102919091010152600184610931846002613bdf565b8151811061094157610941613d7d565b602090810291909101015260018461095a846003613bdf565b8151811061096a5761096a613d7d565b6020908102919091010152600184610983846004613bdf565b8151811061099357610993613d7d565b60209081029190910101526001846109ac846005613bdf565b815181106109bc576109bc613d7d565b60209081029190910101526001846109d5846006613bdf565b815181106109e5576109e5613d7d565b60209081029190910101526001846109fe846007613bdf565b81518110610a0e57610a0e613d7d565b6020908102919091010152600184610a27846008613bdf565b81518110610a3757610a37613d7d565b602002602001018181525050610a4f86848688611d84565b50505050505050565b6001600160a01b038516331480610a745750610a748533610409565b610adb5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016104d8565b610ae88585858585611ecf565b5050505050565b60608151835114610b545760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016104d8565b600083516001600160401b03811115610b6f57610b6f613d93565b604051908082528060200260200182016040528015610b98578160200160208202803683370190505b50905060005b8451811015610c1057610be3858281518110610bbc57610bbc613d7d565b6020026020010151858381518110610bd657610bd6613d7d565b6020026020010151610470565b828281518110610bf557610bf5613d7d565b6020908102919091010152610c0981613d02565b9050610b9e565b509392505050565b6000610c27838360ff1661206b565b9392505050565b6005546001600160a01b03163314610c585760405162461bcd60e51b81526004016104d890613969565b610c62600061210e565b565b6060610c6f82610f26565b50939695505050505050565b6005546001600160a01b03163314610ca55760405162461bcd60e51b81526004016104d890613969565b60008381526004602090815260409091208351610cc492850190612963565b50600083815260046020526040902081906001019080519060200190610ceb929190612963565b506040518381527f945558bcba07fa0f70f986544b6da6f780ddb36e537da2e92fcf2a9c0dd04ab69060200160405180910390a1505050565b6005546000906001600160a01b03163314610d515760405162461bcd60e51b81526004016104d890613969565b6000610d60868660ff1661206b565b9050610d6e87828686612160565b9695505050505050565b60008281526004602052604081206060919060ff841660028110610d9e57610d9e613d7d565b018054610daa90613c56565b90501115610e6557600083815260046020526040902060ff831660028110610dd457610dd4613d7d565b018054610de090613c56565b80601f0160208091040260200160405190810160405280929190818152602001828054610e0c90613c56565b8015610e595780601f10610e2e57610100808354040283529160200191610e59565b820191906000526020600020905b815481529060010190602001808311610e3c57829003601f168201915b50505050509050610504565b60046000610e7285611d40565b81526020019081526020016000208260ff1660028110610e9457610e94613d7d565b018054610ea090613c56565b80601f0160208091040260200160405190810160405280929190818152602001828054610ecc90613c56565b8015610f195780601f10610eee57610100808354040283529160200191610f19565b820191906000526020600020905b815481529060010190602001808311610efc57829003601f168201915b5050505050905092915050565b60608060608060606000806000610f3c89612230565b81516040516330cd35ef60e01b815260ff80841660048301529091166024820152919350915060009081907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906330cd35ef9060440160006040518083038186803b158015610fb357600080fd5b505afa158015610fc7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610fef9190810190613267565b602085015190915060ff16156110cc57602084015160405163087bba3d60e21b815260ff909116600482015281907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906321eee8f49060240160006040518083038186803b15801561106957600080fd5b505afa15801561107d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110a59190810190613267565b6040516020016110b692919061358e565b6040516020818303038152906040529050600191505b6040840151819060609060ff16156111db5760408087015160608801519151632c4be9a960e21b815260ff9182166004820152911660248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063b12fa6a49060440160006040518083038186803b15801561115257600080fd5b505afa158015611166573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261118e9190810190613267565b905080836040516020016111a392919061361f565b6040516020818303038152906040529250806040516020016111c591906135f1565b6040516020818303038152906040529050600293505b608086015160ff161561123157816040516020016111f991906135ca565b60405160208183030381529060405291508260405160200161121b91906135ca565b6040516020818303038152906040529250600393505b604080518082018252600b81526a23b2ba103334ba3a32b21760a91b60208201529051631618bae960e01b81528491906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631618bae9906112a2908b908b9060040161379e565b60006040518083038186803b1580156112ba57600080fd5b505afa1580156112ce573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526112f69190810190613267565b838560028960ff166004811061130e5761130e613d7d565b600891828204019190066004029054906101000a900460e01b9b509b509b509b509b509b5050505050505091939550919395565b336001600160a01b03831614156113ad5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016104d8565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6005546001600160a01b031633146114435760405162461bcd60e51b81526004016104d890613969565b61144e600282613bf7565b83146114905760405162461bcd60e51b81526020600482015260116024820152700d2c8e640e4d8cae640dad2e6dac2e8c6d607b1b60448201526064016104d8565b60005b81811015610ae85761158485856114ab600285613bf7565b8181106114ba576114ba613d7d565b905060200201358484848181106114d3576114d3613d7d565b90506020028101906114e59190613b4f565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508892508791506115299050866001613bdf565b81811061153857611538613d7d565b905060200281019061154a9190613b4f565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610c7b92505050565b61158f600282613bdf565b9050611493565b6005546060906001600160a01b031633146115c35760405162461bcd60e51b81526004016104d890613969565b600585516115d19190613d3d565b1561160f5760405162461bcd60e51b815260206004820152600e60248201526d31b7b6b837b732b73a39903632b760911b60448201526064016104d8565b83516005865161161f9190613bf7565b1461165b5760405162461bcd60e51b815260206004820152600c60248201526b0d8cadc40dad2e6dac2e8c6d60a31b60448201526064016104d8565b600084516001600160401b0381111561167657611676613d93565b60405190808252806020026020018201604052801561169f578160200160208202803683370190505b50905060005b865181101561186a576116b66129e7565b8782815181106116c8576116c8613d7d565b6020026020010151816000600581106116e3576116e3613d7d565b60ff9092166020929092020152876116fc836001613bdf565b8151811061170c5761170c613d7d565b60200260200101518160016005811061172757611727613d7d565b60ff909216602092909202015287611740836002613bdf565b8151811061175057611750613d7d565b60200260200101518160026005811061176b5761176b613d7d565b60ff909216602092909202015287611784836003613bdf565b8151811061179457611794613d7d565b6020026020010151816003600581106117af576117af613d7d565b60ff9092166020929092020152876117c8836004613bdf565b815181106117d8576117d8613d7d565b6020026020010151816004600581106117f3576117f3613d7d565b60ff90921660209290920201526118308188611810600586613bf7565b8151811061182057611820613d7d565b602002602001015160ff1661206b565b8361183c600585613bf7565b8151811061184c5761184c613d7d565b602090810291909101015250611863600582613bdf565b90506116a5565b50610d6e87828686611d84565b604080516009808252610140820190925260609160009190602082016101208036833701905050604051635fd918e960e11b8152600481018590529091506000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063bfb231d2906024016105a06040518083038186803b15801561190557600080fd5b505afa158015611919573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061193d91906130d3565b905060005b60098160ff1610156119a657611974828260ff166009811061196657611966613d7d565b60200201518260ff1661206b565b838260ff168151811061198957611989613d7d565b60209081029190910101528061199e81613d1d565b915050611942565b50909392505050565b60606000806000806000806119c388610f26565b9550955095509550955095506119d7612a05565b60c0810187905260e0810186905263202221ff60e01b60208201526001600160e01b0319821660408201526080810184905260a0810183905261010081018590526002611a258a60006122aa565b60ff161415611a4657611a37896122c5565b61012082015260a08152611a5a565b611a4f89612326565b610120820152604081525b60405163154bbecd60e21b81527305473db56ad153170f61461c58d568791f6f3ff39063552efb3490611a939084903090600401613a27565b60006040518083038186803b158015611aab57600080fd5b505af4158015611abf573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611ae79190810190613267565b9998505050505050505050565b6005546001600160a01b03163314611b1e5760405162461bcd60e51b81526004016104d890613969565b60ff821660009081526003602090815260409091208251611b4192840190612a5f565b505050565b60607305473db56ad153170f61461c58d568791f6f3ff363b27945206040518060400160405280600981526020016814ddd85c081359595d60ba1b8152506040518060400160405280600b81526020016a23b2ba103334ba3a32b21760a91b8152506040518363ffffffff1660e01b8152600401611bc59291906137ef565b60006040518083038186803b158015611bdd57600080fd5b505af4158015611bf1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611c199190810190613267565b905090565b6001600160a01b038516331480611c3a5750611c3a8533610409565b611c985760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016104d8565b610ae885858585856124f7565b6005546001600160a01b03163314611ccf5760405162461bcd60e51b81526004016104d890613969565b6001600160a01b038116611d345760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104d8565b611d3d8161210e565b50565b6000806000611d4e84612230565b600060208301819052604083018190526060830181905260808301529092509050611d7c8260ff831661206b565b949350505050565b6001600160a01b038416611daa5760405162461bcd60e51b81526004016104d8906139e6565b8151835114611dcb5760405162461bcd60e51b81526004016104d89061399e565b3360005b8451811015611e6757838181518110611dea57611dea613d7d565b6020026020010151600080878481518110611e0757611e07613d7d565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000206000828254611e4f9190613bdf565b90915550819050611e5f81613d02565b915050611dcf565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611eb8929190613770565b60405180910390a4610ae88160008787878761260b565b8151835114611ef05760405162461bcd60e51b81526004016104d89061399e565b6001600160a01b038416611f165760405162461bcd60e51b81526004016104d8906138da565b3360005b8451811015611ffd576000858281518110611f3757611f37613d7d565b602002602001015190506000858381518110611f5557611f55613d7d565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611fa55760405162461bcd60e51b81526004016104d89061391f565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611fe2908490613bdf565b9250508190555050505080611ff690613d02565b9050611f1a565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161204d929190613770565b60405180910390a461206381878787878761260b565b505050505050565b815160009082906120809060ff166001612776565b61208a9082613bdf565b90506120a1846001602002015160ff166002612776565b6120ab9082613bdf565b90506120c2846002602002015160ff166003612776565b6120cc9082613bdf565b90506120e3846003602002015160ff166004612776565b6120ed9082613bdf565b9050612104846004602002015160ff166005612776565b611d7c9082613bdf565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0384166121865760405162461bcd60e51b81526004016104d8906139e6565b336121a08160008761219788612791565b610ae888612791565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906121d0908490613bdf565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610ae8816000878787876127cb565b6122386129e7565b60006122458360006122aa565b90506122528360016122aa565b60ff1682526122628360026122aa565b60ff1660208301526122758360036122aa565b60ff1660408301526122888360046122aa565b60ff16606083015261229b8360056122aa565b60ff1660808301529092909150565b60006122b7826010613c0b565b83901c60ff16905092915050565b60408051600180825281830190925260609160009190816020015b60608152602001906001900390816122e0579050509050612302836000610d78565b8160008151811061231557612315613d7d565b602090810291909101015292915050565b606060006123358360006122aa565b604080516008808252610120820190925291925060009190816020015b606081526020019060019003908161235257905050905060006123936040518061018001604052806101578152602001614003610157913986600086612895565b905060006123bf604051806101c0016040528061018f8152602001613e7461018f913987600187612895565b90508160006020020151836000815181106123dc576123dc613d7d565b602090810291909101015281600160200201518360018151811061240257612402613d7d565b602090810291909101015281600260200201518360028151811061242857612428613d7d565b602090810291909101015281600360200201518360038151811061244e5761244e613d7d565b6020908102919091010152805183518490600490811061247057612470613d7d565b602090810291909101015280600160200201518360058151811061249657612496613d7d565b60209081029190910101528060026020020151836006815181106124bc576124bc613d7d565b60209081029190910101528060036020020151836007815181106124e2576124e2613d7d565b60209081029190910101525090949350505050565b6001600160a01b03841661251d5760405162461bcd60e51b81526004016104d8906138da565b3361252d81878761219788612791565b6000848152602081815260408083206001600160a01b038a1684529091529020548381101561256e5760405162461bcd60e51b81526004016104d89061391f565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906125ab908490613bdf565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610a4f8288888888886127cb565b6001600160a01b0384163b156120635760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061264f908990899088908890889060040161366c565b602060405180830381600087803b15801561266957600080fd5b505af1925050508015612699575060408051601f3d908101601f191682019092526126969181019061324a565b60015b612746576126a5613da9565b806308c379a014156126df57506126ba613dc5565b806126c557506126e1565b8060405162461bcd60e51b81526004016104d891906137dc565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016104d8565b6001600160e01b0319811663bc197c8160e01b14610a4f5760405162461bcd60e51b81526004016104d890613892565b6000612783826010613c0b565b8360ff16901b905092915050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061231557612315613d7d565b6001600160a01b0384163b156120635760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061280f90899089908890889088906004016136ca565b602060405180830381600087803b15801561282957600080fd5b505af1925050508015612859575060408051601f3d908101601f191682019092526128569181019061324a565b60015b612865576126a5613da9565b6001600160e01b0319811663f23a6e6160e01b14610a4f5760405162461bcd60e51b81526004016104d890613892565b61289d612b06565b6128a5612b06565b600160ff85166128b457506000195b60408051808201909152601181526203000360da1b8281026e1b141c0c011580800695828004958160811b016020830152908352600660ff8616141561291b57604080518082019091526007815281830265362f3729062b60c81b01602082015260208401525b60208801805182840201905287604084015260006129398888610d78565b805190915015612956576020810180518385020190528060608501525b5091979650505050505050565b82805461296f90613c56565b90600052602060002090601f01602090048101928261299157600085556129d7565b82601f106129aa57805160ff19168380011785556129d7565b828001600101855582156129d7579182015b828111156129d75782518255916020019190600101906129bc565b506129e3929150612b2d565b5090565b6040518060a001604052806005906020820280368337509192915050565b60408051610140810182526000808252602082018190529181019190915260608101612a2f612b42565b81526020016060815260200160608152602001606081526020016060815260200160608152602001606081525090565b828054828255906000526020600020906007016008900481019282156129d75791602002820160005b83821115612ac957835183826101000a81548163ffffffff021916908360e01c02179055509260200192600401602081600301049283019260010302612a88565b8015612af95782816101000a81549063ffffffff0219169055600401602081600301049283019260010302612ac9565b50506129e3929150612b2d565b60405180608001604052806004905b6060815260200190600190039081612b155790505090565b5b808211156129e35760008155600101612b2e565b60405180608001604052806004906020820280368337509192915050565b80356001600160a01b0381168114612b7757600080fd5b919050565b60008083601f840112612b8e57600080fd5b5081356001600160401b03811115612ba557600080fd5b6020830191508360208260051b8501011115612bc057600080fd5b9250929050565b600082601f830112612bd857600080fd5b81356020612be582613b95565b604051612bf28282613cd6565b8381528281019150858301600585901b87018401881015612c1257600080fd5b60005b85811015612c3157813584529284019290840190600101612c15565b5090979650505050505050565b600082601f830112612c4f57600080fd5b604051612c5b81613c91565b80838560a086011115612c6d57600080fd5b60005b6005811015612c99578135612c8481613e64565b83526020928301929190910190600101612c70565b509195945050505050565b600082601f830112612cb557600080fd5b81356020612cc282613b95565b604051612ccf8282613cd6565b8381528281019150858301600585901b87018401881015612cef57600080fd5b60005b85811015612c31578135612d0581613e64565b84529284019290840190600101612cf2565b600082601f830112612d2857600080fd5b8135612d3381613bb8565b604051612d408282613cd6565b828152856020848701011115612d5557600080fd5b82602086016020830137600092810160200192909252509392505050565b600060208284031215612d8557600080fd5b610c2782612b60565b60008060408385031215612da157600080fd5b612daa83612b60565b9150612db860208401612b60565b90509250929050565b600080600080600060a08688031215612dd957600080fd5b612de286612b60565b9450612df060208701612b60565b935060408601356001600160401b0380821115612e0c57600080fd5b612e1889838a01612bc7565b94506060880135915080821115612e2e57600080fd5b612e3a89838a01612bc7565b93506080880135915080821115612e5057600080fd5b50612e5d88828901612d17565b9150509295509295909350565b600080600080600060a08688031215612e8257600080fd5b612e8b86612b60565b9450612e9960208701612b60565b9350604086013592506060860135915060808601356001600160401b03811115612ec257600080fd5b612e5d88828901612d17565b60008060008060006101208688031215612ee757600080fd5b612ef086612b60565b9450612eff8760208801612c3e565b935060c0860135612f0f81613e64565b925060e086013591506101008601356001600160401b03811115612ec257600080fd5b600080600080600060a08688031215612f4a57600080fd5b612f5386612b60565b945060208601356001600160401b0380821115612f6f57600080fd5b612f7b89838a01612ca4565b95506040880135915080821115612f9157600080fd5b612e1889838a01612ca4565b60008060408385031215612fb057600080fd5b612fb983612b60565b915060208301358015158114612fce57600080fd5b809150509250929050565b60008060408385031215612fec57600080fd5b612ff583612b60565b946020939093013593505050565b6000806040838503121561301657600080fd5b82356001600160401b038082111561302d57600080fd5b818501915085601f83011261304157600080fd5b8135602061304e82613b95565b60405161305b8282613cd6565b8381528281019150858301600585901b870184018b101561307b57600080fd5b600096505b848710156130a55761309181612b60565b835260019690960195918301918301613080565b50965050860135925050808211156130bc57600080fd5b506130c985828601612bc7565b9150509250929050565b60006105a08083850312156130e757600080fd5b601f84818501126130f757600080fd5b6040805161310481613cb6565b808688868901111561311557600080fd5b600095505b6009861015612c3157888582011261313157600080fd5b835161313c81613c91565b808260a084018c81111561314f57600080fd5b60005b600581101561317b57825161316681613e64565b84526020938401939290920191600101613152565b50928552505060019690960195602090920191905061311a565b600080600080604085870312156131ab57600080fd5b84356001600160401b03808211156131c257600080fd5b6131ce88838901612b7c565b909650945060208701359150808211156131e757600080fd5b506131f487828801612b7c565b95989497509550505050565b60008060c0838503121561321357600080fd5b61321d8484612c3e565b915060a0830135612fce81613e64565b60006020828403121561323f57600080fd5b8135610c2781613e4e565b60006020828403121561325c57600080fd5b8151610c2781613e4e565b60006020828403121561327957600080fd5b81516001600160401b0381111561328f57600080fd5b8201601f810184136132a057600080fd5b80516132ab81613bb8565b6040516132b88282613cd6565b8281528660208486010111156132cd57600080fd5b610d6e836020830160208701613c2a565b6000602082840312156132f057600080fd5b5035919050565b60008060006060848603121561330c57600080fd5b8335925061331c60208501612b60565b915060408401356001600160401b0381111561333757600080fd5b61334386828701612d17565b9150509250925092565b60008060006060848603121561336257600080fd5b8335925060208401356001600160401b038082111561338057600080fd5b61338c87838801612d17565b935060408601359150808211156133a257600080fd5b5061334386828701612d17565b600080604083850312156133c257600080fd5b823591506020830135612fce81613e64565b6000602082840312156133e657600080fd5b8135610c2781613e64565b6000806040838503121561340457600080fd5b823561340f81613e64565b91506020838101356001600160401b0381111561342b57600080fd5b8401601f8101861361343c57600080fd5b803561344781613b95565b6040516134548282613cd6565b8281528481019150838501600584901b850186018a101561347457600080fd5b600094505b838510156134a057803561348c81613e4e565b835260019490940193918501918501613479565b5080955050505050509250929050565b600082825180855260208086019550808260051b84010181860160005b84811015612c3157601f198684030189526134e9838351613562565b988401989250908301906001016134cd565b600081518084526020808501945080840160005b8381101561352b5781518752958201959082019060010161350f565b509495945050505050565b8060005b600481101561355c57815160ff1684526020938401939091019060010161353a565b50505050565b6000815180845261357a816020860160208601613c2a565b601f01601f19169290920160200192915050565b600083516135a0818460208801613c2a565b600160fd1b90830190815283516135be816001840160208801613c2a565b01600101949350505050565b600082516135dc818460208701613c2a565b62202b3160e81b920191825250600301919050565b6000600360fd1b808352835161360e816001860160208801613c2a565b600193019283015250600201919050565b612e1160f11b8152825160009061363d816002850160208801613c2a565b6202e11160ed1b6002918401918201528351613660816005840160208801613c2a565b01600501949350505050565b6001600160a01b0386811682528516602082015260a060408201819052600090613698908301866134fb565b82810360608401526136aa81866134fb565b905082810360808401526136be8185613562565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061370490830184613562565b979650505050505050565b6020808252825182820181905260009190848201906040850190845b818110156137515783516001600160e01b0319168352928401929184019160010161372b565b50909695505050505050565b602081526000610c2760208301846134fb565b60408152600061378360408301856134fb565b828103602084015261379581856134fb565b95945050505050565b60c08101818460005b60058110156137c957815160ff168352602092830192909101906001016137a7565b50505060ff831660a08301529392505050565b602081526000610c276020830184613562565b6040815260006138026040830185613562565b82810360208401526137958185613562565b60c08152600061382760c0830189613562565b82810360208401526138398189613562565b9050828103604084015261384d8188613562565b905082810360608401526138618187613562565b905082810360808401526138758186613562565b91505063ffffffff60e01b831660a0830152979650505050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60408152613a3b60408201845160ff169052565b60006020840151613a5860608401826001600160e01b0319169052565b5060408401516001600160e01b03191660808301526060840151613a7f60a0840182613536565b5060808401516101a06101208181860152613a9e6101e0860184613562565b925060a0870151603f198087860301610140880152613abd8583613562565b945060c089015191508087860301610160880152613adb8583613562565b945060e089015191508087860301610180880152613af98583613562565b94506101008901519150808786030184880152613b168583613562565b945082890151935080878603016101c0880152505050613b3682826134b0565b92505050610c2760208301846001600160a01b03169052565b6000808335601e19843603018112613b6657600080fd5b8301803591506001600160401b03821115613b8057600080fd5b602001915036819003821315612bc057600080fd5b60006001600160401b03821115613bae57613bae613d93565b5060051b60200190565b60006001600160401b03821115613bd157613bd1613d93565b50601f01601f191660200190565b60008219821115613bf257613bf2613d51565b500190565b600082613c0657613c06613d67565b500490565b6000816000190483118215151615613c2557613c25613d51565b500290565b60005b83811015613c45578181015183820152602001613c2d565b8381111561355c5750506000910152565b600181811c90821680613c6a57607f821691505b60208210811415613c8b57634e487b7160e01b600052602260045260246000fd5b50919050565b60a081018181106001600160401b0382111715613cb057613cb0613d93565b60405250565b61012081018181106001600160401b0382111715613cb057613cb0613d93565b601f8201601f191681016001600160401b0381118282101715613cfb57613cfb613d93565b6040525050565b6000600019821415613d1657613d16613d51565b5060010190565b600060ff821660ff811415613d3457613d34613d51565b60010192915050565b600082613d4c57613d4c613d67565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115613dc25760046000803e5060005160e01c5b90565b600060443d1015613dd35790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715613e0257505050505090565b8285019150815181811115613e1a5750505050505090565b843d8701016020828501011115613e345750505050505090565b613e4360208286010187613cd6565b509095945050505050565b6001600160e01b031981168114611d3d57600080fd5b60ff81168114611d3d57600080fdfe000a26361a050004440300040006440200040007440100020009440100020008440200020002440100054402000300014401000544020006000344030006000244040006000244040004000644020003000844010002000a4402000a44010002440100084401000144020006440100014401000144030005440100014401000144030004440200014401000144030004440200014401000144030004440200014401000144030004440200014401000144020006440100014402440100094402440100074401000144014402000844010004000244020002440200040002440200024402000400024402000244020004000244020002440200040002440200024402000400024402000244020004000244020002440200040002440200024402000400014403000144030004000144030001440300040001440300014403000400014403000144030004000144030001440300040001440300014403000400014403000144030004000144030001440300040001440300014403000400014403000144030004000244020003440100000927361907000344040006000544030006000544030006000544030006000544030007000444030007000344040007000244050004000744030002000b44010001000d4401000d4401000d440e440e44024401000b44024401000b44024401000b44024401000b44024401000b44024401000b44024401000b44024401000b44024401000b440c440100014402440100034403000444010003000344030003440200030003440300034402000300034403000344020003000344030003440200030003440300034402000300034403000344020003000344030003440200030003440300034402000300024404000244030003000244040002440300030002440400024403000300024404000244030003000244040002440300030002440400024403000300024404000244030003000244040002440300030002440400024403000300024404000344020003000344030004440100a26469706673582212201cb4527a0fc6f60a0f0b4132f10ffe03841f4eea8233b82c81fd497efc52bb3d64736f6c63430008060033000000000000000000000000e03c4eb2a0a797766a5db708172e04f6a970dc7f

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000e03c4eb2a0a797766a5db708172e04f6a970dc7f

-----Decoded View---------------
Arg [0] : _components (address): 0xe03c4eb2a0a797766a5db708172e04f6a970dc7f

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000e03c4eb2a0a797766a5db708172e04f6a970dc7f


Library Used

MetadataBuilder : 0x05473db56ad153170f61461c58d568791f6f3ff3

Deployed ByteCode Sourcemap

484:3543:15:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1802:228:3;;;;;;:::i;:::-;;:::i;:::-;;;34012:25:18;;;34000:2;33985:18;1802:228:3;;;;;;;;855:305;;;;;;:::i;:::-;;:::i;:::-;;;23794:14:18;;23787:22;23769:41;;23757:2;23742:18;855:305:3;23724:92:18;2916:83:16;2987:5;;;;;;;;;;;;-1:-1:-1;;;2987:5:16;;;;2916:83;;;;;;;:::i;3097:112::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;1958:116:15:-;;;;;;:::i;:::-;;:::i;760:885::-;;;;;;:::i;:::-;;:::i;:::-;;3830:430:3;;;;;;:::i;:::-;;:::i;2187:508::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;6237:156:16:-;;;;;;:::i;:::-;;:::i;1598:92:14:-;;;:::i;4402:120:16:-;;;;;;:::i;:::-;;:::i;3491:236:15:-;;;;;;:::i;:::-;;:::i;2080:327::-;;;;;;:::i;:::-;;:::i;966:85:14:-;1038:6;;966:85;;-1:-1:-1;;;;;1038:6:14;;;20187:51:18;;20175:2;20160:18;966:85:14;20142:102:18;6002:229:16;;;;;;:::i;:::-;;:::i;3005:86::-;3071:13;;;;;;;;;;;;-1:-1:-1;;;3071:13:16;;;;3005:86;;4528:1468;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;;:::i;2763:306:3:-;;;;;;:::i;:::-;;:::i;3733:292:15:-;;;;;;:::i;:::-;;:::i;2413:944::-;;;;;;:::i;:::-;;:::i;1651:301::-;;;;;;:::i;:::-;;:::i;3503:893:16:-;;;;;;:::i;:::-;;:::i;3363:122:15:-;;;;;;:::i;:::-;;:::i;3308:132:16:-;;;:::i;3136:166:3:-;;;;;;:::i;:::-;-1:-1:-1;;;;;3258:27:3;;;3235:4;3258:27;;;:18;:27;;;;;;;;:37;;;;;;;;;;;;;;;3136:166;3369:389;;;;;;:::i;:::-;;:::i;1839:189:14:-;;;;;;:::i;:::-;;:::i;6399:311:16:-;;;;;;:::i;:::-;;:::i;1802:228:3:-;1888:7;-1:-1:-1;;;;;1915:21:3;;1907:77;;;;-1:-1:-1;;;1907:77:3;;27006:2:18;1907:77:3;;;26988:21:18;27045:2;27025:18;;;27018:30;27084:34;27064:18;;;27057:62;-1:-1:-1;;;27135:18:18;;;27128:41;27186:19;;1907:77:3;;;;;;;;;-1:-1:-1;2001:9:3;:13;;;;;;;;;;;-1:-1:-1;;;;;2001:22:3;;;;;;;;;;1802:228;;;;;:::o;855:305::-;957:4;-1:-1:-1;;;;;;992:41:3;;-1:-1:-1;;;992:41:3;;:109;;-1:-1:-1;;;;;;;1049:52:3;;-1:-1:-1;;;1049:52:3;992:109;:161;;;-1:-1:-1;;;;;;;;;;871:40:4;;;1117:36:3;763:155:4;3097:112:16;3190:12;;;;;;;:8;:12;;;;;;;;;3183:19;;;;;;;;;;;;;;;;;3156:15;;3183:19;;;3190:12;3183:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3183:19:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3097:112;;;:::o;1958:116:15:-;2018:13;2050:17;2059:7;2050:8;:17::i;760:885::-;1038:6:14;;-1:-1:-1;;;;;1038:6:14;666:10:2;1178:23:14;1170:68;;;;-1:-1:-1;;;1170:68:14;;;;;;;:::i;:::-;912:16:15::1;::::0;;926:1:::1;912:16:::0;;;;;::::1;::::0;;;885:24:::1;::::0;912:16:::1;::::0;::::1;::::0;;::::1;::::0;::::1;-1:-1:-1::0;;963:16:15::1;::::0;;977:1:::1;963:16:::0;;;;;::::1;::::0;;;885:43;;-1:-1:-1;938:22:15::1;::::0;963:16;-1:-1:-1;963:16:15::1;::::0;::::1;::::0;;::::1;::::0;::::1;;::::0;-1:-1:-1;963:16:15::1;938:41;;990:9;1013:22:::0;1038:11:::1;1046:2;1038:7;:11::i;:::-;1013:36;;1070:5;1076:1;1070:8;;;;;;;;:::i;:::-;;;;;;;1059:5;1065:1;1059:8;;;;;;;;:::i;:::-;;;;;;:19;;;::::0;::::1;1103:5;1109:1;1103:8;;;;;;;;:::i;:::-;;;;;;;1088:5;1094:1;1098;1094:5;;;;:::i;:::-;1088:12;;;;;;;;:::i;:::-;;;;;;:23;;;::::0;::::1;1136:5;1142:1;1136:8;;;;;;;;:::i;:::-;;;;;;;1121:5;1127:1;1131;1127:5;;;;:::i;:::-;1121:12;;;;;;;;:::i;:::-;;;;;;:23;;;::::0;::::1;1169:5;1175:1;1169:8;;;;;;;;:::i;:::-;;;;;;;1154:5;1160:1;1164;1160:5;;;;:::i;:::-;1154:12;;;;;;;;:::i;:::-;;;;;;:23;;;::::0;::::1;1202:5;1208:1;1202:8;;;;;;;;:::i;:::-;;;;;;;1187:5;1193:1;1197;1193:5;;;;:::i;:::-;1187:12;;;;;;;;:::i;:::-;;;;;;:23;;;::::0;::::1;1235:5;1241:1;1235:8;;;;;;;;:::i;:::-;;;;;;;1220:5;1226:1;1230;1226:5;;;;:::i;:::-;1220:12;;;;;;;;:::i;:::-;;;;;;:23;;;::::0;::::1;1268:5;1274:1;1268:8;;;;;;;;:::i;:::-;;;;;;;1253:5;1259:1;1263;1259:5;;;;:::i;:::-;1253:12;;;;;;;;:::i;:::-;;;;;;:23;;;::::0;::::1;1301:5;1307:1;1301:8;;;;;;;;:::i;:::-;;;;;;;1286:5;1292:1;1296;1292:5;;;;:::i;:::-;1286:12;;;;;;;;:::i;:::-;;;;;;:23;;;::::0;::::1;1334:5;1340:1;1334:8;;;;;;;;:::i;:::-;;;;;;;1319:5;1325:1;1329;1325:5;;;;:::i;:::-;1319:12;;;;;;;;:::i;:::-;;;;;;:23;;;::::0;::::1;1366:1;1353:7;1361:1;1353:10;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;:14;1394:1:::1;1377:7:::0;1385:5:::1;:1:::0;1394;1385:5:::1;:::i;:::-;1377:14;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;:18;1422:1:::1;1405:7:::0;1413:5:::1;:1:::0;1417::::1;1413:5;:::i;:::-;1405:14;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;:18;1450:1:::1;1433:7:::0;1441:5:::1;:1:::0;1445::::1;1441:5;:::i;:::-;1433:14;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;:18;1478:1:::1;1461:7:::0;1469:5:::1;:1:::0;1473::::1;1469:5;:::i;:::-;1461:14;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;:18;1506:1:::1;1489:7:::0;1497:5:::1;:1:::0;1501::::1;1497:5;:::i;:::-;1489:14;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;:18;1534:1:::1;1517:7:::0;1525:5:::1;:1:::0;1529::::1;1525:5;:::i;:::-;1517:14;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;:18;1562:1:::1;1545:7:::0;1553:5:::1;:1:::0;1557::::1;1553:5;:::i;:::-;1545:14;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;:18;1590:1:::1;1573:7:::0;1581:5:::1;:1:::0;1585::::1;1581:5;:::i;:::-;1573:14;;;;;;;;:::i;:::-;;;;;;:18;;;::::0;::::1;1602:36;1613:2;1617:5;1624:7;1633:4;1602:10;:36::i;:::-;875:770;;;;760:885:::0;;;:::o;3830:430:3:-;-1:-1:-1;;;;;4055:20:3;;666:10:2;4055:20:3;;:60;;-1:-1:-1;4079:36:3;4096:4;666:10:2;3136:166:3;:::i;4079:36::-;4034:157;;;;-1:-1:-1;;;4034:157:3;;29330:2:18;4034:157:3;;;29312:21:18;29369:2;29349:18;;;29342:30;29408:34;29388:18;;;29381:62;-1:-1:-1;;;29459:18:18;;;29452:48;29517:19;;4034:157:3;29302:240:18;4034:157:3;4201:52;4224:4;4230:2;4234:3;4239:7;4248:4;4201:22;:52::i;:::-;3830:430;;;;;:::o;2187:508::-;2338:16;2397:3;:10;2378:8;:15;:29;2370:83;;;;-1:-1:-1;;;2370:83:3;;30931:2:18;2370:83:3;;;30913:21:18;30970:2;30950:18;;;30943:30;31009:34;30989:18;;;30982:62;-1:-1:-1;;;31060:18:18;;;31053:39;31109:19;;2370:83:3;30903:231:18;2370:83:3;2464:30;2511:8;:15;-1:-1:-1;;;;;2497:30:3;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2497:30:3;;2464:63;;2543:9;2538:120;2562:8;:15;2558:1;:19;2538:120;;;2617:30;2627:8;2636:1;2627:11;;;;;;;;:::i;:::-;;;;;;;2640:3;2644:1;2640:6;;;;;;;;:::i;:::-;;;;;;;2617:9;:30::i;:::-;2598:13;2612:1;2598:16;;;;;;;;:::i;:::-;;;;;;;;;;:49;2579:3;;;:::i;:::-;;;2538:120;;;-1:-1:-1;2675:13:3;2187:508;-1:-1:-1;;;2187:508:3:o;6237:156:16:-;6321:7;6347:39;6360:10;6372:13;6347:39;;:12;:39::i;:::-;6340:46;6237:156;-1:-1:-1;;;6237:156:16:o;1598:92:14:-;1038:6;;-1:-1:-1;;;;;1038:6:14;666:10:2;1178:23:14;1170:68;;;;-1:-1:-1;;;1170:68:14;;;;;;;:::i;:::-;1662:21:::1;1680:1;1662:9;:21::i;:::-;1598:92::o:0;4402:120:16:-;4462:15;4505:10;4512:2;4505:6;:10::i;:::-;-1:-1:-1;4489:26:16;;4402:120;-1:-1:-1;;;;;;4402:120:16:o;3491:236:15:-;1038:6:14;;-1:-1:-1;;;;;1038:6:14;666:10:2;1178:23:14;1170:68;;;;-1:-1:-1;;;1170:68:14;;;;;;;:::i;:::-;3625:8:15::1;::::0;;;:4:::1;:8;::::0;;;;;;;:28;;::::1;::::0;;::::1;::::0;::::1;:::i;:::-;-1:-1:-1::0;3663:8:15::1;::::0;;;:4:::1;:8;::::0;;;;3689:6;;293:3:16::1;3663:23:15;:32;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;3710:10:15::1;::::0;34012:25:18;;;3710:10:15::1;::::0;34000:2:18;33985:18;3710:10:15::1;;;;;;;3491:236:::0;;;:::o;2080:327::-;1038:6:14;;2273:7:15;;-1:-1:-1;;;;;1038:6:14;666:10:2;1178:23:14;1170:68;;;;-1:-1:-1;;;1170:68:14;;;;;;;:::i;:::-;2292:10:15::1;2305:39;2318:10;2330:13;2305:39;;:12;:39::i;:::-;2292:52;;2354:27;2360:2;2364;2368:6;2376:4;2354:5;:27::i;:::-;2398:2:::0;2080:327;-1:-1:-1;;;;;;2080:327:15:o;6002:229:16:-;6130:1;6104:8;;;:4;:8;;;;;6076:12;;6130:1;6104:16;;;;;;;;;;:::i;:::-;;:23;;;;;:::i;:::-;;;:27;6100:81;;;6154:8;;;;:4;:8;;;;;:16;;;;;;;;;;:::i;:::-;;6147:23;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6100:81;6198:4;:18;6203:12;6212:2;6203:8;:12::i;:::-;6198:18;;;;;;;;;;;6217:6;6198:26;;;;;;;;;:::i;:::-;;6191:33;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6002:229;;;;:::o;4528:1468::-;4631:13;4658;4685;4712;4739;4766:6;4798:26;4826:19;4849:18;4864:2;4849:14;:18::i;:::-;4945:13;;4922:37;;-1:-1:-1;;;4922:37:16;;34688:4:18;34676:17;;;4922:37:16;;;34658:36:18;34730:17;;;34710:18;;;34703:45;4797:70:16;;-1:-1:-1;4797:70:16;-1:-1:-1;4878:8:16;;;;4922:2;-1:-1:-1;;;;;4922:7:16;;;;34631:18:18;;4922:37:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;4922:37:16;;;;;;;;;;;;:::i;:::-;4974:13;;;;4900:59;;-1:-1:-1;4974:17:16;;;4970:138;;5061:13;;;;5051:24;;-1:-1:-1;;;5051:24:16;;34473:4:18;34461:17;;;5051:24:16;;;34443:36:18;5039:5:16;;5051:2;-1:-1:-1;;;;;5051:9:16;;;;34416:18:18;;5051:24:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5051:24:16;;;;;;;;;;;;:::i;:::-;5022:54;;;;;;;;;:::i;:::-;;;;;;;;;;;;;5007:70;;5096:1;5091:6;;4970:138;5192:13;;;;5142:5;;5157:20;;5192:17;;;5188:500;;5244:13;;;;;5259;;;;5234:39;;-1:-1:-1;;;5234:39:16;;34688:4:18;34676:17;;;5234:39:16;;;34658:36:18;34730:17;;34710:18;;;34703:45;5234:2:16;-1:-1:-1;;;;;5234:9:16;;;;34631:18:18;;5234:39:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5234:39:16;;;;;;;;;;;;:::i;:::-;5225:48;;5326:6;5342:5;5302:46;;;;;;;;;:::i;:::-;;;;;;;;;;;;;5287:62;;5644:6;5622:34;;;;;;;;:::i;:::-;;;;;;;;;;;;;5606:51;;5676:1;5671:6;;5188:500;5702:13;;;;:17;;;5698:178;;5769:7;5752:32;;;;;;;;:::i;:::-;;;;;;;;;;;;;5735:50;;5831:5;5814:30;;;;;;;;:::i;:::-;;;;;;;;;;;;;5799:46;;5864:1;5859:6;;5698:178;5901:11;;;;;;;;;;;-1:-1:-1;;;5901:11:16;;;;5914:40;;-1:-1:-1;;;5914:40:16;;5894:5;;5901:11;-1:-1:-1;;;;;5914:2:16;:13;;;;:40;;5928:10;;5940:13;;5914:40;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5914:40:16;;;;;;;;;;;;:::i;:::-;5956:6;5964:7;5973:11;5985:2;5973:15;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;5886:103;;;;;;;;;;;;;;;;;;4528:1468;;;;;;;:::o;2763:306:3:-;666:10:2;-1:-1:-1;;;;;2865:24:3;;;;2857:78;;;;-1:-1:-1;;;2857:78:3;;30521:2:18;2857:78:3;;;30503:21:18;30560:2;30540:18;;;30533:30;30599:34;30579:18;;;30572:62;-1:-1:-1;;;30650:18:18;;;30643:39;30699:19;;2857:78:3;30493:231:18;2857:78:3;666:10:2;2946:32:3;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;2946:42:3;;;;;;;;;;;;:53;;-1:-1:-1;;2946:53:3;;;;;;;;;;3014:48;;23769:41:18;;;2946:42:3;;666:10:2;3014:48:3;;23742:18:18;3014:48:3;;;;;;;2763:306;;:::o;3733:292:15:-;1038:6:14;;-1:-1:-1;;;;;1038:6:14;666:10:2;1178:23:14;1170:68;;;;-1:-1:-1;;;1170:68:14;;;;;;;:::i;:::-;3861:15:15::1;3875:1;3861:4:::0;:15:::1;:::i;:::-;3847:29:::0;::::1;3839:59;;;::::0;-1:-1:-1;;;3839:59:15;;27825:2:18;3839:59:15::1;::::0;::::1;27807:21:18::0;27864:2;27844:18;;;27837:30;-1:-1:-1;;;27883:18:18;;;27876:47;27940:18;;3839:59:15::1;27797:167:18::0;3839:59:15::1;3914:9;3909:110;3929:15:::0;;::::1;3909:110;;;3968:40;3975:3:::0;;3979:5:::1;3983:1;3979::::0;:5:::1;:::i;:::-;3975:10;;;;;;;:::i;:::-;;;;;;;3987:4;;3992:1;3987:7;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;3968:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;3996:4:15;;-1:-1:-1;3996:4:15;;-1:-1:-1;4001:5:15::1;::::0;-1:-1:-1;4001:1:15;4005::::1;4001:5;:::i;:::-;3996:11;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;3968:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;3968:6:15::1;::::0;-1:-1:-1;;;3968:40:15:i:1;:::-;3946:6;3951:1;3946:6:::0;::::1;:::i;:::-;;;3909:110;;2413:944:::0;1038:6:14;;2630:16:15;;-1:-1:-1;;;;;1038:6:14;666:10:2;1178:23:14;1170:68;;;;-1:-1:-1;;;1170:68:14;;;;;;;:::i;:::-;2686:1:15::1;2666:10;:17;:21;;;;:::i;:::-;:26:::0;2658:53:::1;;;::::0;-1:-1:-1;;;2658:53:15;;28581:2:18;2658:53:15::1;::::0;::::1;28563:21:18::0;28620:2;28600:18;;;28593:30;-1:-1:-1;;;28639:18:18;;;28632:44;28693:18;;2658:53:15::1;28553:164:18::0;2658:53:15::1;2754:14;:21;2749:1;2729:10;:17;:21;;;;:::i;:::-;:46;2721:71;;;::::0;-1:-1:-1;;;2721:71:15;;26665:2:18;2721:71:15::1;::::0;::::1;26647:21:18::0;26704:2;26684:18;;;26677:30;-1:-1:-1;;;26723:18:18;;;26716:42;26775:18;;2721:71:15::1;26637:162:18::0;2721:71:15::1;2802:20;2839:14;:21;-1:-1:-1::0;;;;;2825:36:15::1;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;-1:-1:-1;2825:36:15::1;;2802:59;;2877:9;2872:414;2896:10;:17;2892:1;:21;2872:414;;;2937:27;;:::i;:::-;2995:10;3006:1;2995:13;;;;;;;;:::i;:::-;;;;;;;2978:11;2990:1;2978:14;;;;;;;:::i;:::-;:30;::::0;;::::1;:14;::::0;;;::::1;;:30:::0;3039:10;3050:5:::1;:1:::0;3054::::1;3050:5;:::i;:::-;3039:17;;;;;;;;:::i;:::-;;;;;;;3022:11;3034:1;3022:14;;;;;;;:::i;:::-;:34;::::0;;::::1;:14;::::0;;;::::1;;:34:::0;3087:10;3098:5:::1;:1:::0;3102::::1;3098:5;:::i;:::-;3087:17;;;;;;;;:::i;:::-;;;;;;;3070:11;3082:1;3070:14;;;;;;;:::i;:::-;:34;::::0;;::::1;:14;::::0;;;::::1;;:34:::0;3135:10;3146:5:::1;:1:::0;3150::::1;3146:5;:::i;:::-;3135:17;;;;;;;;:::i;:::-;;;;;;;3118:11;3130:1;3118:14;;;;;;;:::i;:::-;:34;::::0;;::::1;:14;::::0;;;::::1;;:34:::0;3183:10;3194:5:::1;:1:::0;3198::::1;3194:5;:::i;:::-;3183:17;;;;;;;;:::i;:::-;;;;;;;3166:11;3178:1;3166:14;;;;;;;:::i;:::-;:34;::::0;;::::1;:14;::::0;;;::::1;;:34:::0;3227:48:::1;3240:11:::0;3253:14;3268:5:::1;3272:1;3268::::0;:5:::1;:::i;:::-;3253:21;;;;;;;;:::i;:::-;;;;;;;3227:48;;:12;:48::i;:::-;3214:3:::0;3218:5:::1;3222:1;3218::::0;:5:::1;:::i;:::-;3214:10;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;:61;-1:-1:-1;2915:6:15::1;2920:1;2915:6:::0;::::1;:::i;:::-;;;2872:414;;;;3296:34;3307:2;3311:3;3316:7;3325:4;3296:10;:34::i;1651:301::-:0;1757:16;;;1771:1;1757:16;;;;;;;;;1706;;1734:20;;1757:16;;;;;;;;;;;-1:-1:-1;;1810:17:15;;-1:-1:-1;;;1810:17:15;;;;;34012:25:18;;;1734:39:15;;-1:-1:-1;1783:24:15;;-1:-1:-1;;;;;1810:2:15;:8;;;;33985:18:18;;1810:17:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1783:44;;1842:7;1837:89;1859:1;1855;:5;;;1837:89;;;1890:25;1903:5;1909:1;1903:8;;;;;;;;;:::i;:::-;;;;;1913:1;1890:25;;:12;:25::i;:::-;1881:3;1885:1;1881:6;;;;;;;;;;:::i;:::-;;;;;;;;;;:34;1862:3;;;;:::i;:::-;;;;1837:89;;;-1:-1:-1;1942:3:15;;1651:301;-1:-1:-1;;;1651:301:15:o;3503:893:16:-;3559:13;3598:19;3631:26;3671:25;3710:21;3745:22;3781:18;3812:15;3819:7;3812:6;:15::i;:::-;3584:243;;;;;;;;;;;;3838:31;;:::i;:::-;3879:6;;;:14;;;3903:13;;;:28;;;-1:-1:-1;;;3941:7:16;;;:23;-1:-1:-1;;;;;;3974:26:16;;:12;;;:26;-1:-1:-1;4010:6:16;;:16;;;-1:-1:-1;4036:9:16;;:20;;;4066:12;;;:26;;;844:3:1;4107:26:16;4122:7;-1:-1:-1;4107:14:16;:26::i;:::-;:52;;;4103:236;;;4185:21;4198:7;4185:12;:21::i;:::-;4175:7;;;:31;4235:3;4220:18;;4103:236;;;4279:18;4289:7;4279:9;:18::i;:::-;4269:7;;;:28;4326:2;4311:17;;4103:236;4356:33;;-1:-1:-1;;;4356:33:16;;:15;;:24;;:33;;4381:1;;4384:4;;4356:33;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;4356:33:16;;;;;;;;;;;;:::i;:::-;4349:40;3503:893;-1:-1:-1;;;;;;;;;3503:893:16:o;3363:122:15:-;1038:6:14;;-1:-1:-1;;;;;1038:6:14;666:10:2;1178:23:14;1170:68;;;;-1:-1:-1;;;1170:68:14;;;;;;;:::i;:::-;3456:12:15::1;::::0;::::1;;::::0;;;:8:::1;:12;::::0;;;;;;;:22;;::::1;::::0;;::::1;::::0;::::1;:::i;:::-;;3363:122:::0;;:::o;3308:132:16:-;3354:13;3386:15;:27;3414:5;;;;;;;;;;;;;-1:-1:-1;;;3414:5:16;;;3421:11;;;;;;;;;;;;;-1:-1:-1;;;3421:11:16;;;3386:47;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3386:47:16;;;;;;;;;;;;:::i;:::-;3379:54;;3308:132;:::o;3369:389:3:-;-1:-1:-1;;;;;3569:20:3;;666:10:2;3569:20:3;;:60;;-1:-1:-1;3593:36:3;3610:4;666:10:2;3136:166:3;:::i;3593:36::-;3548:148;;;;-1:-1:-1;;;3548:148:3;;28171:2:18;3548:148:3;;;28153:21:18;28210:2;28190:18;;;28183:30;28249:34;28229:18;;;28222:62;-1:-1:-1;;;28300:18:18;;;28293:39;28349:19;;3548:148:3;28143:231:18;3548:148:3;3706:45;3724:4;3730:2;3734;3738:6;3746:4;3706:17;:45::i;1839:189:14:-;1038:6;;-1:-1:-1;;;;;1038:6:14;666:10:2;1178:23:14;1170:68;;;;-1:-1:-1;;;1170:68:14;;;;;;;:::i;:::-;-1:-1:-1;;;;;1927:22:14;::::1;1919:73;;;::::0;-1:-1:-1;;;1919:73:14;;27418:2:18;1919:73:14::1;::::0;::::1;27400:21:18::0;27457:2;27437:18;;;27430:30;27496:34;27476:18;;;27469:62;-1:-1:-1;;;27547:18:18;;;27540:36;27593:19;;1919:73:14::1;27390:228:18::0;1919:73:14::1;2002:19;2012:8;2002:9;:19::i;:::-;1839:189:::0;:::o;6399:311:16:-;6450:7;6470:26;6498:19;6521:18;6536:2;6521:14;:18::i;:::-;6565:1;6549:13;;;:17;;;6576:13;;;:17;;;6603:13;;;:17;;;6630:13;;;:17;6469:70;;-1:-1:-1;6469:70:16;-1:-1:-1;6664:39:16;6469:70;6549:17;6664:39;;:12;:39::i;:::-;6657:46;6399:311;-1:-1:-1;;;;6399:311:16:o;8214:715:3:-;-1:-1:-1;;;;;8386:16:3;;8378:62;;;;-1:-1:-1;;;8378:62:3;;;;;;;:::i;:::-;8472:7;:14;8458:3;:10;:28;8450:81;;;;-1:-1:-1;;;8450:81:3;;;;;;;:::i;:::-;666:10:2;8542:16:3;8661:101;8685:3;:10;8681:1;:14;8661:101;;;8741:7;8749:1;8741:10;;;;;;;;:::i;:::-;;;;;;;8716:9;:17;8726:3;8730:1;8726:6;;;;;;;;:::i;:::-;;;;;;;8716:17;;;;;;;;;;;:21;8734:2;-1:-1:-1;;;;;8716:21:3;-1:-1:-1;;;;;8716:21:3;;;;;;;;;;;;;:35;;;;;;;:::i;:::-;;;;-1:-1:-1;8697:3:3;;-1:-1:-1;8697:3:3;;;:::i;:::-;;;;8661:101;;;;8813:2;-1:-1:-1;;;;;8777:53:3;8809:1;-1:-1:-1;;;;;8777:53:3;8791:8;-1:-1:-1;;;;;8777:53:3;;8817:3;8822:7;8777:53;;;;;;;:::i;:::-;;;;;;;;8841:81;8877:8;8895:1;8899:2;8903:3;8908:7;8917:4;8841:35;:81::i;5853:1045::-;6073:7;:14;6059:3;:10;:28;6051:81;;;;-1:-1:-1;;;6051:81:3;;;;;;;:::i;:::-;-1:-1:-1;;;;;6150:16:3;;6142:66;;;;-1:-1:-1;;;6142:66:3;;;;;;;:::i;:::-;666:10:2;6219:16:3;6332:411;6356:3;:10;6352:1;:14;6332:411;;;6387:10;6400:3;6404:1;6400:6;;;;;;;;:::i;:::-;;;;;;;6387:19;;6420:14;6437:7;6445:1;6437:10;;;;;;;;:::i;:::-;;;;;;;;;;;;6462:19;6484:13;;;;;;;;;;-1:-1:-1;;;;;6484:19:3;;;;;;;;;;;;6437:10;;-1:-1:-1;6525:21:3;;;;6517:76;;;;-1:-1:-1;;;6517:76:3;;;;;;;:::i;:::-;6635:9;:13;;;;;;;;;;;-1:-1:-1;;;;;6635:19:3;;;;;;;;;;6657:20;;;6635:42;;6705:17;;;;;;;:27;;6657:20;;6635:9;6705:27;;6657:20;;6705:27;:::i;:::-;;;;;;;;6373:370;;;6368:3;;;;:::i;:::-;;;6332:411;;;;6788:2;-1:-1:-1;;;;;6758:47:3;6782:4;-1:-1:-1;;;;;6758:47:3;6772:8;-1:-1:-1;;;;;6758:47:3;;6792:3;6797:7;6758:47;;;;;;;:::i;:::-;;;;;;;;6816:75;6852:8;6862:4;6868:2;6872:3;6877:7;6886:4;6816:35;:75::i;:::-;6041:857;5853:1045;;;;;:::o;583:350:17:-;729:13;;666:7;;698:8;;722:24;;;;744:1;722:6;:24::i;:::-;716:30;;;;:::i;:::-;;-1:-1:-1;762:24:17;769:10;780:1;769:13;;;;762:24;;784:1;762:6;:24::i;:::-;756:30;;;;:::i;:::-;;-1:-1:-1;802:24:17;809:10;820:1;809:13;;;;802:24;;824:1;802:6;:24::i;:::-;796:30;;;;:::i;:::-;;-1:-1:-1;842:24:17;849:10;860:1;849:13;;;;842:24;;864:1;842:6;:24::i;:::-;836:30;;;;:::i;:::-;;-1:-1:-1;882:24:17;889:10;900:1;889:13;;;;882:24;;904:1;882:6;:24::i;:::-;876:30;;;;:::i;2034:169:14:-;2108:6;;;-1:-1:-1;;;;;2124:17:14;;;-1:-1:-1;;;;;;2124:17:14;;;;;;;2156:40;;2108:6;;;2124:17;2108:6;;2156:40;;2089:16;;2156:40;2079:124;2034:169;:::o;7286:583:3:-;-1:-1:-1;;;;;7438:21:3;;7430:67;;;;-1:-1:-1;;;7430:67:3;;;;;;;:::i;:::-;666:10:2;7550:107:3;666:10:2;7508:16:3;7593:7;7602:21;7620:2;7602:17;:21::i;:::-;7625:25;7643:6;7625:17;:25::i;7550:107::-;7668:9;:13;;;;;;;;;;;-1:-1:-1;;;;;7668:22:3;;;;;;;;;:32;;7694:6;;7668:9;:32;;7694:6;;7668:32;:::i;:::-;;;;-1:-1:-1;;7715:57:3;;;34222:25:18;;;34278:2;34263:18;;34256:34;;;-1:-1:-1;;;;;7715:57:3;;;;7748:1;;7715:57;;;;;;34195:18:18;7715:57:3;;;;;;;7783:79;7814:8;7832:1;7836:7;7845:2;7849:6;7857:4;7783:30;:79::i;1036:331:17:-;1087:26;;:::i;:::-;1115:14;1152:13;1159:2;1163:1;1152:6;:13::i;:::-;1141:24;;1191:13;1198:2;1202:1;1191:6;:13::i;:::-;1175:29;;;;1230:13;1237:2;1241:1;1230:6;:13::i;:::-;1214:29;;:13;;;:29;1269:13;1276:2;1280:1;1269:6;:13::i;:::-;1253:29;;:13;;;:29;1308:13;1315:2;1319:1;1308:6;:13::i;:::-;1292:29;;:13;;;:29;1347:13;1354:2;1358:1;1347:6;:13::i;:::-;1331:29;;:13;;;:29;:10;;1036:331;;-1:-1:-1;1036:331:17:o;1708:130::-;1772:5;1810:11;1818:3;470:2;1810:11;:::i;:::-;1803:2;:19;;1826:4;1802:28;1789:42;;1708:130;;;;:::o;8184:195:16:-;8295:14;;;8307:1;8295:14;;;;;;;;;8246;;8272:20;;8295:14;;;;;;;;;;;;;;;;;;;;;8272:37;;8330:20;8339:7;8348:1;8330:8;:20::i;:::-;8319:5;8325:1;8319:8;;;;;;;;:::i;:::-;;;;;;;;;;:31;8367:5;8184:195;-1:-1:-1;;8184:195:16:o;6716:635::-;6775:14;6801:19;6823:26;6838:7;6847:1;6823:14;:26::i;:::-;6883:14;;;6895:1;6883:14;;;;;;;;;6801:48;;-1:-1:-1;6860:20:16;;6883:14;;;;;;;;;;;;;;;;;;;;;6860:37;;6908:21;6932:54;6944:4;;;;;;;;;;;;;;;;;6950:7;251:3;6972:13;6932:11;:54::i;:::-;6908:78;;6996:23;7022:58;7034:6;;;;;;;;;;;;;;;;;7042:7;293:3;7066:13;7022:11;:58::i;:::-;6996:84;-1:-1:-1;7102:5:16;7108:1;7102:8;;;;7091:5;7097:1;7091:8;;;;;;;;:::i;:::-;;;;;;;;;;:19;7131:5;7137:1;7131:8;;;;7120:5;7126:1;7120:8;;;;;;;;:::i;:::-;;;;;;;;;;:19;7160:5;7166:1;7160:8;;;;7149:5;7155:1;7149:8;;;;;;;;:::i;:::-;;;;;;;;;;:19;7189:5;7195:1;7189:8;;;;7178:5;7184:1;7178:8;;;;;;;;:::i;:::-;;;;;;;;;;:19;7218:10;;7207:8;;:5;;7213:1;;7207:8;;;;;;:::i;:::-;;;;;;;;;;:21;7249:7;7257:1;7249:10;;;;7238:5;7244:1;7238:8;;;;;;;;:::i;:::-;;;;;;;;;;:21;7280:7;7288:1;7280:10;;;;7269:5;7275:1;7269:8;;;;;;;;:::i;:::-;;;;;;;;;;:21;7311:7;7319:1;7311:10;;;;7300:5;7306:1;7300:8;;;;;;;;:::i;:::-;;;;;;;;;;:21;-1:-1:-1;7339:5:16;;6716:635;-1:-1:-1;;;;6716:635:16:o;4710:797:3:-;-1:-1:-1;;;;;4891:16:3;;4883:66;;;;-1:-1:-1;;;4883:66:3;;;;;;;:::i;:::-;666:10:2;5002:96:3;666:10:2;5033:4:3;5039:2;5043:21;5061:2;5043:17;:21::i;5002:96::-;5109:19;5131:13;;;;;;;;;;;-1:-1:-1;;;;;5131:19:3;;;;;;;;;;5168:21;;;;5160:76;;;;-1:-1:-1;;;5160:76:3;;;;;;;:::i;:::-;5270:9;:13;;;;;;;;;;;-1:-1:-1;;;;;5270:19:3;;;;;;;;;;5292:20;;;5270:42;;5332:17;;;;;;;:27;;5292:20;;5270:9;5332:27;;5292:20;;5332:27;:::i;:::-;;;;-1:-1:-1;;5375:46:3;;;34222:25:18;;;34278:2;34263:18;;34256:34;;;-1:-1:-1;;;;;5375:46:3;;;;;;;;;;;;;;34195:18:18;5375:46:3;;;;;;;5432:68;5463:8;5473:4;5479:2;5483;5487:6;5495:4;5432:30;:68::i;10814:792::-;-1:-1:-1;;;;;11046:13:3;;1034:20:0;1080:8;11042:558:3;;11081:79;;-1:-1:-1;;;11081:79:3;;-1:-1:-1;;;;;11081:43:3;;;;;:79;;11125:8;;11135:4;;11141:3;;11146:7;;11155:4;;11081:79;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11081:79:3;;;;;;;;-1:-1:-1;;11081:79:3;;;;;;;;;;;;:::i;:::-;;;11077:513;;;;:::i;:::-;;;;;;;;;;:::i;:::-;;;;;;;;11466:6;11459:14;;-1:-1:-1;;;11459:14:3;;;;;;;;:::i;11077:513::-;;;11513:62;;-1:-1:-1;;;11513:62:3;;25835:2:18;11513:62:3;;;25817:21:18;25874:2;25854:18;;;25847:30;25913:34;25893:18;;;25886:62;-1:-1:-1;;;25964:18:18;;;25957:50;26024:19;;11513:62:3;25807:242:18;11077:513:3;-1:-1:-1;;;;;;11239:60:3;;-1:-1:-1;;;11239:60:3;11235:157;;11323:50;;-1:-1:-1;;;11323:50:3;;;;;;;:::i;1448:139:17:-;1519:7;1568:11;1576:3;470:2;1568:11;:::i;:::-;1546:9;1558:4;1546:16;1545:35;;1538:42;;1448:139;;;;:::o;11612:194:3:-;11732:16;;;11746:1;11732:16;;;;;;;;;11679;;11707:22;;11732:16;;;;;;;;;;;;-1:-1:-1;11732:16:3;11707:41;;11769:7;11758:5;11764:1;11758:8;;;;;;;;:::i;10083:725::-;-1:-1:-1;;;;;10290:13:3;;1034:20:0;1080:8;10286:516:3;;10325:72;;-1:-1:-1;;;10325:72:3;;-1:-1:-1;;;;;10325:38:3;;;;;:72;;10364:8;;10374:4;;10380:2;;10384:6;;10392:4;;10325:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;10325:72:3;;;;;;;;-1:-1:-1;;10325:72:3;;;;;;;;;;;;:::i;:::-;;;10321:471;;;;:::i;:::-;-1:-1:-1;;;;;;10446:55:3;;-1:-1:-1;;;10446:55:3;10442:152;;10525:50;;-1:-1:-1;;;10525:50:3;;;;;;;:::i;7357:821:16:-;7511:15;;:::i;:::-;7538:21;;:::i;:::-;7589:1;7604:21;;;7600:66;;-1:-1:-1;;;7600:66:16;7761:6;;;;;;;;;;;;-1:-1:-1;;;801:22:12;;;-1:-1:-1;;;778:46:12;7761:6:16;;;759:66:12;7676:32:16;7719:57;;1006:3:1;7791:37:16;;;;7787:129;;;7886:10;;;;;;;;;;;;801:22:12;;;-1:-1:-1;;;778:46:12;7886:10:16;;;759:66:12;7844:8:16;;;:61;7787:129;795:2:12;788:10;;782:17;;801:22;;;778:46;759:66;;7968:10:16;7926:8;;;:61;7998:17;8018:20;8027:2;8031:6;8018:8;:20::i;:::-;8052:11;;7998:40;;-1:-1:-1;8052:15:16;8048:101;;795:2:12;788:10;;782:17;;801:22;;;778:46;759:66;;8125:4:16;8083:8;;;:55;8048:101;-1:-1:-1;8166:5:16;;7357:821;-1:-1:-1;;;;;;;7357:821:16:o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;14:173:18:-;82:20;;-1:-1:-1;;;;;131:31:18;;121:42;;111:2;;177:1;174;167:12;111:2;63:124;;;:::o;192:374::-;262:8;272:6;326:3;319:4;311:6;307:17;303:27;293:2;;344:1;341;334:12;293:2;-1:-1:-1;367:20:18;;-1:-1:-1;;;;;399:30:18;;396:2;;;442:1;439;432:12;396:2;479:4;471:6;467:17;455:29;;539:3;532:4;522:6;519:1;515:14;507:6;503:27;499:38;496:47;493:2;;;556:1;553;546:12;493:2;283:283;;;;;:::o;571:735::-;625:5;678:3;671:4;663:6;659:17;655:27;645:2;;696:1;693;686:12;645:2;732:6;719:20;758:4;781:43;821:2;781:43;:::i;:::-;853:2;847:9;865:31;893:2;885:6;865:31;:::i;:::-;931:18;;;965:15;;;;-1:-1:-1;1000:15:18;;;1050:1;1046:10;;;1034:23;;1030:32;;1027:41;-1:-1:-1;1024:2:18;;;1081:1;1078;1071:12;1024:2;1103:1;1113:163;1127:2;1124:1;1121:9;1113:163;;;1184:17;;1172:30;;1222:12;;;;1254;;;;1145:1;1138:9;1113:163;;;-1:-1:-1;1294:6:18;;635:671;-1:-1:-1;;;;;;;635:671:18:o;1311:625::-;1359:5;1412:3;1405:4;1397:6;1393:17;1389:27;1379:2;;1430:1;1427;1420:12;1379:2;1463;1457:9;1475:32;1500:6;1475:32;:::i;:::-;1527:6;1553;1592:3;1586;1578:6;1574:16;1571:25;1568:2;;;1609:1;1606;1599:12;1568:2;1631:1;1641:265;1655:4;1652:1;1649:11;1641:265;;;1728:3;1715:17;1745:29;1768:5;1745:29;:::i;:::-;1787:18;;1828:4;1852:12;;;;1884;;;;;1675:1;1668:9;1641:265;;;-1:-1:-1;1924:6:18;;1369:567;-1:-1:-1;;;;;1369:567:18:o;1941:806::-;1993:5;2046:3;2039:4;2031:6;2027:17;2023:27;2013:2;;2064:1;2061;2054:12;2013:2;2100:6;2087:20;2126:4;2149:43;2189:2;2149:43;:::i;:::-;2221:2;2215:9;2233:31;2261:2;2253:6;2233:31;:::i;:::-;2299:18;;;2333:15;;;;-1:-1:-1;2368:15:18;;;2418:1;2414:10;;;2402:23;;2398:32;;2395:41;-1:-1:-1;2392:2:18;;;2449:1;2446;2439:12;2392:2;2471:1;2481:236;2495:2;2492:1;2489:9;2481:236;;;2566:3;2553:17;2583:29;2606:5;2583:29;:::i;:::-;2625:18;;2663:12;;;;2695;;;;2513:1;2506:9;2481:236;;2752:508;2794:5;2847:3;2840:4;2832:6;2828:17;2824:27;2814:2;;2865:1;2862;2855:12;2814:2;2901:6;2888:20;2927:31;2955:2;2927:31;:::i;:::-;2987:2;2981:9;2999:31;3027:2;3019:6;2999:31;:::i;:::-;3054:2;3046:6;3039:18;3100:3;3093:4;3088:2;3080:6;3076:15;3072:26;3069:35;3066:2;;;3117:1;3114;3107:12;3066:2;3181;3174:4;3166:6;3162:17;3155:4;3147:6;3143:17;3130:54;3228:1;3204:15;;;3221:4;3200:26;3193:37;;;;-1:-1:-1;3208:6:18;2804:456;-1:-1:-1;;;2804:456:18:o;3265:186::-;3324:6;3377:2;3365:9;3356:7;3352:23;3348:32;3345:2;;;3393:1;3390;3383:12;3345:2;3416:29;3435:9;3416:29;:::i;3456:260::-;3524:6;3532;3585:2;3573:9;3564:7;3560:23;3556:32;3553:2;;;3601:1;3598;3591:12;3553:2;3624:29;3643:9;3624:29;:::i;:::-;3614:39;;3672:38;3706:2;3695:9;3691:18;3672:38;:::i;:::-;3662:48;;3543:173;;;;;:::o;3721:943::-;3875:6;3883;3891;3899;3907;3960:3;3948:9;3939:7;3935:23;3931:33;3928:2;;;3977:1;3974;3967:12;3928:2;4000:29;4019:9;4000:29;:::i;:::-;3990:39;;4048:38;4082:2;4071:9;4067:18;4048:38;:::i;:::-;4038:48;;4137:2;4126:9;4122:18;4109:32;-1:-1:-1;;;;;4201:2:18;4193:6;4190:14;4187:2;;;4217:1;4214;4207:12;4187:2;4240:61;4293:7;4284:6;4273:9;4269:22;4240:61;:::i;:::-;4230:71;;4354:2;4343:9;4339:18;4326:32;4310:48;;4383:2;4373:8;4370:16;4367:2;;;4399:1;4396;4389:12;4367:2;4422:63;4477:7;4466:8;4455:9;4451:24;4422:63;:::i;:::-;4412:73;;4538:3;4527:9;4523:19;4510:33;4494:49;;4568:2;4558:8;4555:16;4552:2;;;4584:1;4581;4574:12;4552:2;;4607:51;4650:7;4639:8;4628:9;4624:24;4607:51;:::i;:::-;4597:61;;;3918:746;;;;;;;;:::o;4669:606::-;4773:6;4781;4789;4797;4805;4858:3;4846:9;4837:7;4833:23;4829:33;4826:2;;;4875:1;4872;4865:12;4826:2;4898:29;4917:9;4898:29;:::i;:::-;4888:39;;4946:38;4980:2;4969:9;4965:18;4946:38;:::i;:::-;4936:48;;5031:2;5020:9;5016:18;5003:32;4993:42;;5082:2;5071:9;5067:18;5054:32;5044:42;;5137:3;5126:9;5122:19;5109:33;-1:-1:-1;;;;;5157:6:18;5154:30;5151:2;;;5197:1;5194;5187:12;5151:2;5220:49;5261:7;5252:6;5241:9;5237:22;5220:49;:::i;5280:705::-;5403:6;5411;5419;5427;5435;5488:3;5476:9;5467:7;5463:23;5459:33;5456:2;;;5505:1;5502;5495:12;5456:2;5528:29;5547:9;5528:29;:::i;:::-;5518:39;;5576:51;5619:7;5614:2;5603:9;5599:18;5576:51;:::i;:::-;5566:61;;5677:3;5666:9;5662:19;5649:33;5691:29;5714:5;5691:29;:::i;:::-;5739:5;-1:-1:-1;5791:3:18;5776:19;;5763:33;;-1:-1:-1;5847:3:18;5832:19;;5819:33;-1:-1:-1;;;;;5864:30:18;;5861:2;;;5907:1;5904;5897:12;5990:1087;6165:6;6173;6181;6189;6197;6250:3;6238:9;6229:7;6225:23;6221:33;6218:2;;;6267:1;6264;6257:12;6218:2;6290:29;6309:9;6290:29;:::i;:::-;6280:39;;6370:2;6359:9;6355:18;6342:32;-1:-1:-1;;;;;6434:2:18;6426:6;6423:14;6420:2;;;6450:1;6447;6440:12;6420:2;6473:59;6524:7;6515:6;6504:9;6500:22;6473:59;:::i;:::-;6463:69;;6585:2;6574:9;6570:18;6557:32;6541:48;;6614:2;6604:8;6601:16;6598:2;;;6630:1;6627;6620:12;6598:2;6653:61;6706:7;6695:8;6684:9;6680:24;6653:61;:::i;7082:347::-;7147:6;7155;7208:2;7196:9;7187:7;7183:23;7179:32;7176:2;;;7224:1;7221;7214:12;7176:2;7247:29;7266:9;7247:29;:::i;:::-;7237:39;;7326:2;7315:9;7311:18;7298:32;7373:5;7366:13;7359:21;7352:5;7349:32;7339:2;;7395:1;7392;7385:12;7339:2;7418:5;7408:15;;;7166:263;;;;;:::o;7434:254::-;7502:6;7510;7563:2;7551:9;7542:7;7538:23;7534:32;7531:2;;;7579:1;7576;7569:12;7531:2;7602:29;7621:9;7602:29;:::i;:::-;7592:39;7678:2;7663:18;;;;7650:32;;-1:-1:-1;;;7521:167:18:o;7693:1219::-;7811:6;7819;7872:2;7860:9;7851:7;7847:23;7843:32;7840:2;;;7888:1;7885;7878:12;7840:2;7928:9;7915:23;-1:-1:-1;;;;;7998:2:18;7990:6;7987:14;7984:2;;;8014:1;8011;8004:12;7984:2;8052:6;8041:9;8037:22;8027:32;;8097:7;8090:4;8086:2;8082:13;8078:27;8068:2;;8119:1;8116;8109:12;8068:2;8155;8142:16;8177:4;8200:43;8240:2;8200:43;:::i;:::-;8272:2;8266:9;8284:31;8312:2;8304:6;8284:31;:::i;:::-;8350:18;;;8384:15;;;;-1:-1:-1;8419:11:18;;;8461:1;8457:10;;;8449:19;;8445:28;;8442:41;-1:-1:-1;8439:2:18;;;8496:1;8493;8486:12;8439:2;8518:1;8509:10;;8528:169;8542:2;8539:1;8536:9;8528:169;;;8599:23;8618:3;8599:23;:::i;:::-;8587:36;;8560:1;8553:9;;;;;8643:12;;;;8675;;8528:169;;;-1:-1:-1;8716:6:18;-1:-1:-1;;8760:18:18;;8747:32;;-1:-1:-1;;8791:16:18;;;8788:2;;;8820:1;8817;8810:12;8788:2;;8843:63;8898:7;8887:8;8876:9;8872:24;8843:63;:::i;:::-;8833:73;;;7830:1082;;;;;:::o;8917:1363::-;9031:6;9062:4;9107:2;9095:9;9086:7;9082:23;9078:32;9075:2;;;9123:1;9120;9113:12;9075:2;9146:4;9193:7;9188:2;9177:9;9173:18;9169:32;9159:2;;9215:1;9212;9205:12;9159:2;9238;9269;9263:9;9281:32;9306:6;9281:32;:::i;:::-;9333:6;9359:9;9403:7;9398:2;9387:9;9383:18;9380:31;9377:2;;;9424:1;9421;9414:12;9377:2;9446:1;9437:10;;9456:793;9470:4;9467:1;9464:11;9456:793;;;9545:7;9540:2;9535:3;9531:12;9527:26;9517:2;;9567:1;9564;9557:12;9517:2;9606;9600:9;9622:34;9647:8;9622:34;:::i;:::-;9682:8;9716:3;9751;9746;9742:13;9778:7;9774:2;9771:15;9768:2;;;9799:1;9796;9789:12;9768:2;9827:1;9841:308;9857:4;9852:3;9849:13;9841:308;;;9935:5;9929:12;9958:29;9981:5;9958:29;:::i;:::-;10004:20;;10051:4;10081:14;;;;10121;;;;;9881:1;9872:11;9841:308;;;-1:-1:-1;10162:21:18;;;-1:-1:-1;;9490:1:18;9483:9;;;;;10212:4;10203:14;;;;10237:2;-1:-1:-1;9456:793:18;;10285:798;10418:6;10426;10434;10442;10495:2;10483:9;10474:7;10470:23;10466:32;10463:2;;;10511:1;10508;10501:12;10463:2;10551:9;10538:23;-1:-1:-1;;;;;10621:2:18;10613:6;10610:14;10607:2;;;10637:1;10634;10627:12;10607:2;10676:77;10745:7;10736:6;10725:9;10721:22;10676:77;:::i;:::-;10772:8;;-1:-1:-1;10650:103:18;-1:-1:-1;10860:2:18;10845:18;;10832:32;;-1:-1:-1;10876:16:18;;;10873:2;;;10905:1;10902;10895:12;10873:2;;10944:79;11015:7;11004:8;10993:9;10989:24;10944:79;:::i;:::-;10453:630;;;;-1:-1:-1;11042:8:18;-1:-1:-1;;;;10453:630:18:o;11088:353::-;11175:6;11183;11236:3;11224:9;11215:7;11211:23;11207:33;11204:2;;;11253:1;11250;11243:12;11204:2;11276:42;11310:7;11299:9;11276:42;:::i;:::-;11266:52;;11368:3;11357:9;11353:19;11340:33;11382:29;11405:5;11382:29;:::i;11446:245::-;11504:6;11557:2;11545:9;11536:7;11532:23;11528:32;11525:2;;;11573:1;11570;11563:12;11525:2;11612:9;11599:23;11631:30;11655:5;11631:30;:::i;11696:249::-;11765:6;11818:2;11806:9;11797:7;11793:23;11789:32;11786:2;;;11834:1;11831;11824:12;11786:2;11866:9;11860:16;11885:30;11909:5;11885:30;:::i;11950:690::-;12030:6;12083:2;12071:9;12062:7;12058:23;12054:32;12051:2;;;12099:1;12096;12089:12;12051:2;12132:9;12126:16;-1:-1:-1;;;;;12157:6:18;12154:30;12151:2;;;12197:1;12194;12187:12;12151:2;12220:22;;12273:4;12265:13;;12261:27;-1:-1:-1;12251:2:18;;12302:1;12299;12292:12;12251:2;12331;12325:9;12353:31;12381:2;12353:31;:::i;:::-;12413:2;12407:9;12425:31;12453:2;12445:6;12425:31;:::i;:::-;12480:2;12472:6;12465:18;12520:7;12515:2;12510;12506;12502:11;12498:20;12495:33;12492:2;;;12541:1;12538;12531:12;12492:2;12554:55;12606:2;12601;12593:6;12589:15;12584:2;12580;12576:11;12554:55;:::i;12645:180::-;12704:6;12757:2;12745:9;12736:7;12732:23;12728:32;12725:2;;;12773:1;12770;12763:12;12725:2;-1:-1:-1;12796:23:18;;12715:110;-1:-1:-1;12715:110:18:o;12830:462::-;12916:6;12924;12932;12985:2;12973:9;12964:7;12960:23;12956:32;12953:2;;;13001:1;12998;12991:12;12953:2;13037:9;13024:23;13014:33;;13066:38;13100:2;13089:9;13085:18;13066:38;:::i;:::-;13056:48;;13155:2;13144:9;13140:18;13127:32;-1:-1:-1;;;;;13174:6:18;13171:30;13168:2;;;13214:1;13211;13204:12;13168:2;13237:49;13278:7;13269:6;13258:9;13254:22;13237:49;:::i;:::-;13227:59;;;12943:349;;;;;:::o;13297:607::-;13392:6;13400;13408;13461:2;13449:9;13440:7;13436:23;13432:32;13429:2;;;13477:1;13474;13467:12;13429:2;13513:9;13500:23;13490:33;;13574:2;13563:9;13559:18;13546:32;-1:-1:-1;;;;;13638:2:18;13630:6;13627:14;13624:2;;;13654:1;13651;13644:12;13624:2;13677:49;13718:7;13709:6;13698:9;13694:22;13677:49;:::i;:::-;13667:59;;13779:2;13768:9;13764:18;13751:32;13735:48;;13808:2;13798:8;13795:16;13792:2;;;13824:1;13821;13814:12;13792:2;;13847:51;13890:7;13879:8;13868:9;13864:24;13847:51;:::i;13909:311::-;13975:6;13983;14036:2;14024:9;14015:7;14011:23;14007:32;14004:2;;;14052:1;14049;14042:12;14004:2;14088:9;14075:23;14065:33;;14148:2;14137:9;14133:18;14120:32;14161:29;14184:5;14161:29;:::i;14225:243::-;14282:6;14335:2;14323:9;14314:7;14310:23;14306:32;14303:2;;;14351:1;14348;14341:12;14303:2;14390:9;14377:23;14409:29;14432:5;14409:29;:::i;14473:1174::-;14563:6;14571;14624:2;14612:9;14603:7;14599:23;14595:32;14592:2;;;14640:1;14637;14630:12;14592:2;14679:9;14666:23;14698:29;14721:5;14698:29;:::i;:::-;14746:5;-1:-1:-1;14770:2:18;14808:18;;;14795:32;-1:-1:-1;;;;;14839:30:18;;14836:2;;;14882:1;14879;14872:12;14836:2;14905:22;;14958:4;14950:13;;14946:27;-1:-1:-1;14936:2:18;;14987:1;14984;14977:12;14936:2;15023;15010:16;15045:43;15085:2;15045:43;:::i;:::-;15117:2;15111:9;15129:31;15157:2;15149:6;15129:31;:::i;:::-;15195:18;;;15229:15;;;;-1:-1:-1;15264:11:18;;;15306:1;15302:10;;;15294:19;;15290:28;;15287:41;-1:-1:-1;15284:2:18;;;15341:1;15338;15331:12;15284:2;15363:1;15354:10;;15373:243;15387:2;15384:1;15381:9;15373:243;;;15460:3;15447:17;15477:32;15501:7;15477:32;:::i;:::-;15522:20;;15405:1;15398:9;;;;;15562:12;;;;15594;;15373:243;;;15377:3;15635:6;15625:16;;;;;;;14582:1065;;;;;:::o;15652:590::-;15703:3;15734;15766:5;15760:12;15793:6;15788:3;15781:19;15819:4;15848:2;15843:3;15839:12;15832:19;;15904:2;15894:6;15891:1;15887:14;15880:5;15876:26;15872:35;15941:2;15934:5;15930:14;15962:1;15972:244;15986:6;15983:1;15980:13;15972:244;;;16073:2;16069:7;16061:5;16055:4;16051:16;16047:30;16042:3;16035:43;16099:37;16131:4;16122:6;16116:13;16099:37;:::i;:::-;16194:12;;;;16091:45;-1:-1:-1;16159:15:18;;;;16008:1;16001:9;15972:244;;16247:435;16300:3;16338:5;16332:12;16365:6;16360:3;16353:19;16391:4;16420:2;16415:3;16411:12;16404:19;;16457:2;16450:5;16446:14;16478:1;16488:169;16502:6;16499:1;16496:13;16488:169;;;16563:13;;16551:26;;16597:12;;;;16632:15;;;;16524:1;16517:9;16488:169;;;-1:-1:-1;16673:3:18;;16308:374;-1:-1:-1;;;;;16308:374:18:o;16687:335::-;16778:5;16801:1;16811:205;16825:4;16822:1;16819:11;16811:205;;;16888:13;;16903:4;16884:24;16872:37;;16932:4;16956:12;;;;16991:15;;;;16845:1;16838:9;16811:205;;;16815:3;;16735:287;;:::o;17136:257::-;17177:3;17215:5;17209:12;17242:6;17237:3;17230:19;17258:63;17314:6;17307:4;17302:3;17298:14;17291:4;17284:5;17280:16;17258:63;:::i;:::-;17375:2;17354:15;-1:-1:-1;;17350:29:18;17341:39;;;;17382:4;17337:50;;17185:208;-1:-1:-1;;17185:208:18:o;17605:614::-;17885:3;17923:6;17917:13;17939:53;17985:6;17980:3;17973:4;17965:6;17961:17;17939:53;:::i;:::-;-1:-1:-1;;;18014:16:18;;;18039:18;;;18082:13;;18104:65;18082:13;18156:1;18145:13;;18138:4;18126:17;;18104:65;:::i;:::-;18189:20;18211:1;18185:28;;17893:326;-1:-1:-1;;;;17893:326:18:o;18224:441::-;18456:3;18494:6;18488:13;18510:53;18556:6;18551:3;18544:4;18536:6;18532:17;18510:53;:::i;:::-;-1:-1:-1;;;18585:16:18;;18610:20;;;-1:-1:-1;18657:1:18;18646:13;;18464:201;-1:-1:-1;18464:201:18:o;18670:592::-;19003:3;-1:-1:-1;;;19055:2:18;19050:3;19043:15;19087:6;19081:13;19103:61;19157:6;19153:1;19148:3;19144:11;19137:4;19129:6;19125:17;19103:61;:::i;:::-;19223:1;19183:16;;19215:10;;;19208:22;-1:-1:-1;19254:1:18;19246:10;;19011:251;-1:-1:-1;19011:251:18:o;19267:769::-;-1:-1:-1;;;19666:28:18;;19717:13;;19648:3;;19739:61;19717:13;19789:1;19780:11;;19773:4;19761:17;;19739:61;:::i;:::-;-1:-1:-1;;;19859:1:18;19819:16;;;19851:10;;;19844:36;19905:13;;19927:62;19905:13;19976:1;19968:10;;19961:4;19949:17;;19927:62;:::i;:::-;20009:17;20028:1;20005:25;;19656:380;-1:-1:-1;;;;19656:380:18:o;20249:826::-;-1:-1:-1;;;;;20646:15:18;;;20628:34;;20698:15;;20693:2;20678:18;;20671:43;20608:3;20745:2;20730:18;;20723:31;;;20571:4;;20777:57;;20814:19;;20806:6;20777:57;:::i;:::-;20882:9;20874:6;20870:22;20865:2;20854:9;20850:18;20843:50;20916:44;20953:6;20945;20916:44;:::i;:::-;20902:58;;21009:9;21001:6;20997:22;20991:3;20980:9;20976:19;20969:51;21037:32;21062:6;21054;21037:32;:::i;:::-;21029:40;20580:495;-1:-1:-1;;;;;;;;20580:495:18:o;21080:560::-;-1:-1:-1;;;;;21377:15:18;;;21359:34;;21429:15;;21424:2;21409:18;;21402:43;21476:2;21461:18;;21454:34;;;21519:2;21504:18;;21497:34;;;21339:3;21562;21547:19;;21540:32;;;21302:4;;21589:45;;21614:19;;21606:6;21589:45;:::i;:::-;21581:53;21311:329;-1:-1:-1;;;;;;;21311:329:18:o;21645:657::-;21814:2;21866:21;;;21936:13;;21839:18;;;21958:22;;;21785:4;;21814:2;22037:15;;;;22011:2;21996:18;;;21785:4;22080:196;22094:6;22091:1;22088:13;22080:196;;;22159:13;;-1:-1:-1;;;;;;22155:40:18;22143:53;;22251:15;;;;22216:12;;;;22116:1;22109:9;22080:196;;;-1:-1:-1;22293:3:18;;21794:508;-1:-1:-1;;;;;;21794:508:18:o;22307:261::-;22486:2;22475:9;22468:21;22449:4;22506:56;22558:2;22547:9;22543:18;22535:6;22506:56;:::i;22573:465::-;22830:2;22819:9;22812:21;22793:4;22856:56;22908:2;22897:9;22893:18;22885:6;22856:56;:::i;:::-;22960:9;22952:6;22948:22;22943:2;22932:9;22928:18;22921:50;22988:44;23025:6;23017;22988:44;:::i;:::-;22980:52;22802:236;-1:-1:-1;;;;;22802:236:18:o;23043:581::-;23243:3;23228:19;;23232:9;23324:6;23201:4;23358:205;23372:4;23369:1;23366:11;23358:205;;;23435:13;;23450:4;23431:24;23419:37;;23479:4;23503:12;;;;23538:15;;;;23392:1;23385:9;23358:205;;;23362:3;;;23612:4;23604:6;23600:17;23594:3;23583:9;23579:19;23572:46;23210:414;;;;;:::o;23821:217::-;23968:2;23957:9;23950:21;23931:4;23988:44;24028:2;24017:9;24013:18;24005:6;23988:44;:::i;24267:389::-;24472:2;24461:9;24454:21;24435:4;24498:44;24538:2;24527:9;24523:18;24515:6;24498:44;:::i;:::-;24590:9;24582:6;24578:22;24573:2;24562:9;24558:18;24551:50;24618:32;24643:6;24635;24618:32;:::i;24661:967::-;25028:3;25017:9;25010:22;24991:4;25055:45;25095:3;25084:9;25080:19;25072:6;25055:45;:::i;:::-;25148:9;25140:6;25136:22;25131:2;25120:9;25116:18;25109:50;25182:32;25207:6;25199;25182:32;:::i;:::-;25168:46;;25262:9;25254:6;25250:22;25245:2;25234:9;25230:18;25223:50;25296:32;25321:6;25313;25296:32;:::i;:::-;25282:46;;25376:9;25368:6;25364:22;25359:2;25348:9;25344:18;25337:50;25410:32;25435:6;25427;25410:32;:::i;:::-;25396:46;;25491:9;25483:6;25479:22;25473:3;25462:9;25458:19;25451:51;25519:32;25544:6;25536;25519:32;:::i;:::-;25511:40;;;25609:10;25604:3;25600:20;25592:6;25588:33;25582:3;25571:9;25567:19;25560:62;25000:628;;;;;;;;;:::o;26054:404::-;26256:2;26238:21;;;26295:2;26275:18;;;26268:30;26334:34;26329:2;26314:18;;26307:62;-1:-1:-1;;;26400:2:18;26385:18;;26378:38;26448:3;26433:19;;26228:230::o;28722:401::-;28924:2;28906:21;;;28963:2;28943:18;;;28936:30;29002:34;28997:2;28982:18;;28975:62;-1:-1:-1;;;29068:2:18;29053:18;;29046:35;29113:3;29098:19;;28896:227::o;29547:406::-;29749:2;29731:21;;;29788:2;29768:18;;;29761:30;29827:34;29822:2;29807:18;;29800:62;-1:-1:-1;;;29893:2:18;29878:18;;29871:40;29943:3;29928:19;;29721:232::o;29958:356::-;30160:2;30142:21;;;30179:18;;;30172:30;30238:34;30233:2;30218:18;;30211:62;30305:2;30290:18;;30132:182::o;31139:404::-;31341:2;31323:21;;;31380:2;31360:18;;;31353:30;31419:34;31414:2;31399:18;;31392:62;-1:-1:-1;;;31485:2:18;31470:18;;31463:38;31533:3;31518:19;;31313:230::o;31548:397::-;31750:2;31732:21;;;31789:2;31769:18;;;31762:30;31828:34;31823:2;31808:18;;31801:62;-1:-1:-1;;;31894:2:18;31879:18;;31872:31;31935:3;31920:19;;31722:223::o;31950:1911::-;32188:2;32177:9;32170:21;32200:51;32247:2;32236:9;32232:18;32223:6;32217:13;17592:4;17581:16;17569:29;;17567:33;32200:51;32151:4;32298;32290:6;32286:17;32280:24;32313:51;32360:2;32349:9;32345:18;32331:12;-1:-1:-1;;;;;;17092:32:18;17080:45;;17070:61;32313:51;-1:-1:-1;32413:2:18;32401:15;;32395:22;-1:-1:-1;;;;;;17092:32:18;32475:3;32460:19;;17080:45;32529:2;32517:15;;32511:22;32542:59;32596:3;32581:19;;32511:22;32542:59;:::i;:::-;;32650:3;32642:6;32638:16;32632:23;32674:6;32699:3;32738:2;32733;32722:9;32718:18;32711:30;32764:53;32812:3;32801:9;32797:19;32781:14;32764:53;:::i;:::-;32750:67;;32866:3;32858:6;32854:16;32848:23;32894:2;32890:7;32962:2;32950:9;32942:6;32938:22;32934:31;32928:3;32917:9;32913:19;32906:60;32989:40;33022:6;33006:14;32989:40;:::i;:::-;32975:54;;33078:4;33070:6;33066:17;33060:24;33038:46;;33149:2;33137:9;33129:6;33125:22;33121:31;33115:3;33104:9;33100:19;33093:60;33176:40;33209:6;33193:14;33176:40;:::i;:::-;33162:54;;33265:4;33257:6;33253:17;33247:24;33225:46;;33336:2;33324:9;33316:6;33312:22;33308:31;33302:3;33291:9;33287:19;33280:60;33363:40;33396:6;33380:14;33363:40;:::i;:::-;33349:54;;33452:6;33444;33440:19;33434:26;33412:48;;33524:2;33512:9;33504:6;33500:22;33496:31;33491:2;33480:9;33476:18;33469:59;33551:40;33584:6;33568:14;33551:40;:::i;:::-;33537:54;;33640:2;33632:6;33628:15;33622:22;33600:44;;33709:2;33697:9;33689:6;33685:22;33681:31;33675:3;33664:9;33660:19;33653:60;;;;33730:50;33773:6;33757:14;33730:50;:::i;:::-;33722:58;;;;33789:66;33849:4;33838:9;33834:20;33826:6;-1:-1:-1;;;;;17482:31:18;17470:44;;17460:60;35026:521;35103:4;35109:6;35169:11;35156:25;35263:2;35259:7;35248:8;35232:14;35228:29;35224:43;35204:18;35200:68;35190:2;;35282:1;35279;35272:12;35190:2;35309:33;;35361:20;;;-1:-1:-1;;;;;;35393:30:18;;35390:2;;;35436:1;35433;35426:12;35390:2;35469:4;35457:17;;-1:-1:-1;35500:14:18;35496:27;;;35486:38;;35483:2;;;35537:1;35534;35527:12;35552:183;35612:4;-1:-1:-1;;;;;35637:6:18;35634:30;35631:2;;;35667:18;;:::i;:::-;-1:-1:-1;35712:1:18;35708:14;35724:4;35704:25;;35621:114::o;35740:186::-;35788:4;-1:-1:-1;;;;;35813:6:18;35810:30;35807:2;;;35843:18;;:::i;:::-;-1:-1:-1;35909:2:18;35888:15;-1:-1:-1;;35884:29:18;35915:4;35880:40;;35797:129::o;35931:128::-;35971:3;36002:1;35998:6;35995:1;35992:13;35989:2;;;36008:18;;:::i;:::-;-1:-1:-1;36044:9:18;;35979:80::o;36064:120::-;36104:1;36130;36120:2;;36135:18;;:::i;:::-;-1:-1:-1;36169:9:18;;36110:74::o;36189:168::-;36229:7;36295:1;36291;36287:6;36283:14;36280:1;36277:21;36272:1;36265:9;36258:17;36254:45;36251:2;;;36302:18;;:::i;:::-;-1:-1:-1;36342:9:18;;36241:116::o;36362:258::-;36434:1;36444:113;36458:6;36455:1;36452:13;36444:113;;;36534:11;;;36528:18;36515:11;;;36508:39;36480:2;36473:10;36444:113;;;36575:6;36572:1;36569:13;36566:2;;;-1:-1:-1;;36610:1:18;36592:16;;36585:27;36415:205::o;36625:380::-;36704:1;36700:12;;;;36747;;;36768:2;;36822:4;36814:6;36810:17;36800:27;;36768:2;36875;36867:6;36864:14;36844:18;36841:38;36838:2;;;36921:10;36916:3;36912:20;36909:1;36902:31;36956:4;36953:1;36946:15;36984:4;36981:1;36974:15;36838:2;;36680:325;;;:::o;37010:224::-;37096:3;37088:6;37084:16;37166:6;37154:10;37151:22;-1:-1:-1;;;;;37118:10:18;37115:34;37112:62;37109:2;;;37177:18;;:::i;:::-;37213:2;37206:22;-1:-1:-1;37056:178:18:o;37239:224::-;37325:3;37317:6;37313:16;37395:6;37383:10;37380:22;-1:-1:-1;;;;;37347:10:18;37344:34;37341:62;37338:2;;;37406:18;;:::i;37468:249::-;37578:2;37559:13;;-1:-1:-1;;37555:27:18;37543:40;;-1:-1:-1;;;;;37598:34:18;;37634:22;;;37595:62;37592:2;;;37660:18;;:::i;:::-;37696:2;37689:22;-1:-1:-1;;37515:202:18:o;37722:135::-;37761:3;-1:-1:-1;;37782:17:18;;37779:2;;;37802:18;;:::i;:::-;-1:-1:-1;37849:1:18;37838:13;;37769:88::o;37862:175::-;37899:3;37943:4;37936:5;37932:16;37972:4;37963:7;37960:17;37957:2;;;37980:18;;:::i;:::-;38029:1;38016:15;;37907:130;-1:-1:-1;;37907:130:18:o;38042:112::-;38074:1;38100;38090:2;;38105:18;;:::i;:::-;-1:-1:-1;38139:9:18;;38080:74::o;38159:127::-;38220:10;38215:3;38211:20;38208:1;38201:31;38251:4;38248:1;38241:15;38275:4;38272:1;38265:15;38291:127;38352:10;38347:3;38343:20;38340:1;38333:31;38383:4;38380:1;38373:15;38407:4;38404:1;38397:15;38423:127;38484:10;38479:3;38475:20;38472:1;38465:31;38515:4;38512:1;38505:15;38539:4;38536:1;38529:15;38555:127;38616:10;38611:3;38607:20;38604:1;38597:31;38647:4;38644:1;38637:15;38671:4;38668:1;38661:15;38687:179;38722:3;38764:1;38746:16;38743:23;38740:2;;;38810:1;38807;38804;38789:23;-1:-1:-1;38847:1:18;38841:8;38836:3;38832:18;38740:2;38730:136;:::o;38871:671::-;38910:3;38952:4;38934:16;38931:26;38928:2;;;38918:624;:::o;38928:2::-;38994;38988:9;-1:-1:-1;;39059:16:18;39055:25;;39052:1;38988:9;39031:50;39110:4;39104:11;39134:16;-1:-1:-1;;;;;39240:2:18;39233:4;39225:6;39221:17;39218:25;39213:2;39205:6;39202:14;39199:45;39196:2;;;39247:5;;;;;38918:624;:::o;39196:2::-;39284:6;39278:4;39274:17;39263:28;;39320:3;39314:10;39347:2;39339:6;39336:14;39333:2;;;39353:5;;;;;;38918:624;:::o;39333:2::-;39437;39418:16;39412:4;39408:27;39404:36;39397:4;39388:6;39383:3;39379:16;39375:27;39372:69;39369:2;;;39444:5;;;;;;38918:624;:::o;39369:2::-;39460:57;39511:4;39502:6;39494;39490:19;39486:30;39480:4;39460:57;:::i;:::-;-1:-1:-1;39533:3:18;;38918:624;-1:-1:-1;;;;;38918:624:18:o;39547:131::-;-1:-1:-1;;;;;;39621:32:18;;39611:43;;39601:2;;39668:1;39665;39658:12;39683:114;39767:4;39760:5;39756:16;39749:5;39746:27;39736:2;;39787:1;39784;39777:12

Swarm Source

ipfs://1cb4527a0fc6f60a0f0b4132f10ffe03841f4eea8233b82c81fd497efc52bb3d
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.