ETH Price: $2,514.68 (-0.40%)

Token

Genuine (GEN)
 

Overview

Max Total Supply

52 GEN

Holders

18

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
burner.0xfff.eth
Balance
1 GEN
0xfff5086e00bc92ee04826b0f5398ebbdb8ea4000
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Genuine

Compiler Version
v0.8.26+commit.8a97fa7a

Optimization Enabled:
Yes with 1 runs

Other Settings:
paris EvmVersion
File 1 of 18 : Genuine.sol
// SPDX-License-Identifier: MIT
// Compatible with OpenZeppelin Contracts ^5.0.0
pragma solidity ^0.8.26;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Royalty.sol";
import "@openzeppelin/contracts/utils/Base64.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

contract Genuine is ERC721, ERC721Enumerable, ERC721Royalty {
    address internal owner;
    uint256 internal nextTokenId;

    uint constant MINT_TO_SENDER = 0x20;
    uint constant MINT_PRICE = 6400000 gwei;
    uint constant MAX_TOKEN_ID = 0xFFF;

    uint8 constant STONE = 0;
    bytes constant STONE_PROBS = hex"0308101a263547596b7f93a7bbcfe7ff";

    uint8 constant CUT = 1;

    uint8 constant CLARITY = 2;
    bytes constant CLARITY_PROBS = hex"4c99d7f2ff";

    uint8 constant ALLOY = 3;
    bytes constant ALLOY_PROBS = hex"7fb2d7f2ff";

    uint8 constant SHIMMER = 4;
    bytes constant SHIMMER_PROBS = hex"7fd7ff";

    uint8 constant MAGIC = 5;
    bytes constant MAGIC_PROBS = hex"54a8ff";

    uint8 constant RED = 0;
    uint8 constant GREEN = 1;
    uint8 constant BLUE = 2;
    uint8 constant METALLIC = 3;
    uint8 constant ROUGHNESS = 4;
    uint8 constant TRANSMISSION = 5;

    uint8 constant SHAPE_CUT = 0;
    uint8 constant REFLECT = 1;
    uint8 constant SECTION_POSITIONS = 2; // Number of positions/vertices in one section (pre-reflections)
    uint8 constant SECTION_INDICES = 3; // Number of indices in one section (pre-reflections)
    uint8 constant POSITIONS_DIV_4 = 4; // Number of positions/vertices in the final shape (post-reflections)
    uint8 constant INDICES_DIV_3 = 5; // Number of indices in the final shape (post-reflections)
    uint8 constant POSITION_MIN_X = 6;
    uint8 constant POSITION_MIN_Y = 7;
    uint8 constant POSITION_MIN_Z = 8;
    uint8 constant POSITION_MAX_X = 9;
    uint8 constant POSITION_MAX_Y = 10;
    uint8 constant POSITION_MAX_Z = 11;
    uint8 constant HEADER_COUNT = 12;

    bytes constant ALLOWED_VIEWS = hex"1f1f050b0b0b1f";

    // Header, then section positions, then section indices
    bytes constant CLASSIC =
        hex"00051118446082be827e427e00be000042005442003c423c00425466362a2a36667e260072263058265830267200267e7e220072223058225830227200227e000c0d000d0e000e0f000f10010302010403020507020305030905030609030406040b06050807050908060a09060b0a070d0c07080d080e0d08090e090f0e090a0f0a100f0a0b10";
    bytes constant OVOID =
        hex"01051118446082bfae7e415200bf000041005e410046411e004132643b1232373c7e210078211a68213836214c0021527e1d00781d1a681d38361d4c001d52000c0d000d0e000e0f000f10010302010403020507020305030905030609030406040b06050807050908060a09060b0a070d0c07080d080e0d08090e090f0e090a0f0a100f0a0b10";
    bytes constant LEGEND =
        hex"0207131a98d0ae82d9527e27504a00027e00027e02504a02025b25383725005b250059273635273600270000275248005248023a35253a0025520002520000007e00007e02000102000203020403030405040607040705050708070908070a0900030b030c0b03050c050d0c0c0d0e0c0e0f0b0c0f0b0f1005080d08090d090e0d0b0c0f0b0f10020604021206011112011202";
    bytes constant PEAR =
        hex"03012037406ea485ba5c7b4600851e007b1e265f1e104b3e003f46443d1e1c1f4656111e38ff3e28df465cd71e34c73a1cbb4654c31e18a53e00ad4644a71e248f1e007b1a265f1a443d1a56111a5cd71a54c31a44a71a248f1a00851a00f7ba1423da2c0bda2cebda14d1da01030201040302030503040605080703060505060806090807080a08090a0a090b090c0b0a0b0d0b0c0e0b0e100c0f0e0b100d0e1110000e0f00110e040f06060f09090f0c010212021312020513051413050714071514070a150a16150a0d160d17160d1017101817101118111918110019001a19121c1b12131c131d1c13141d14151d15161d161e1d16171e17181e181f1e18191f191a1f1c1d1b1d1e1b1b1e1f1a1b1f";
    bytes constant SIGIL =
        hex"04031c2870a088b0c07850410000c000502700473300333f002f415050274d473345333f432f417828277024335e1a3f5a18417800277000335e003f5a0041000041005024505024782824780024004c1c000aca404c1c72001c0f00ca72201c010206010512010605020307020706030408030807041108050a0905131205141305060a050913050914060b0a06070b070c0b07080c08110c090a0e090d15090e0d0914130915140a0b0f0a0f0e0b0c100b100f0c111012131613140013171813001713181614151914191b141a00141b1a161817191a1b";
    bytes constant CRIT =
        hex"05010e121c249484ac6c7c5400841c007c1c6c3e1c3620540020546cc21c00c254007c186c3e186cc218008418003ed60000ac36e0d601030201040302030503060503040600050601020801080702050902090805000a050a0907080b080c0b080d0c08090d090a0d0a0c0d";
    bytes constant PILLOW =
        hex"0605151e547887aa8779577900aa000057004957003957390057497937005b4b2473373a6b376b244b5b3a377300377979330073333a6b336b3a337300337900116f3a1b6d6d1b3a6f1100010302010403020306020605030409030908030806040b0905060706080708090a090b0a0a0b0f0b100f080a0e0a0f0e07080d080e0d05070c070d0c0f11120f10110e0f120d0e130c0d130c131400141300130e000e12001211";

    uint8 constant OUTER_MIN_R = 0;
    uint8 constant OUTER_MIN_G = 1;
    uint8 constant OUTER_MIN_B = 2;
    uint8 constant OUTER_RANGE_R = 3;
    uint8 constant OUTER_RANGE_G = 4;
    uint8 constant OUTER_RANGE_B = 5;
    uint8 constant INNER_MIN_R = 6;
    uint8 constant INNER_MIN_G = 7;
    uint8 constant INNER_MIN_B = 8;
    uint8 constant INNER_RANGE_R = 9;
    uint8 constant INNER_RANGE_G = 10;
    uint8 constant INNER_RANGE_B = 11;
    uint8 constant ATTENUATION_MIN_R = 12;
    uint8 constant ATTENUATION_MIN_G = 13;
    uint8 constant ATTENUATION_MIN_B = 14;
    uint8 constant ATTENUATION_RANGE_R = 15;
    uint8 constant ATTENUATION_RANGE_G = 16;
    uint8 constant ATTENUATION_RANGE_B = 17;
    uint8 constant TEXT_R = 18;
    uint8 constant TEXT_G = 19;
    uint8 constant TEXT_B = 20;
    uint8 constant GRAD_R = 21;
    uint8 constant GRAD_G = 22;
    uint8 constant GRAD_B = 23;
    uint8 constant NUM_COLORS = 24;

    bytes constant COLORS =
        hex"63605a0202025a606302020263635a020202ffffff4040405d001408080e2e00210505072e001e050507ff0b4b342228285f3406060906312306060717145e0d07070a9e881d2d2a3260490505060c2c1c050505061f1304040433cc711d2d243238600508051014310608060c102c0507053868f21d25353c32600805052116460a090918122f0706069b8aff2321385f283e060607581a33070708400a20070707fc65bc2d1d28635054020204613c44040406635054020204ffb3d22d20265d530a080f0859500f080e0859500f080e08ffe027333022144a5e070b070b3848080a0807253006070627d3fc1f3133635d5a020202624e460305035f3928060806ffd3c0332b275d0000080d0d230202040505350303050808ba0000331f2158624605030333480b090808586246050303baed582d331c5e4414070a075d400a080c08382809060706ffb531352e235e3814070907532e0a090909382009060606f77d1933272231145e090707210c3e0707074b3c610504048f36fc2b253d";

    // 0, 10, 20, 40, 60 metallic (without, faint, subtle, strong, powerful)
    bytes constant ALLOY_TO_METALLIC = hex"000a14283c";

    // 25, 25, 20, 10, 0 roughness (standard, fine, pure, brilliant, flawless)
    bytes constant CLARITY_TO_ROUGHNESS = hex"1919140a00";

    // 95, 100, 100, 100, 100 transmission (standard, fine, pure, brilliant, flawless)
    bytes constant CLARITY_TO_TRANSMISSION = hex"5f64646464";

    // 20, 60, 100 iridescence (light, heavy, eminent)
    bytes constant SHIMMER_TO_IRIDESCENCE = hex"144664";

    // 0, 3.5, 7.0 dispersion (without, soft, hard)
    bytes constant MAGIC_TO_DISPERSION = hex"002346";

    enum Stone {
        Diamond,
        Ruby,
        Alexandrite,
        Emerald,
        Sapphire,
        Tanzanite,
        Spinel,
        Tourmaline,
        Heliodor,
        Aquamarine,
        Morganite,
        Garnet,
        Peridot,
        Topaz,
        Citrine,
        Amethyst,
        Count
    }

    enum Cut {
        Classic,
        Ovoid,
        Legend,
        Pear,
        Sigil,
        Crit,
        Pillow,
        Count
    }

    enum Clarity {
        Standard,
        Fine,
        Pure,
        Brilliant,
        Flawless,
        Count
    }

    enum Alloy {
        Without,
        Faint,
        Subtle,
        Strong,
        Powerful,
        Count
    }

    enum Shimmer {
        Light,
        Heavy,
        Eminent,
        Count
    }

    enum Magic {
        Without,
        Soft,
        Hard,
        Count
    }

    enum View {
        Front, // No rotation
        Left, // +90deg about Y
        Back, // +180deg about Y
        Right, // -90deg about Y
        Top, // +90deg about X
        Count
    }

    constructor() ERC721("Genuine", "GEN") {
        owner = msg.sender;
        for (uint i = 0x00; i < MINT_TO_SENDER; ++i) {
            _safeMint(owner, i);
        }
        nextTokenId = MINT_TO_SENDER;
        ERC2981._setDefaultRoyalty(owner, 0x200);
    }

    function mint() public payable returns (uint256) {
        require(msg.value >= MINT_PRICE, "Not enough ETH provided");
        require(nextTokenId <= MAX_TOKEN_ID, "All tokens have been minted");
        payable(owner).transfer(msg.value);
        _safeMint(msg.sender, nextTokenId);
        return nextTokenId++;
    }

    function _update(
        address to,
        uint256 tokenId,
        address auth
    ) internal override(ERC721, ERC721Enumerable) returns (address) {
        return super._update(to, tokenId, auth);
    }

    function _increaseBalance(
        address account,
        uint128 value
    ) internal override(ERC721, ERC721Enumerable) {
        super._increaseBalance(account, value);
    }

    function supportsInterface(
        bytes4 interfaceId
    )
        public
        view
        override(ERC721, ERC721Enumerable, ERC721Royalty)
        returns (bool)
    {
        return
            ERC721.supportsInterface(interfaceId) ||
            ERC721Enumerable.supportsInterface(interfaceId) ||
            ERC721Royalty.supportsInterface(interfaceId);
    }

    // 8 -> "0.08", 80 -> "0.8", 120 -> "1"
    function percentageIntToFloat(
        uint8 val
    ) internal pure returns (string memory) {
        if (val <= 0) {
            return "0";
        } else if (val < 10) {
            return string.concat("0.0", Strings.toString(val));
        } else if (val < 100) {
            return string.concat("0.", Strings.toString(val));
        } else {
            return "1";
        }
    }

    // 80 -> "8.0", 29 -> "2.9", 6 -> "0.6"
    function tenthIntToFloat(uint8 val) internal pure returns (string memory) {
        return
            string.concat(
                Strings.toString(val / 10),
                ".",
                Strings.toString(val % 10)
            );
    }

    function rgb(uint8[] memory rgbs) internal pure returns (string memory) {
        return
            string.concat(
                percentageIntToFloat(rgbs[RED]),
                ",",
                percentageIntToFloat(rgbs[GREEN]),
                ",",
                percentageIntToFloat(rgbs[BLUE])
            );
    }

    function pbr(uint8[] memory pbrs) internal pure returns (string memory) {
        return
            string.concat(
                '\\"pbrMetallicRoughness\\":{\\"baseColorFactor\\":[',
                rgb(pbrs),
                ',1],\\"metallicFactor\\":',
                percentageIntToFloat(pbrs[METALLIC]),
                ',\\"roughnessFactor\\":',
                percentageIntToFloat(pbrs[ROUGHNESS]),
                "}"
            );
    }

    function colorFromStone(
        uint8[] memory rolls,
        uint8 offset, // Outer, Inner, Attenuation
        bytes32 state,
        uint8 state_idx,
        uint8[] memory rgbs
    ) internal pure returns (bytes32, uint8) {
        uint stoneOffset = uint(NUM_COLORS) * rolls[STONE];
        uint8 adj;
        for (uint i = 0; i < 3; ++i) {
            (state, state_idx, adj) = randomUint8(state, state_idx);
            rgbs[i] =
                uint8(COLORS[stoneOffset + 6 * offset + 0 + i]) +
                (adj % uint8(COLORS[stoneOffset + 6 * offset + 3 + i]));
        }

        return (state, state_idx);
    }

    function outerMaterial(
        uint8[] memory rolls,
        bytes32 state,
        uint8 state_idx
    ) internal pure returns (bytes32, uint8, string memory) {
        uint8[] memory pbrs = new uint8[](6); // Additional entry for transmission
        uint8[] memory attenuation = new uint8[](3);

        // Use `pbrs` as a scratch space for two random vars that will additively contribute
        // to iridescence thickness. Gives a range of [200, 710].
        uint16 iridescenceThicknessMaximum = 200;
        for (uint i = 0; i < 2; i++) {
            (state, state_idx, pbrs[i]) = randomUint8(state, state_idx);
            iridescenceThicknessMaximum += pbrs[i];
        }

        (state, state_idx) = colorFromStone(
            rolls,
            0, // Outer color
            state,
            state_idx,
            pbrs
        );
        pbrs[METALLIC] = uint8(ALLOY_TO_METALLIC[rolls[ALLOY]]);
        pbrs[ROUGHNESS] = uint8(CLARITY_TO_ROUGHNESS[rolls[CLARITY]]);
        pbrs[TRANSMISSION] = uint8(CLARITY_TO_TRANSMISSION[rolls[CLARITY]]);

        (state, state_idx) = colorFromStone(
            rolls,
            2, // Attenuation color
            state,
            state_idx,
            attenuation
        );

        return (
            state,
            state_idx,
            string.concat(
                pbr(pbrs),
                ',\\"extensions\\":{\\"KHR_materials_dispersion\\":{\\"dispersion\\":',
                tenthIntToFloat(uint8(MAGIC_TO_DISPERSION[rolls[MAGIC]])),
                '},\\"KHR_materials_ior\\":{\\"ior\\":1.2},\\"KHR_materials_iridescence\\":{\\"iridescenceFactor\\":',
                percentageIntToFloat(
                    uint8(SHIMMER_TO_IRIDESCENCE[rolls[SHIMMER]])
                ),
                ',\\"iridescenceIor\\":1.6,\\"iridescenceThicknessMaximum\\":',
                Strings.toString(iridescenceThicknessMaximum),
                '},\\"KHR_materials_transmission\\":{\\"transmissionFactor\\":',
                percentageIntToFloat(pbrs[TRANSMISSION]),
                '},\\"KHR_materials_volume\\":{\\"thicknessFactor\\":128,\\"attenuationDistance\\":256,\\"attenuationColor\\":[',
                rgb(attenuation),
                "]}}"
            )
        );
    }

    function innerMaterial(
        uint8[] memory rolls,
        bytes32 state,
        uint8 state_idx
    ) internal pure returns (bytes32, uint8, string memory) {
        uint8[] memory pbrs = new uint8[](5);

        (state, state_idx) = colorFromStone(
            rolls,
            1, // Inner color
            state,
            state_idx,
            pbrs
        );
        pbrs[METALLIC] = 100;
        pbrs[ROUGHNESS] = 20;

        return (state, state_idx, pbr(pbrs));
    }

    function materials(
        uint8[] memory rolls,
        bytes32 state,
        uint8 state_idx
    ) internal pure returns (string memory) {
        string memory outer;
        string memory inner;

        (state, state_idx, outer) = outerMaterial(rolls, state, state_idx);
        (state, state_idx, inner) = innerMaterial(rolls, state, state_idx);

        return string.concat('\\"materials\\":[{', outer, "},{", inner, "}],");
    }

    function getViewParams(View v) internal pure returns (int[6] memory) {
        if (v == View.Front) {
            return [int(0), 1, 2, 1, 1, 1];
        } else if (v == View.Left) {
            return [int(2), 1, 0, 1, 1, -1];
        } else if (v == View.Back) {
            return [int(0), 1, 2, -1, 1, -1];
        } else if (v == View.Right) {
            return [int(2), 1, 0, -1, 1, 1];
        } else {
            return [int(0), 2, 1, 1, -1, 1];
        }
    }

    function dynamicView(Cut cut) internal view returns (View) {
        View[] memory views = new View[](uint(View.Count));
        uint allowed_views = uint8(ALLOWED_VIEWS[uint(cut)]);

        uint num_views = 0;
        for (uint i = 0; i < uint(View.Count); ++i) {
            if (allowed_views & (1 << i) != 0) {
                views[num_views++] = View(i);
            }
        }

        return views[block.timestamp % num_views];
    }

    function encodePositions(
        bytes memory shape
    ) internal view returns (string memory) {
        bytes memory positions = new bytes(
            uint(uint8(shape[POSITIONS_DIV_4])) * 4
        );

        uint len = uint8(shape[SECTION_POSITIONS]);
        uint sectionOffset = HEADER_COUNT;

        // Start by copying the initial shape (section positions)
        for (uint i = 0; i < len; i++) {
            for (uint j = 0; j < 3; j++) {
                positions[i * 4 + j] = shape[sectionOffset + i * 3 + j];
            }
        }

        // Reflect X, Y, Z
        for (uint8 axis = 0x01; axis <= 0x04; axis <<= 1) {
            if (uint8(shape[REFLECT]) & axis == 0) continue;

            int8[3] memory mults = [
                axis == 0x01 ? -1 : int8(1),
                axis == 0x02 ? -1 : int8(1),
                axis == 0x04 ? -1 : int8(1)
            ];

            for (uint i = 0; i < len; i++) {
                for (uint j = 0; j < 3; ++j) {
                    positions[(len + i) * 4 + j] = bytes1(
                        uint8(mults[j] * int8(uint8(positions[i * 4 + j])))
                    );
                }
            }
            len <<= 1;
        }

        // Timestamp-based view
        int[6] memory params = getViewParams(
            dynamicView(Cut(uint8(shape[SHAPE_CUT])))
        );
        for (uint i = 0; i < len; i++) {
            int8[3] memory transformed = [int8(0), 0, 0];
            for (uint j = 0; j < 3; ++j) {
                transformed[j] =
                    int8(uint8(positions[i * 4 + uint(params[j])])) *
                    int8(params[3 + j]);
            }
            for (uint j = 0; j < 3; ++j) {
                positions[i * 4 + j] = bytes1(uint8(transformed[j]));
            }
        }

        return Base64.encode(positions);
    }

    function encodeIndices(
        bytes memory shape,
        bool reverse
    ) internal pure returns (string memory) {
        bytes memory indices = new bytes(uint(uint8(shape[INDICES_DIV_3])) * 3);

        uint8 sectionPosLen = uint8(shape[SECTION_POSITIONS]);
        uint len = uint8(shape[SECTION_INDICES]);
        uint sectionOffset = HEADER_COUNT + sectionPosLen * 3;

        // Start by copying the initial indices (section indices)
        for (uint i = 0; i < len; i++) {
            for (uint j = 0; j < 3; j++) {
                indices[i * 3 + j] = shape[
                    sectionOffset + i * 3 + (reverse ? 2 - j : j)
                ];
            }
        }

        // Reflect X, Y, Z
        for (uint8 axis = 0x01; axis <= 0x04; axis <<= 1) {
            if (uint8(shape[REFLECT]) & axis == 0) continue;
            for (uint i = 0; i < len; i++) {
                for (uint j = 0; j < 3; ++j) {
                    indices[(len + i) * 3 + j] = bytes1(
                        uint8(indices[i * 3 + (2 - j)]) + sectionPosLen
                    );
                }
            }
            len <<= 1;
            sectionPosLen <<= 1;
        }

        return Base64.encode(indices);
    }

    function buffers(bytes memory shape) internal view returns (string memory) {
        return
            string.concat(
                '\\"buffers\\":[{\\"uri\\":\\"data:application/octet-stream;base64,',
                encodePositions(shape),
                '\\",\\"byteLength\\":',
                Strings.toString(uint16(4) * uint8(shape[POSITIONS_DIV_4])),
                '},{\\"uri\\":\\"data:application/octet-stream;base64,',
                encodeIndices(shape, false),
                '\\",\\"byteLength\\":',
                Strings.toString(uint16(3) * uint8(shape[INDICES_DIV_3])),
                '},{\\"uri\\":\\"data:application/octet-stream;base64,',
                encodeIndices(shape, true),
                '\\",\\"byteLength\\":',
                Strings.toString(uint16(3) * uint8(shape[INDICES_DIV_3])),
                "}],"
            );
    }

    function bufferViews(
        bytes memory shape
    ) internal pure returns (string memory) {
        return
            string.concat(
                '\\"bufferViews\\":[{\\"buffer\\":0,\\"byteOffset\\":0,\\"byteStride\\":4,\\"byteLength\\":',
                Strings.toString(uint16(4) * uint8(shape[POSITIONS_DIV_4])),
                ',\\"target\\":34962},{\\"buffer\\":1,\\"byteOffset\\":0,\\"byteLength\\":',
                Strings.toString(uint16(3) * uint8(shape[INDICES_DIV_3])),
                ',\\"target\\":34963},{\\"buffer\\":2,\\"byteOffset\\":0,\\"byteLength\\":',
                Strings.toString(uint16(3) * uint8(shape[INDICES_DIV_3])),
                ',\\"target\\":34963}],'
            );
    }

    function decTriplet(
        int8[3] memory vals
    ) internal pure returns (string memory) {
        return
            string.concat(
                Strings.toStringSigned(vals[0]),
                ",",
                Strings.toStringSigned(vals[1]),
                ",",
                Strings.toStringSigned(vals[2])
            );
    }

    function toHexString(uint8 value) internal pure returns (string memory) {
        bytes16 HEX_DIGITS = "0123456789abcdef";
        bytes memory buffer = new bytes(2);
        buffer[1] = HEX_DIGITS[value & 0xf];
        value >>= 4;
        buffer[0] = HEX_DIGITS[value & 0xf];
        return string(buffer);
    }

    function hexTriplet(
        bytes1[3] memory vals
    ) internal pure returns (string memory) {
        return
            string.concat(
                toHexString(uint8(vals[0])),
                toHexString(uint8(vals[1])),
                toHexString(uint8(vals[2]))
            );
    }

    function minsMaxs(
        bytes memory shape,
        uint unflippedIdx,
        uint flippedIdx
    ) internal view returns (string memory) {
        // Timestamp-based view
        int[6] memory params = getViewParams(
            dynamicView(Cut(uint8(shape[SHAPE_CUT])))
        );

        int8[3] memory vals = [int8(0), 0, 0];
        for (uint i = 0; i < 3; ++i) {
            vals[i] = int8(
                uint8(
                    shape[
                        (params[3 + i] > 0 ? unflippedIdx : flippedIdx) +
                            uint(params[i])
                    ]
                )
            );
            vals[i] *= params[3 + i] > 0 ? int8(1) : -1;
        }

        return decTriplet(vals);
    }

    function accessors(
        bytes memory shape
    ) internal view returns (string memory) {
        return
            string.concat(
                '\\"accessors\\":[{\\"bufferView\\":0,\\"byteOffset\\":0,\\"componentType\\":5120,\\"count\\":',
                Strings.toString(uint8(shape[POSITIONS_DIV_4])),
                ',\\"type\\":\\"VEC3\\",\\"min\\":[',
                minsMaxs(shape, POSITION_MIN_X, POSITION_MAX_X),
                '],\\"max\\":[',
                minsMaxs(shape, POSITION_MAX_X, POSITION_MIN_X),
                ']},{\\"bufferView\\":1,\\"byteOffset\\":0,\\"componentType\\":5121,\\"count\\":',
                Strings.toString(uint16(3) * uint8(shape[INDICES_DIV_3])),
                ',\\"type\\":\\"SCALAR\\",\\"min\\":[0],\\"max\\":[',
                Strings.toString(uint8(shape[POSITIONS_DIV_4]) - 1),
                ']},{\\"bufferView\\":2,\\"byteOffset\\":0,\\"componentType\\":5121,\\"count\\":',
                Strings.toString(uint16(3) * uint8(shape[INDICES_DIV_3])),
                ',\\"type\\":\\"SCALAR\\",\\"min\\":[0],\\"max\\":[',
                Strings.toString(uint8(shape[POSITIONS_DIV_4]) - 1),
                "]}]"
            );
    }

    function getShape(Cut cut) internal pure returns (bytes memory) {
        if (cut == Cut.Classic) {
            return CLASSIC;
        } else if (cut == Cut.Ovoid) {
            return OVOID;
        } else if (cut == Cut.Legend) {
            return LEGEND;
        } else if (cut == Cut.Pear) {
            return PEAR;
        } else if (cut == Cut.Sigil) {
            return SIGIL;
        } else if (cut == Cut.Crit) {
            return CRIT;
        } else {
            return PILLOW;
        }
    }

    function getModel(
        uint8[] memory rolls,
        bytes32 state,
        uint8 state_idx
    ) internal view returns (string memory) {
        bytes memory shape = getShape(Cut(rolls[CUT]));

        return
            string.concat(
                "{",
                '\\"asset\\":{\\"version\\":\\"2.0\\",\\"generator\\":\\"ofoid\\"},',
                '\\"scenes\\":[{\\"nodes\\":[0]}],',
                '\\"nodes\\":[{\\"mesh\\":0}],',
                '\\"meshes\\":[{\\"primitives\\":[{\\"attributes\\":{\\"POSITION\\":0},\\"indices\\":1,\\"material\\":0},{\\"attributes\\":{\\"POSITION\\":0},\\"indices\\":2,\\"material\\":1}]}],',
                '\\"extensionsUsed\\":[\\"KHR_materials_dispersion\\",\\"KHR_materials_ior\\",\\"KHR_materials_iridescence\\",\\"KHR_materials_transmission\\",\\"KHR_materials_volume\\",\\"KHR_mesh_quantization\\"],',
                '\\"extensionsRequired\\":[\\"KHR_mesh_quantization\\"],',
                materials(rolls, state, state_idx),
                buffers(shape),
                bufferViews(shape),
                accessors(shape),
                "}"
            );
    }

    function randomUint8(
        bytes32 state,
        uint8 idx
    ) internal pure returns (bytes32, uint8, uint8) {
        if (idx >= 32) {
            state = keccak256(abi.encodePacked(state));
            idx = 0;
        }
        return (state, idx + 1, uint8(state[idx]));
    }

    function stoneStr(
        uint8[] memory rolls
    ) internal pure returns (string memory) {
        string[16] memory stone = [
            "Diamond",
            "Ruby",
            "Alexandrite",
            "Emerald",
            "Sapphire",
            "Tanzanite",
            "Spinel",
            "Tourmaline",
            "Heliodor",
            "Aquamarine",
            "Morganite",
            "Garnet",
            "Peridot",
            "Topaz",
            "Citrine",
            "Amethyst"
        ];
        return stone[rolls[STONE]];
    }

    function cutStr(
        uint8[] memory rolls
    ) internal pure returns (string memory) {
        string[7] memory cut = [
            "Classic",
            "Ovoid",
            "Legend",
            "Pear",
            "Sigil",
            "Crit",
            "Pillow"
        ];
        return cut[rolls[CUT]];
    }

    function clarityStr(
        uint8[] memory rolls
    ) internal pure returns (string memory) {
        string[5] memory clarity = [
            "Standard",
            "Fine",
            "Pure",
            "Brilliant",
            "Flawless"
        ];
        return clarity[rolls[CLARITY]];
    }

    function alloyStr(
        uint8[] memory rolls
    ) internal pure returns (string memory) {
        string[5] memory alloy = [
            "Without",
            "Faint",
            "Subtle",
            "Strong",
            "Powerful"
        ];
        return alloy[rolls[ALLOY]];
    }

    function shimmerStr(
        uint8[] memory rolls
    ) internal pure returns (string memory) {
        string[3] memory shimmer = ["Light", "Heavy", "Eminent"];
        return shimmer[rolls[SHIMMER]];
    }

    function magicStr(
        uint8[] memory rolls
    ) internal pure returns (string memory) {
        string[3] memory magic = ["Without", "Soft", "Hard"];
        return magic[rolls[MAGIC]];
    }

    function viewStr(View v) internal pure returns (string memory) {
        string[5] memory views = ["Front", "Left", "Back", "Right", "Top"];
        return views[uint8(v)];
    }

    function svg(uint8[] memory rolls) internal pure returns (string memory) {
        return
            string.concat(
                "<svg width='1080' height='1080' xmlns='http://www.w3.org/2000/svg'><style>text{font-family:Inter,Roboto,'Helvetica Neue','Arial Nova','Nimbus Sans',Arial,system-ui,sans-serif;font-weight:bold;font-size:106px;fill:#999}</style><defs><linearGradient id='o' x1='0' x2='0' y1='0' y2='1'><stop stop-color='#0f0f0f'/><stop offset='100%' stop-color='#",
                hexTriplet(
                    [
                        COLORS[uint(NUM_COLORS) * rolls[STONE] + GRAD_R],
                        COLORS[uint(NUM_COLORS) * rolls[STONE] + GRAD_G],
                        COLORS[uint(NUM_COLORS) * rolls[STONE] + GRAD_B]
                    ]
                ),
                "'/></linearGradient></defs><rect width='1080' height='1080' fill='url(#o)'/><g transform='translate(80, 0)'><text y='160' style='font-size:60px;fill:#4d4d4d'>Genuine</text><text y='330' style='fill:#",
                hexTriplet(
                    [
                        COLORS[uint(NUM_COLORS) * rolls[STONE] + TEXT_R],
                        COLORS[uint(NUM_COLORS) * rolls[STONE] + TEXT_G],
                        COLORS[uint(NUM_COLORS) * rolls[STONE] + TEXT_B]
                    ]
                ),
                "'>",
                stoneStr(rolls),
                "</text><text y='460'>",
                cutStr(rolls),
                " cut</text><text y='590'>",
                clarityStr(rolls),
                " clarity</text><text y='720'>",
                alloyStr(rolls),
                " alloy</text><text y='850'>",
                shimmerStr(rolls),
                " shimmer</text><text y='980'>",
                magicStr(rolls),
                " magic</text></g>",
                "</svg>"
            );
    }

    function prob(bytes memory probs, uint8 val) internal pure returns (uint8) {
        for (uint i = 0; i < probs.length; i++) {
            if (val < uint8(probs[i])) {
                return uint8(i);
            }
        }
        return uint8(probs.length - 1);
    }

    function displayedTokenId(
        uint256 tokenId
    ) internal pure returns (string memory) {
        uint256 displayed = tokenId + 1;
        if (displayed < 10) {
            return string.concat("000", Strings.toString(displayed));
        } else if (displayed < 100) {
            return string.concat("00", Strings.toString(displayed));
        } else if (displayed < 1000) {
            return string.concat("0", Strings.toString(displayed));
        } else {
            return Strings.toString(displayed);
        }
    }

    function tokenURI(
        uint256 tokenId
    ) public view override returns (string memory) {
        bytes32 state = keccak256(abi.encodePacked(tokenId + 0x220));
        uint8 state_idx = 0;

        uint8[] memory rolls = new uint8[](6);

        (state, state_idx, rolls[STONE]) = randomUint8(state, state_idx);
        rolls[STONE] = prob(STONE_PROBS, rolls[STONE]);

        (state, state_idx, rolls[CUT]) = randomUint8(state, state_idx);
        rolls[CUT] %= uint8(Cut.Count);

        (state, state_idx, rolls[CLARITY]) = randomUint8(state, state_idx);
        rolls[CLARITY] = prob(CLARITY_PROBS, rolls[CLARITY]);

        (state, state_idx, rolls[ALLOY]) = randomUint8(state, state_idx);
        rolls[ALLOY] = rolls[CLARITY] <= uint8(Clarity.Fine)
            ? uint8(Alloy.Without)
            : prob(ALLOY_PROBS, rolls[ALLOY]);

        (state, state_idx, rolls[SHIMMER]) = randomUint8(state, state_idx);
        rolls[SHIMMER] = prob(SHIMMER_PROBS, rolls[SHIMMER]);

        (state, state_idx, rolls[MAGIC]) = randomUint8(state, state_idx);
        rolls[MAGIC] = prob(MAGIC_PROBS, rolls[MAGIC]);

        return
            string.concat(
                'data:application/json,{"name":"'
                "Genuine ",
                displayedTokenId(tokenId),
                '","description":"',
                "Digital facets.\\n\\nForever enduring, fully on-chain.\\n\\nInitial view: ",
                viewStr(dynamicView(Cut(rolls[CUT]))),
                '","attributes":[{"trait_type":"Stone","value":"',
                stoneStr(rolls),
                '"},{"trait_type":"Cut","value":"',
                cutStr(rolls),
                '"},{"trait_type":"Clarity","value":"',
                clarityStr(rolls),
                '"},{"trait_type":"Alloy","value":"',
                alloyStr(rolls),
                '"},{"trait_type":"Shimmer","value":"',
                shimmerStr(rolls),
                '"},{"trait_type":"Magic","value":"',
                magicStr(rolls),
                '"}],"image_data":"',
                svg(rolls),
                '","animation_url":"data:model/gltf+json,',
                getModel(rolls, state, state_idx),
                '"}'
            );
    }
}

File 2 of 18 : draft-IERC6093.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}

File 3 of 18 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.20;

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

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(
        uint256 tokenId,
        uint256 salePrice
    ) external view returns (address receiver, uint256 royaltyAmount);
}

File 4 of 18 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.20;

import {IERC2981} from "../../interfaces/IERC2981.sol";
import {IERC165, ERC165} from "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 tokenId => RoyaltyInfo) private _tokenRoyaltyInfo;

    /**
     * @dev The default royalty set is invalid (eg. (numerator / denominator) >= 1).
     */
    error ERC2981InvalidDefaultRoyalty(uint256 numerator, uint256 denominator);

    /**
     * @dev The default royalty receiver is invalid.
     */
    error ERC2981InvalidDefaultRoyaltyReceiver(address receiver);

    /**
     * @dev The royalty set for an specific `tokenId` is invalid (eg. (numerator / denominator) >= 1).
     */
    error ERC2981InvalidTokenRoyalty(uint256 tokenId, uint256 numerator, uint256 denominator);

    /**
     * @dev The royalty receiver for `tokenId` is invalid.
     */
    error ERC2981InvalidTokenRoyaltyReceiver(uint256 tokenId, address receiver);

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice) public view virtual returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        uint256 denominator = _feeDenominator();
        if (feeNumerator > denominator) {
            // Royalty fee will exceed the sale price
            revert ERC2981InvalidDefaultRoyalty(feeNumerator, denominator);
        }
        if (receiver == address(0)) {
            revert ERC2981InvalidDefaultRoyaltyReceiver(address(0));
        }

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual {
        uint256 denominator = _feeDenominator();
        if (feeNumerator > denominator) {
            // Royalty fee will exceed the sale price
            revert ERC2981InvalidTokenRoyalty(tokenId, feeNumerator, denominator);
        }
        if (receiver == address(0)) {
            revert ERC2981InvalidTokenRoyaltyReceiver(tokenId, address(0));
        }

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 5 of 18 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.20;

import {IERC721} from "./IERC721.sol";
import {IERC721Receiver} from "./IERC721Receiver.sol";
import {IERC721Metadata} from "./extensions/IERC721Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {Strings} from "../../utils/Strings.sol";
import {IERC165, ERC165} from "../../utils/introspection/ERC165.sol";
import {IERC721Errors} from "../../interfaces/draft-IERC6093.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Errors {
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    mapping(uint256 tokenId => address) private _owners;

    mapping(address owner => uint256) private _balances;

    mapping(uint256 tokenId => address) private _tokenApprovals;

    mapping(address owner => mapping(address operator => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual returns (uint256) {
        if (owner == address(0)) {
            revert ERC721InvalidOwner(address(0));
        }
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual returns (address) {
        return _requireOwned(tokenId);
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual returns (string memory) {
        _requireOwned(tokenId);

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string.concat(baseURI, tokenId.toString()) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual {
        _approve(to, tokenId, _msgSender());
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual returns (address) {
        _requireOwned(tokenId);

        return _getApproved(tokenId);
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(address from, address to, uint256 tokenId) public virtual {
        if (to == address(0)) {
            revert ERC721InvalidReceiver(address(0));
        }
        // Setting an "auth" arguments enables the `_isAuthorized` check which verifies that the token exists
        // (from != 0). Therefore, it is not needed to verify that the return value is not 0 here.
        address previousOwner = _update(to, tokenId, _msgSender());
        if (previousOwner != from) {
            revert ERC721IncorrectOwner(from, tokenId, previousOwner);
        }
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) public {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual {
        transferFrom(from, to, tokenId);
        _checkOnERC721Received(from, to, tokenId, data);
    }

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     *
     * IMPORTANT: Any overrides to this function that add ownership of tokens not tracked by the
     * core ERC721 logic MUST be matched with the use of {_increaseBalance} to keep balances
     * consistent with ownership. The invariant to preserve is that for any address `a` the value returned by
     * `balanceOf(a)` must be equal to the number of tokens such that `_ownerOf(tokenId)` is `a`.
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @dev Returns the approved address for `tokenId`. Returns 0 if `tokenId` is not minted.
     */
    function _getApproved(uint256 tokenId) internal view virtual returns (address) {
        return _tokenApprovals[tokenId];
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `owner`'s tokens, or `tokenId` in
     * particular (ignoring whether it is owned by `owner`).
     *
     * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this
     * assumption.
     */
    function _isAuthorized(address owner, address spender, uint256 tokenId) internal view virtual returns (bool) {
        return
            spender != address(0) &&
            (owner == spender || isApprovedForAll(owner, spender) || _getApproved(tokenId) == spender);
    }

    /**
     * @dev Checks if `spender` can operate on `tokenId`, assuming the provided `owner` is the actual owner.
     * Reverts if `spender` does not have approval from the provided `owner` for the given token or for all its assets
     * the `spender` for the specific `tokenId`.
     *
     * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this
     * assumption.
     */
    function _checkAuthorized(address owner, address spender, uint256 tokenId) internal view virtual {
        if (!_isAuthorized(owner, spender, tokenId)) {
            if (owner == address(0)) {
                revert ERC721NonexistentToken(tokenId);
            } else {
                revert ERC721InsufficientApproval(spender, tokenId);
            }
        }
    }

    /**
     * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override.
     *
     * NOTE: the value is limited to type(uint128).max. This protect against _balance overflow. It is unrealistic that
     * a uint256 would ever overflow from increments when these increments are bounded to uint128 values.
     *
     * WARNING: Increasing an account's balance using this function tends to be paired with an override of the
     * {_ownerOf} function to resolve the ownership of the corresponding tokens so that balances and ownership
     * remain consistent with one another.
     */
    function _increaseBalance(address account, uint128 value) internal virtual {
        unchecked {
            _balances[account] += value;
        }
    }

    /**
     * @dev Transfers `tokenId` from its current owner to `to`, or alternatively mints (or burns) if the current owner
     * (or `to`) is the zero address. Returns the owner of the `tokenId` before the update.
     *
     * The `auth` argument is optional. If the value passed is non 0, then this function will check that
     * `auth` is either the owner of the token, or approved to operate on the token (by the owner).
     *
     * Emits a {Transfer} event.
     *
     * NOTE: If overriding this function in a way that tracks balances, see also {_increaseBalance}.
     */
    function _update(address to, uint256 tokenId, address auth) internal virtual returns (address) {
        address from = _ownerOf(tokenId);

        // Perform (optional) operator check
        if (auth != address(0)) {
            _checkAuthorized(from, auth, tokenId);
        }

        // Execute the update
        if (from != address(0)) {
            // Clear approval. No need to re-authorize or emit the Approval event
            _approve(address(0), tokenId, address(0), false);

            unchecked {
                _balances[from] -= 1;
            }
        }

        if (to != address(0)) {
            unchecked {
                _balances[to] += 1;
            }
        }

        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        return from;
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal {
        if (to == address(0)) {
            revert ERC721InvalidReceiver(address(0));
        }
        address previousOwner = _update(to, tokenId, address(0));
        if (previousOwner != address(0)) {
            revert ERC721InvalidSender(address(0));
        }
    }

    /**
     * @dev Mints `tokenId`, transfers it to `to` and checks for `to` acceptance.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(address to, uint256 tokenId, bytes memory data) internal virtual {
        _mint(to, tokenId);
        _checkOnERC721Received(address(0), to, tokenId, data);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal {
        address previousOwner = _update(address(0), tokenId, address(0));
        if (previousOwner == address(0)) {
            revert ERC721NonexistentToken(tokenId);
        }
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(address from, address to, uint256 tokenId) internal {
        if (to == address(0)) {
            revert ERC721InvalidReceiver(address(0));
        }
        address previousOwner = _update(to, tokenId, address(0));
        if (previousOwner == address(0)) {
            revert ERC721NonexistentToken(tokenId);
        } else if (previousOwner != from) {
            revert ERC721IncorrectOwner(from, tokenId, previousOwner);
        }
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking that contract recipients
     * are aware of the ERC721 standard to prevent tokens from being forever locked.
     *
     * `data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is like {safeTransferFrom} in the sense that it invokes
     * {IERC721Receiver-onERC721Received} on the receiver, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `tokenId` token must exist and be owned by `from`.
     * - `to` cannot be the zero address.
     * - `from` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(address from, address to, uint256 tokenId) internal {
        _safeTransfer(from, to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeTransfer-address-address-uint256-}[`_safeTransfer`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual {
        _transfer(from, to, tokenId);
        _checkOnERC721Received(from, to, tokenId, data);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * The `auth` argument is optional. If the value passed is non 0, then this function will check that `auth` is
     * either the owner of the token, or approved to operate on all tokens held by this owner.
     *
     * Emits an {Approval} event.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address to, uint256 tokenId, address auth) internal {
        _approve(to, tokenId, auth, true);
    }

    /**
     * @dev Variant of `_approve` with an optional flag to enable or disable the {Approval} event. The event is not
     * emitted in the context of transfers.
     */
    function _approve(address to, uint256 tokenId, address auth, bool emitEvent) internal virtual {
        // Avoid reading the owner unless necessary
        if (emitEvent || auth != address(0)) {
            address owner = _requireOwned(tokenId);

            // We do not use _isAuthorized because single-token approvals should not be able to call approve
            if (auth != address(0) && owner != auth && !isApprovedForAll(owner, auth)) {
                revert ERC721InvalidApprover(auth);
            }

            if (emitEvent) {
                emit Approval(owner, to, tokenId);
            }
        }

        _tokenApprovals[tokenId] = to;
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Requirements:
     * - operator can't be the address zero.
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(address owner, address operator, bool approved) internal virtual {
        if (operator == address(0)) {
            revert ERC721InvalidOperator(operator);
        }
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` doesn't have a current owner (it hasn't been minted, or it has been burned).
     * Returns the owner.
     *
     * Overrides to ownership logic should be done to {_ownerOf}.
     */
    function _requireOwned(uint256 tokenId) internal view returns (address) {
        address owner = _ownerOf(tokenId);
        if (owner == address(0)) {
            revert ERC721NonexistentToken(tokenId);
        }
        return owner;
    }

    /**
     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target address. This will revert if the
     * recipient doesn't accept the token transfer. The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param data bytes optional data to send along with the call
     */
    function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory data) private {
        if (to.code.length > 0) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
                if (retval != IERC721Receiver.onERC721Received.selector) {
                    revert ERC721InvalidReceiver(to);
                }
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert ERC721InvalidReceiver(to);
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        }
    }
}

File 6 of 18 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.20;

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

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds enumerability
 * of all the token ids in the contract as well as all token ids owned by each account.
 *
 * CAUTION: `ERC721` extensions that implement custom `balanceOf` logic, such as `ERC721Consecutive`,
 * interfere with enumerability and should not be used together with `ERC721Enumerable`.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    mapping(address owner => mapping(uint256 index => uint256)) private _ownedTokens;
    mapping(uint256 tokenId => uint256) private _ownedTokensIndex;

    uint256[] private _allTokens;
    mapping(uint256 tokenId => uint256) private _allTokensIndex;

    /**
     * @dev An `owner`'s token query was out of bounds for `index`.
     *
     * NOTE: The owner being `address(0)` indicates a global out of bounds index.
     */
    error ERC721OutOfBoundsIndex(address owner, uint256 index);

    /**
     * @dev Batch mint is not allowed.
     */
    error ERC721EnumerableForbiddenBatchMint();

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual returns (uint256) {
        if (index >= balanceOf(owner)) {
            revert ERC721OutOfBoundsIndex(owner, index);
        }
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual returns (uint256) {
        if (index >= totalSupply()) {
            revert ERC721OutOfBoundsIndex(address(0), index);
        }
        return _allTokens[index];
    }

    /**
     * @dev See {ERC721-_update}.
     */
    function _update(address to, uint256 tokenId, address auth) internal virtual override returns (address) {
        address previousOwner = super._update(to, tokenId, auth);

        if (previousOwner == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (previousOwner != to) {
            _removeTokenFromOwnerEnumeration(previousOwner, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (previousOwner != to) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }

        return previousOwner;
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = balanceOf(to) - 1;
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = balanceOf(from);
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }

    /**
     * See {ERC721-_increaseBalance}. We need that to account tokens that were minted in batch
     */
    function _increaseBalance(address account, uint128 amount) internal virtual override {
        if (amount > 0) {
            revert ERC721EnumerableForbiddenBatchMint();
        }
        super._increaseBalance(account, amount);
    }
}

File 7 of 18 : ERC721Royalty.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/ERC721Royalty.sol)

pragma solidity ^0.8.20;

import {ERC721} from "../ERC721.sol";
import {ERC2981} from "../../common/ERC2981.sol";

/**
 * @dev Extension of ERC721 with the ERC2981 NFT Royalty Standard, a standardized way to retrieve royalty payment
 * information.
 *
 * Royalty information can be specified globally for all token ids via {ERC2981-_setDefaultRoyalty}, and/or individually
 * for specific token ids via {ERC2981-_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 */
abstract contract ERC721Royalty is ERC2981, ERC721 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC2981) returns (bool) {
        return super.supportsInterface(interfaceId);
    }
}

File 8 of 18 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.20;

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

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 9 of 18 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.20;

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

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 10 of 18 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../../utils/introspection/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`.
     *
     * 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;

    /**
     * @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 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    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 Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the address zero.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved) external;

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

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

File 11 of 18 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.20;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be
     * reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 12 of 18 : Base64.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.2) (utils/Base64.sol)

pragma solidity ^0.8.20;

/**
 * @dev Provides a set of functions to operate with Base64 strings.
 */
library Base64 {
    /**
     * @dev Base64 Encoding/Decoding Table
     */
    string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /**
     * @dev Converts a `bytes` to its Bytes64 `string` representation.
     */
    function encode(bytes memory data) internal pure returns (string memory) {
        /**
         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
         */
        if (data.length == 0) return "";

        // Loads the table into memory
        string memory table = _TABLE;

        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
        // and split into 4 numbers of 6 bits.
        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
        // - `data.length + 2`  -> Round up
        // - `/ 3`              -> Number of 3-bytes chunks
        // - `4 *`              -> 4 characters for each chunk
        string memory result = new string(4 * ((data.length + 2) / 3));

        /// @solidity memory-safe-assembly
        assembly {
            // Prepare the lookup table (skip the first "length" byte)
            let tablePtr := add(table, 1)

            // Prepare result pointer, jump over length
            let resultPtr := add(result, 0x20)
            let dataPtr := data
            let endPtr := add(data, mload(data))

            // In some cases, the last iteration will read bytes after the end of the data. We cache the value, and
            // set it to zero to make sure no dirty bytes are read in that section.
            let afterPtr := add(endPtr, 0x20)
            let afterCache := mload(afterPtr)
            mstore(afterPtr, 0x00)

            // Run over the input, 3 bytes at a time
            for {

            } lt(dataPtr, endPtr) {

            } {
                // Advance 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // To write each character, shift the 3 byte (24 bits) chunk
                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
                // and apply logical AND with 0x3F to bitmask the least significant 6 bits.
                // Use this as an index into the lookup table, mload an entire word
                // so the desired character is in the least significant byte, and
                // mstore8 this least significant byte into the result and continue.

                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance
            }

            // Reset the value that was cached
            mstore(afterPtr, afterCache)

            // When data `bytes` is not exactly 3 bytes long
            // it is padded with `=` characters at the end
            switch mod(mload(data), 3)
            case 1 {
                mstore8(sub(resultPtr, 1), 0x3d)
                mstore8(sub(resultPtr, 2), 0x3d)
            }
            case 2 {
                mstore8(sub(resultPtr, 1), 0x3d)
            }
        }

        return result;
    }
}

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

pragma solidity ^0.8.20;

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

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

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

File 14 of 18 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol)

pragma solidity ^0.8.20;

import {IERC165} from "./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);
 * }
 * ```
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 15 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @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 16 of 18 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Muldiv operation overflow.
     */
    error MathOverflowedMulDiv();

    enum Rounding {
        Floor, // Toward negative infinity
        Ceil, // Toward positive infinity
        Trunc, // Toward zero
        Expand // Away from zero
    }

    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

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

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

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

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds towards infinity instead
     * of rounding towards zero.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        if (b == 0) {
            // Guarantee the same behavior as in a regular Solidity division.
            return a / b;
        }

        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

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

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

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            if (denominator <= prod1) {
                revert MathOverflowedMulDiv();
            }

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

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

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

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

            uint256 twos = denominator & (0 - denominator);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
     */
    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
        return uint8(rounding) % 2 == 1;
    }
}

File 17 of 18 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.20;

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

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

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

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

File 18 of 18 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)

pragma solidity ^0.8.20;

import {Math} from "./math/Math.sol";
import {SignedMath} from "./math/SignedMath.sol";

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

    /**
     * @dev The `value` string doesn't fit in the specified `length`.
     */
    error StringsInsufficientHexLength(uint256 value, uint256 length);

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

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

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

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

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

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1
  },
  "viaIR": true,
  "evmVersion": "paris",
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"ERC2981InvalidDefaultRoyalty","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC2981InvalidDefaultRoyaltyReceiver","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"ERC2981InvalidTokenRoyalty","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC2981InvalidTokenRoyaltyReceiver","type":"error"},{"inputs":[],"name":"ERC721EnumerableForbiddenBatchMint","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721IncorrectOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721InsufficientApproval","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC721InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC721InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721InvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC721InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC721InvalidSender","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721NonexistentToken","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"ERC721OutOfBoundsIndex","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234610755576040805190610018818361075a565b600782526647656e75696e6560c81b6020830152805190610039818361075a565b600382526223a2a760e91b602083015282516001600160401b03811161018957600254600181811c9116801561074b575b602082101461065457601f81116106e6575b506020601f821160011461067f5781929394600092610674575b50508160011b916000199060031b1c1916176002555b81516001600160401b03811161018957600354600181811c9116801561066a575b602082101461065457601f81116105ef575b50602092601f821160011461058a579281929360009261057f575b50508160011b916000199060031b1c1916176003555b600c80546001600160a01b0319163317905560005b602081106101b557506020600d55600c546001600160a01b0316801561019f5781518083016001600160401b038111828210176101895783528181526102006020909101526001600160a01b0316600160a91b176000555161582e90816107b48239f35b634e487b7160e01b600052604160045260246000fd5b635b6cc80560e11b600052600060045260246000fd5b600c5482516020916001600160a01b03166101d0838361075a565b60008252801561056957600084815260048452859020546001600160a01b031691821580159081610538575b600084815260058752888120805460010190558781526004875288812080546001600160a01b031916861790558790859087907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9080a4156104a657600a5486600052600b8652808860002055680100000000000000008110156101895760018101600a556000600a5482101561049257908682600a8a94522001555b8260009403610445575b61043157813b6102ba575b50505050600101610125565b83869395929496518092630a85bd0160e11b82523360048301528760248301528460448301526080606483015280519081608484015283895b8381106104195750505081818960a4809484010152601f8019910116810103018188885af18591816103d5575b506103995750503d15610391573d6001600160401b03811161037d57905190610352601f8201601f191686018361075a565b81523d838583013e5b8051938461037757633250574960e11b84526004839052602484fd5b84925001fd5b634e487b7160e01b84526041600452602484fd5b50606061035b565b9194509291906001600160e01b03191663757a42ff60e11b016103c257505060013880806102ae565b633250574960e11b825260045260249150fd5b9091508681813d8311610412575b6103ed818361075a565b8101031261040e57516001600160e01b03198116810361040e579038610320565b8580fd5b503d6103e3565b82810182015187820160a401528694508591016102f3565b6339e3563760e11b83526004839052602483fd5b61044e8361077d565b600019810190811161047e57838552600886528785208186528652868886205586855260098652878520556102a3565b634e487b7160e01b85526011600452602485fd5b634e487b7160e01b81526032600452602490fd5b838314610299576104b68461077d565b866000526009865287600020548181036104f7575b508660005260098652600088812055846000526008865287600020906000528552600087812055610299565b8560005260088752886000208260005287528860002054866000526008885289600020826000528852808a60002055600052600987528860002055386104cb565b60008781526006875288812080546001600160a01b03191690558581526005875288902080546000190190556101fc565b633250574960e11b600052600060045260246000fd5b0151905038806100fa565b601f198216936003600052806000209160005b8681106105d757508360019596106105be575b505050811b01600355610110565b015160001960f88460031b161c191690553880806105b0565b9192602060018192868501518155019401920161059d565b60036000527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b601f830160051c8101916020841061064a575b601f0160051c01905b81811061063e57506100df565b60008155600101610631565b9091508190610628565b634e487b7160e01b600052602260045260246000fd5b90607f16906100cd565b015190503880610096565b601f198216906002600052806000209160005b8181106106ce575095836001959697106106b5575b505050811b016002556100ac565b015160001960f88460031b161c191690553880806106a7565b9192602060018192868b015181550194019201610692565b60026000527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace601f830160051c81019160208410610741575b601f0160051c01905b818110610735575061007c565b60008155600101610728565b909150819061071f565b90607f169061006a565b600080fd5b601f909101601f19168101906001600160401b0382119082101761018957604052565b6001600160a01b0316801561079d57600052600560205260406000205490565b6322718ad960e21b600052600060045260246000fdfe6101c080604052600436101561001457600080fd5b600090813560e01c90816301ffc9a7146134735750806306fdde03146133b6578063081812fc14613379578063095ea7b3146132915780631249c58b14612e8757806318160ddd14612e6957806323b872dd14612e515780632a55205a14612d985780632f745c5914612d2057806342842e0e14612cf05780634f6ccce714612ca05780636352211e14612c6f57806370a0823114612c4357806395d89b4114612b36578063a22cb46514612a94578063b88d4fde146129f6578063c87b56dd146101445763e985e9c5146100e857600080fd5b34610141576040366003190112610141576040610103613526565b9161010c613541565b9260018060a01b031681526007602052209060018060a01b0316600052602052602060ff604060002054166040519015158152f35b80fd5b50346101415760203660031901126101415760043561022081018082116129e257604051602081019182526020815261017e604082613613565b519020906040519061019160e083613613565b6006825260c09283366020850137600160ff8616019060ff82116124f8576102aa61025c61022f61032a946102de946103839a508060001a6101d28a613988565b5260406101a0819052805161021b916101eb9082613613565b601081526f0308101a263547596b7f93a7bbcfe7ff60801b602082015260ff6102138c613988565b511690613d34565b60ff6102268b613988565b91169052613c80565b60ff61023d8a949394613995565b91169052600760ff61024e8a613995565b51160660ff6102268a613995565b60ff61026a899493946139a5565b911690526101a051805161029f916102829082613613565b60058152644c99d7f2ff60d81b602082015260ff6102138a6139a5565b60ff610226896139a5565b60ff6102b8889493946139b5565b91169052600160ff6102c9886139a5565b5116116129ab5760005b60ff610226886139b5565b60ff6102ec879493946139c5565b911690526101a051805161031f916103049082613613565b60038152627fd7ff60e81b602082015260ff610213886139c5565b60ff610226876139c5565b60ff61033b869894989593956139d5565b9116905261036f6101a051516103546101a05182613613565b600381526254a8ff60e81b602082015260ff610213876139d5565b60ff61037a866139d5565b91169052613d7e565b60e05261048e6103a66103a160ff61039a86613995565b5116613a41565b613e52565b60ff6101a05151916103b783613591565b6101a051516103c96101a05182613613565b6005815264119c9bdb9d60da1b602082015283526101a0518051906103ee9082613613565b60048152631319599d60e21b602082015260208401526101a051516104166101a05182613613565b60048152634261636b60e01b60208201526101a0518401526101a051516104406101a05182613613565b6005815264149a59da1d60da1b602082015260608401526101a051516104696101a05182613613565b60038152620546f760ec1b6020820152608084015261048781613a21565b1690613f19565b519061049983613f2a565b926104a3816141c9565b956104ad826142fc565b956104b7836143fd565b926104c1816144c5565b946104cb82614551565b6080526101a051516104dc816135c2565b6104e46145bb565b6104f960ff6104f286613988565b5116613903565b601581018091116112db576001600160f81b0319916105189190613d23565b511681526105246145bb565b61053260ff6104f286613988565b601681018091116112db576001600160f81b0319916105519190613d23565b511660208201526105606145bb565b9061056f60ff6104f286613988565b91601783018093116112db5761058d61059b9360ff60f81b92613d23565b51166101a051820152614939565b6101a051516105a9816135c2565b6105b16145bb565b6105bf60ff6104f287613988565b601281018091116112db576001600160f81b0319916105de9190613d23565b511681526105ea6145bb565b6105f860ff6104f287613988565b601381018091116112db576001600160f81b0319916106179190613d23565b511660208201526106266145bb565b9061063560ff6104f287613988565b91601483018093116112db57610b0793601d8760196106638396601b9661058d60179a60ff60f81b92613d23565b601561066e84613f2a565b6002610679866141c9565b60c7610684886142fc565b936101786106918a6143fd565b976106a461069e8c6144c5565b9b614551565b9c6101a0515160a0527f3c7376672077696474683d273130383027206865696768743d27313038302720602060a05101527f786d6c6e733d27687474703a2f2f7777772e77332e6f72672f323030302f73766101a05160a05101527f67273e3c7374796c653e746578747b666f6e742d66616d696c793a496e746572606060a05101527f2c526f626f746f2c2748656c766574696361204e657565272c27417269616c20608060a05101527f4e6f7661272c274e696d6275732053616e73272c417269616c2c73797374656d60a0805101527f2d75692c73616e732d73657269663b666f6e742d7765696768743a626f6c643b60c060a05101527f666f6e742d73697a653a31303670783b66696c6c3a233939397d3c2f7374796c60e060a05101527f653e3c646566733e3c6c696e6561724772616469656e742069643d276f27207861010060a05101527f313d2730272078323d2730272079313d2730272079323d2731273e3c73746f7061012060a05101527f2073746f702d636f6c6f723d2723306630663066272f3e3c73746f70206f666661014060a0510152777365743d2731303025272073746f702d636f6c6f723d272360401b61016060a051015261087a8151809260208660a0510191016134de565b60a051017f272f3e3c2f6c696e6561724772616469656e743e3c2f646566733e3c72656374838201527f2077696474683d273130383027206865696768743d2731303830272066696c6c6101988201527f3d2775726c28236f29272f3e3c67207472616e73666f726d3d277472616e736c6101b88201527f6174652838302c203029273e3c7465787420793d2731363027207374796c653d6101d88201527f27666f6e742d73697a653a363070783b66696c6c3a23346434643464273e47656101f88201527f6e75696e653c2f746578743e3c7465787420793d2733333027207374796c653d610218820152662766696c6c3a2360c81b61023882015261098c82518093602061023f850191016134de565b010161139f60f11b838201526109ac82518093602060c9850191016134de565b0101741e17ba32bc3a1f1e3a32bc3a103c9e939a1b18139f60591b838201526109df825180938f602090850191016134de565b0101781031baba1e17ba32bc3a1f1e3a32bc3a103c9e939a9c98139f60391b83820152610a16825180936020602e850191016134de565b01017f20636c61726974793c2f746578743e3c7465787420793d27373230273e00000083820152610a518251809360206036850191016134de565b01017a1030b63637bc9e17ba32bc3a1f1e3a32bc3a103c9e939c1a98139f60291b83820152610a8a8251809360206038850191016134de565b01017f207368696d6d65723c2f746578743e3c7465787420793d27393830273e00000083820152610ac58251809360206038850191016134de565b0101701036b0b3b4b19e17ba32bc3a1f1e17b39f60791b82820152651e17b9bb339f60d11b602e82015260a051900301600819810160a051520160a051613613565b610b1d610b1860ff61039a85613995565b6149b8565b610180526101a0515192610b3260e085613613565b600684523660208501376101a05151610b4c608082613613565b60038152606036602083013760c89160005b6002811061296757506000610b7760ff6104f287613988565b90805b600382106128e057505050610bbe6101a05151610b9a6101a05182613613565b600581526302850a0f60da1b602082015260ff610bb6876139b5565b511690613d23565b5160f81c610bcb866139b5565b52610bfd6101a05151610be16101a05182613613565b60058152630c8c8a0560e11b602082015260ff610bb6876139a5565b5160f81c610c0a866139c5565b52610c3d6101a05151610c206101a05182613613565b600581526417d919191960da1b602082015260ff610bb6876139a5565b5160f81c610c4a866139d5565b5294936000610c5d60ff6104f287613988565b6000915b6003831061285757505050610c758161518e565b926101a051516101a051610c899082613613565b600381526111a360e91b6020820152610ca1866139d5565b5160ff16610cae91613d23565b5160f81c610cc160ff600a8304166147ef565b90600a900660ff16610cd2906147ef565b906101a0515191818392519081602085019160200191610cf1926134de565b820160208101601760f91b905281519182602183019160200191610d14926134de565b0160200103600101601f1981018252610d2d9082613613565b6101a051516101a051610d409082613613565b600381526205119960ea1b6020820152610d59876139c5565b5160ff16610d6691613d23565b5160f81c610d739061529e565b9161ffff16610d81906147ef565b92610d8b906139d5565b5160ff16610d989061529e565b93610da2906153cf565b946101a051516101605280519081610160516020019160200191610dc5926134de565b6101605101602081017f2c5c22657874656e73696f6e735c223a7b5c224b48525f6d6174657269616c7390526101a05181017f5f64697370657273696f6e5c223a7b5c2264697370657273696f6e5c223a0000905281519182605e83019160200191610e30926134de565b01602001603e81017f7d2c5c224b48525f6d6174657269616c735f696f725c223a7b5c22696f725c229052605e81017f3a312e327d2c5c224b48525f6d6174657269616c735f69726964657363656e6390527a32ae111d3dae1134b934b232b9b1b2b731b2a330b1ba37b92e111d60291b607e82015281519182609983019160200191610ebc926134de565b01603e01605b81017f2c5c2269726964657363656e6365496f725c223a312e362c5c2269726964657390527731b2b731b2aa3434b1b5b732b9b9a6b0bc34b6bab6ae111d60411b607b82015281519182609383019160200191610f1e926134de565b01605b01603881017f7d2c5c224b48525f6d6174657269616c735f7472616e736d697373696f6e5c229052781d3dae113a3930b739b6b4b9b9b4b7b72330b1ba37b92e111d60391b605882015281519182607183019160200191610f81926134de565b01603801603981017f7d2c5c224b48525f6d6174657269616c735f766f6c756d655c223a7b5c2274689052605981017f69636b6e657373466163746f725c223a3132382c5c22617474656e756174696f9052607981017f6e44697374616e63655c223a3235362c5c22617474656e756174696f6e436f6c9052656f725c223a5b60d01b609982015281519182609f8301916020019161101f926134de565b0160390160668101625d7d7d60e81b9052610160519003606601601c1981016101605152600301610160519061105491613613565b6101a051519261106560c085613613565b6005845260a0366020860137919060009061107f90613988565b5160ff1661108c90613903565b6000915b600383106127a75750505060036110ca6030969594611141948394505060646110b8826139b5565b5260146110c4826139c5565b5261518e565b6101a051519687916f5c226d6174657269616c735c223a5b7b60801b6020840152610160515161110381848601602061016051016134de565b8301627d2c7b60e81b838201526111248251809360206033850191016134de565b0101621f574b60ea1b838201520301601c19810186520184613613565b61114d61018051613cd3565b516103fc808260f81c9260f61c161690808204600414901517156112db57611174906147bd565b6101005261118461018051613ce3565b5160f81c6101405260005b610140518110612738575060015b60ff81166004811161130f5760ff826111b861018051613cf3565b5160f81c1616156113065760046101a05151916111d4836135c2565b600181036112ff576000195b60000b8352600281036112f8576000195b60000b6020840152036112f1576000195b60000b6101a05182015260005b61014051811061123357505060fe906101405160011b610140525b60011b1661119d565b60005b60038110611247575060010161120f565b61125181846144b4565b5160000b8260021b90838204600414841517156112db576112919061128761127e8560ff60f81b9561397b565b61010051613d23565b5160f81d9061513d565b60f81b16906112a3836101405161397b565b918260021b92808404600414901517156112db576112d46112c68360019561397b565b9160001a9161010051613d23565b5301611236565b634e487b7160e01b600052601160045260246000fd5b6001611202565b60016111f1565b60016111e0565b5060fe9061122a565b505085876113366113316103a161132861018051613988565b5160f81c613a41565b6153fd565b60005b61014051811061264f57505061135161010051615567565b60c05261137861ffff61137261136961018051613cd3565b5160f81c614ff9565b166147ef565b600061138661018051613d03565b5160f81c8060038102046003148115171561250c5760036113a791026147bd565b906113b461018051613ce3565b5160f81c6113c461018051613d13565b5160f81c9060ff6113dc6113d783615165565b613c5b565b16835b8381106125f0575050906001905b600460ff83161115612520575050505061140690615567565b61142461ffff61137261141b61018051613d03565b5160f81c615010565b600061143261018051613d03565b5160f81c8060038102046003148115171561250c57600361145391026147bd565b9061146061018051613ce3565b5160f81c61147061018051613d13565b5160f81c9060ff6114836113d783615165565b16835b83811061248a575050906001905b600460ff8316111561238257505050509260206003936115ce61158f60128096856114c16116219b615567565b9561159c61158f85605d6114e061ffff61137261141b61018051613d03565b9c6101a05151610120527f5c22627566666572735c223a5b7b5c227572695c223a5c22646174613a617070876101205101527f6c69636174696f6e2f6f637465742d73747265616d3b6261736536342c0000006101a05161012051015260c05151611555818461012051018a60c051016134de565b6101205101712e11162e11313cba32a632b733ba342e111d60711b83820152611587825180938a606f850191016134de565b010101615026565b91828151948592016134de565b01712e11162e11313cba32a632b733ba342e111d60711b81526115c7825180938986850191016134de565b0101615026565b01712e11162e11313cba32a632b733ba342e111d60711b81526115fa82518093602086850191016134de565b01621f574b60ea1b8282015261012051900301601c19810161012051520161012051613613565b61163661ffff61137261136961018051613cd3565b946117ce6014604161165361ffff61137261141b61018051613d03565b988161166a61ffff61137261141b61018051613d03565b60706101a051519c8d947f5c2262756666657256696577735c223a5b7b5c226275666665725c223a302c5c60208701527f22627974654f66667365745c223a302c5c22627974655374726964655c223a346101a0518701526f162e11313cba32a632b733ba342e111d60811b60608701526116ee815180926020868a0191016134de565b85017f2c5c227461726765745c223a33343936327d2c7b5c226275666665725c223a31838201526000805160206157998339815191526090820152601d60f91b60b082015261174782518093602060b1850191016134de565b01017f2c5c227461726765745c223a33343936337d2c7b5c226275666665725c223a32838201526000805160206157998339815191526061820152601d60f91b60818201526117a08251809360206082850191016134de565b0101730b17089d185c99d95d17088e8ccd0e4d8cdf574b60621b838201520301600b19810189520187613613565b6117e66117dd61018051613cd3565b5160f81c6147ef565b60006117fd6113316103a161132861018051613988565b6101a051519061180c826135c2565b828252826020830152826101a051830152825b600381106122ee575050908161185b61183d6118619451840b6156bd565b9261184d6020840151820b6156bd565b926101a0510151900b6156bd565b9161535b565b9060006118796113316103a161132861018051613988565b6101a0515190611888826135c2565b828252826020830152826101a051830152825b6003811061222c5750508051820b6118b2906156bd565b916020820151810b6118c3906156bd565b916101a0510151900b6118d5906156bd565b906118df9261535b565b610180516118ec90613d03565b5160f81c6118f990615010565b61ffff16611906906147ef565b6101805161191390613cd3565b5160f81c6119209061506a565b60ff1661192c906147ef565b6101805161193990613d03565b5160f81c61194690615010565b61ffff16611953906147ef565b916101805161196190613cd3565b5160f81c61196e9061506a565b60ff1661197a906147ef565b936101a05151968796602088017f5c226163636573736f72735c223a5b7b5c22627566666572566965775c223a3090526101a05188017f2c5c22627974654f66667365745c223a302c5c22636f6d706f6e656e7454797090527232ae111d1a989918162e1131b7bab73a2e111d60691b60608901528051908160738a019160200191611a05926134de565b87017b2c5c22747970655c223a5c22564543335c222c5c226d696e5c223a5b60201b607382015281519182608f83019160200191611a42926134de565b016073016a5d2c5c226d61785c223a5b60a81b601c82015281519182602783019160200191611a70926134de565b01601c01600b81017f5d7d2c7b5c22627566666572566965775c223a312c5c22627974654f666673659052602b81016000805160206157d983398151915290526637bab73a2e111d60c91b604b82015281519182605283019160200191611ad6926134de565b611ae3910160520161507d565b808251602081940191611af5926134de565b017f5d7d2c7b5c22627566666572566965775c223a322c5c22627974654f666673658152602081016000805160206157d983398151915290526637bab73a2e111d60c91b6101a05182015281519182604783019160200191611b56926134de565b01604701611b639061507d565b808251602081940191611b75926134de565b01625d7d5d60e81b815203601c1981018252600301611b949082613613565b6101a05151607b60f81b6020808301919091527f5c2261737365745c223a7b5c2276657273696f6e5c223a5c22322e305c222c5c6021830152770899d95b995c985d1bdc97088e97089bd99bda5917089f4b60421b60418301527f5c227363656e65735c223a5b7b5c226e6f6465735c223a5b305d7d5d2c00000060598301527817089b9bd9195cd7088e96ded7089b595cda17088e8c1f574b603a1b60768301527f5c226d65736865735c223a5b7b5c227072696d6974697665735c223a5b7b5c22608f8301527f617474726962757465735c223a7b5c22504f534954494f4e5c223a307d2c5c2260af8301527f696e64696365735c223a312c5c226d6174657269616c5c223a307d2c7b5c226160cf8301527f7474726962757465735c223a7b5c22504f534954494f4e5c223a307d2c5c226960ef8301527f6e64696365735c223a322c5c226d6174657269616c5c223a317d5d7d5d2c000061010f8301527f5c22657874656e73696f6e73557365645c223a5b5c224b48525f6d617465726961012d8301527f616c735f64697370657273696f6e5c222c5c224b48525f6d6174657269616c7361014d8301527f5f696f725c222c5c224b48525f6d6174657269616c735f69726964657363656e61016d8301527f63655c222c5c224b48525f6d6174657269616c735f7472616e736d697373696f61018d8301527f6e5c222c5c224b48525f6d6174657269616c735f766f6c756d655c222c5c224b6101ad83015277121497db595cda17dc5d585b9d1a5e985d1a5bdb9708974b60421b6101cd8301527f5c22657874656e73696f6e7352657175697265645c223a5b5c224b48525f6d656101e5830152721cda17dc5d585b9d1a5e985d1a5bdb9708974b606a1b610205830152835191988994909291611e39918391610218880191016134de565b83016101205151906102188101826101205160200191611e58926134de565b0161021801808251602081940191611e6f926134de565b01808251602081940191611e82926134de565b01607d60f81b815203601e1981018652600101611e9f9086613613565b6101a05151968796602088017f646174613a6170706c69636174696f6e2f6a736f6e2c7b226e616d65223a224790526101a051880166032b73ab4b732960cd1b905260e05151604789018160e05160200191611efa926134de565b701116113232b9b1b934b83a34b7b7111d1160791b6047918a01918201527f4469676974616c206661636574732e5c6e5c6e466f726576657220656e64757260588201527f696e672c2066756c6c79206f6e2d636861696e2e5c6e5c6e496e697469616c2060788201526503b34b2bb9d160d51b6098820152815191611f89908390609e8401906020016134de565b01604701605781017f222c2261747472696275746573223a5b7b2274726169745f74797065223a225390526e3a37b7329116113b30b63ab2911d1160891b607782015281519182608683019160200191611fe2926134de565b01605701602f81017f227d2c7b2274726169745f74797065223a22437574222c2276616c7565223a22905281519182604f83019160200191612023926134de565b01602f01602081017f227d2c7b2274726169745f74797065223a22436c6172697479222c2276616c7590526332911d1160e11b6101a05182015281519182604483019160200191612073926134de565b01602001602481017f227d2c7b2274726169745f74797065223a22416c6c6f79222c2276616c7565229052611d1160f11b6044820152815191826046830191602001916120bf926134de565b01602401602281017f227d2c7b2274726169745f74797065223a225368696d6d6572222c2276616c7590526332911d1160e11b60428201528151918260468301916020019161210d926134de565b01602201602481017f227d2c7b2274726169745f74797065223a224d61676963222c2276616c7565229052611d1160f11b6044820152608051519060468101826080516020019161215d926134de565b0160240171113eae961134b6b0b3b2afb230ba30911d1160711b602282015260a0515190603481018260a05160200191612196926134de565b01602201601281017f222c22616e696d6174696f6e5f75726c223a22646174613a6d6f64656c2f676c905260328101671d198ada9cdbdb8b60c21b905281519182603a830191602001916121e9926134de565b0160120161227d60f01b602882015203602801601d19810182526002016122109082613613565b6101a051518091602082526020820161222891613501565b0390f35b806003016003116122da57808461224860019360030185615154565b5113156122cd5761227261226960095b6122628487615154565b519061397b565b61018051613d23565b5160f81d61228082866144b4565b528461228f8260030185615154565b5113156122c2576122ad825b6122a583876144b4565b51870b61513d565b6122b782866144b4565b90860b90520161189b565b6122ad60001961229b565b6122726122696006612258565b634e487b7160e01b84526011600452602484fd5b806003016003116122da57808461230a60019360030185615154565b5113156123755761232361226960066122628487615154565b5160f81d61233182866144b4565b52846123408260030185615154565b51131561236a57612355826122a583876144b4565b61235f82866144b4565b90860b90520161181f565b61235560001961229b565b6123236122696009612258565b60ff8261239161018051613cf3565b5160f81c16161561248057835b8181106123bf575060fe809160011b9360011b16915b60011b169091611494565b845b600381106123d2575060010161239e565b600382028281046003148315171561246c578160020360028111612458578661240c6124066124159360ff60f81b9561397b565b8b613d23565b5160f81c613c6c565b60f81b16612423838561397b565b6003810290808204600314901517156124585790612451612447846001959461397b565b91891a918a613d23565b53016123c1565b634e487b7160e01b88526011600452602488fd5b634e487b7160e01b87526011600452602487fd5b919060fe906123b4565b845b6003811061249d5750600101611486565b816003810204600314821517156124f8576124bb600383028461397b565b60028281031161246c57906001916124df61226960ff60f81b92846002039061397b565b51166124f1612447836003870261397b565b530161248c565b634e487b7160e01b86526011600452602486fd5b634e487b7160e01b82526011600452602482fd5b60ff8261252f61018051613cf3565b5160f81c1616156125e657835b81811061255d575060fe809160011b9360011b16915b60011b1690916113ed565b845b60038110612570575060010161253c565b816003810204600314821517156124f8576002818103116124f8576001600160f81b03196125ac8661240c61240660028690036003880261397b565b60f81b166125ba838561397b565b8060038102046003148115171561245857906125df612447846003600196950261397b565b530161255f565b919060fe90612552565b845b6003811061260357506001016113df565b816003810204600314821517156124f857600190612624600384028561397b565b6126366122698360ff60f81b9361397b565b5116612648612447836003870261397b565b53016125f2565b6101a0515161265d816135c2565b600081526000602082015260006101a05182015260005b600381106126d4575060005b60038110612692575050600101611339565b6001600160f81b03196126a582846144b4565b5160f81b16908360021b91848304600414851517156112db576126cd6112c68360019561397b565b5301612680565b8260021b838104600414841517156112db5761127e6126f7916122628488615154565b5160f81d9080600301806003116112db576001926127186127229288615154565b5160000b9061513d565b61272c82856144b4565b9060000b905201612674565b60005b6003811061274c575060010161118f565b60038202908215918381046003148317156112db57600c0180600c116112db5761277e6122698360ff60f81b9361397b565b51168360021b9284840460041417156112db576127a06112c68360019561397b565b530161273b565b91936127b39193613c80565b9391949094936127e96127c46145bb565b6127e3846127de60ff6127d7600161517a565b168861397b565b61397b565b90613d23565b5160f81c906127f66145bb565b61280c60ff612805600161517a565b168661397b565b6003810180911161246c57612840926128308695936127e360019861283a9561397b565b5160f81c906139f9565b90613c6c565b60ff61284c838a6139e5565b911690520191611090565b91976128639197613c80565b9791989098976128876128746145bb565b6127e3846127de60ff6127d7600261517a565b5160f81c906128946145bb565b6128a360ff612805600261517a565b60038101811161246c576128c9926128308695936127e3600198600361283a960161397b565b60ff6128d583896139e5565b911690520191610c61565b9197926128ed9193613c80565b9891939093986129106128fe6145bb565b6127e3846127de60ff6127d78a61517a565b5160f81c9061291d6145bb565b61292b60ff6128058861517a565b6003810180911161246c5761294f926128308695936127e360019861283a9561397b565b60ff61295b838c6139e5565b91169052019091610b7a565b92959061297391613c80565b60ff61297f86896139e5565b91169052909561ffff60ff61299486896139e5565b511691160161ffff81116112db5792600101610b5e565b6129dd6101a051516129c06101a05182613613565b60058152647fb2d7f2ff60d81b602082015260ff610213896139b5565b6102d3565b634e487b7160e01b83526011600452602483fd5b503461014157608036600319011261014157612a10613526565b612a18613541565b60643590604435906001600160401b038311612a905736602384011215612a905782600401359385612a4986613636565b94612a576040519687613613565b8686523660248883010111612a8c5786612a89976024602093018389013786010152612a84838383613660565b613b0d565b80f35b5080fd5b8480fd5b503461014157604036600319011261014157612aae613526565b60243590811515809203612b32576001600160a01b0316908115612b1e573383526007602052604083208284526020526040832060ff1981541660ff83161790556040519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a380f35b630b61174360e31b83526004829052602483fd5b8280fd5b50346101415780600319360112610141576040519080600354908160011c91600181168015612c39575b602084108114612c2557838652908115612bfe5750600114612ba1575b61222884612b8d81860382613613565b604051918291602083526020830190613501565b600381527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b939250905b808210612be457509091508101602001612b8d82612b7d565b919260018160209254838588010152019101909291612bcb565b60ff191660208087019190915292151560051b85019092019250612b8d9150839050612b7d565b634e487b7160e01b83526022600452602483fd5b92607f1692612b60565b5034610141576020366003190112610141576020612c67612c62613526565b613945565b604051908152f35b5034610141576020366003190112610141576020612c8e600435613ad6565b6040516001600160a01b039091168152f35b50346101415760203660031901126101415760043590600a54821015612cda576020612ccb83613914565b90549060031b1c604051908152f35b60449163295f44f760e21b825281600452602452fd5b503461014157612a89612d0236613557565b9060405192612d12602085613613565b858452612a84838383613660565b503461014157604036600319011261014157612d3a613526565b90602435612d4783613945565b811015612d75579060409160209360018060a01b031682526008845282822090825283522054604051908152f35b63295f44f760e21b82526001600160a01b03909216600452602491909152604490fd5b50346101415760403660031901126101415760243590600435815260016020526040812060405190612dc9826135dd565b546001600160a01b03811680835260a09190911c602083015215612e29575b60208101516001600160601b0316838102938015908504909114171561250c5751604080516001600160a01b03909216825261271090930460208201529050f35b50604051612e36816135dd565b81546001600160a01b038116825260a01c6020820152612de8565b503461014157612a89612e6336613557565b91613660565b50346101415780600319360112610141576020600a54604051908152f35b5080600319360112610141576616bcc41e900000341061325257610fff600d541161320f578080808060018060a01b03600c541681903415613205575b3491f1156131f957600d5490602091604051612ee08482613613565b82815233156131e5578183526004845260408320546001600160a01b0316801580159190826131c4575b338087526005885260408088208054600101905586885260048952872080546001600160a01b031916821790558590836000805160206157b98339815191528980a41561313b57600a54848652600b875260408620819055600160401b8110156131275784612f82826001612f9b9401600a55613914565b90919082549060031b91821b91600019901b1916179055565b3381036130eb575b506130d7578390333b612fc9575b50600d54612fbe81613651565b600d55604051908152f35b613001926040519384928392630a85bd0160e11b84523360048501528760248501526044840152608060648401526084830190613501565b038185335af1829181613097575b5061306357503d1561305c573d61302581613636565b906130336040519283613613565b81523d828483013e5b8051928361305757633250574960e11b835233600452602483fd5b019050fd5b606061303c565b6001600160e01b03191663757a42ff60e11b01613084575038808281612fb1565b633250574960e11b815233600452602490fd5b9091508381813d83116130d0575b6130af8183613613565b81010312612b3257516001600160e01b031981168103612b3257903861300f565b503d6130a5565b6339e3563760e11b83526004839052602483fd5b6130f433613945565b60001981019081116124f85733865260088752604086208187528752846040872055848652600987526040862055612fa3565b634e487b7160e01b86526041600452602486fd5b338114612f9b5761314b81613945565b848652600987526040862054818103613188575b508486526009875285604081205581865260088752604086209086528652846040812055612f9b565b8287526008885260408720828852885260408720548388526008895260408820828952895280604089205587526009885260408720553861315f565b6131cd8561479f565b81865260058752604086208054600019019055612f0a565b633250574960e11b83526004839052602483fd5b604051903d90823e3d90fd5b6108fc9150612ec4565b60405162461bcd60e51b815260206004820152601b60248201527a105b1b081d1bdad95b9cc81a185d99481899595b881b5a5b9d1959602a1b6044820152606490fd5b60405162461bcd60e51b8152602060048201526017602482015276139bdd08195b9bdd59da08115512081c1c9bdd9a591959604a1b6044820152606490fd5b5034610141576040366003190112610141576132ab613526565b6024356132b781613ad6565b33151580613366575b8061333b575b6133285781906001600160a01b0384811691167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258680a4825260066020526040822080546001600160a01b0319166001600160a01b0390921691909117905580f35b63a9fbf51f60e01b845233600452602484fd5b506001600160a01b038116845260076020908152604080862033875290915284205460ff16156132c6565b506001600160a01b0381163314156132c0565b50346101415760203660031901126101415760209060043561339a81613ad6565b50815260068252604060018060a01b0391205416604051908152f35b50346101415780600319360112610141576040519080600254908160011c91600181168015613469575b602084108114612c2557838652908115612bfe575060011461340c5761222884612b8d81860382613613565b600281527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace939250905b80821061344f57509091508101602001612b8d82612b7d565b919260018160209254838588010152019101909291613436565b92607f16926133e0565b905034612a8c576020366003190112612a8c576004356001600160e01b031981168103612b3257602092506134a781613a50565b9081156134cd575b81156134bd575b5015158152f35b6134c79150613aaa565b386134b6565b90506134d881613aaa565b906134af565b60005b8381106134f15750506000910152565b81810151838201526020016134e1565b9060209161351a815180928185528580860191016134de565b601f01601f1916010190565b600435906001600160a01b038216820361353c57565b600080fd5b602435906001600160a01b038216820361353c57565b606090600319011261353c576004356001600160a01b038116810361353c57906024356001600160a01b038116810361353c579060443590565b60a081019081106001600160401b038211176135ac57604052565b634e487b7160e01b600052604160045260246000fd5b606081019081106001600160401b038211176135ac57604052565b604081019081106001600160401b038211176135ac57604052565b60c081019081106001600160401b038211176135ac57604052565b601f909101601f19168101906001600160401b038211908210176135ac57604052565b6001600160401b0381116135ac57601f01601f191660200190565b60001981146112db5760010190565b9091906001600160a01b03831680156138ed576000838152600460205260408120546001600160a01b0316943315158061385e575b508515801561383c575b838352600560209081526040808520805460010190558785526004909152832080546001600160a01b031916851790558584886000805160206157b98339815191528680a4156137aa57600a54858352600b60205260408320819055600160401b8110156137965785612f8282600161371b9401600a55613914565b828603613755575b5050506001600160a01b031680830361373b57505050565b6364283d7b60e01b60005260045260245260445260646000fd5b61375e90613945565b60001981019290831161250c579060409181526008602052818120838252602052848282205584815260096020522055388080613723565b634e487b7160e01b83526041600452602483fd5b85831461371b576137ba86613945565b858352600960205260408320548181036137fb575b50858352600960205282604081205586835260086020526040832090835260205281604081205561371b565b8784526008602052604084208285526020526040842054888552600860205260408520828652602052806040862055845260096020526040842055386137cf565b6138458661479f565b868352600560205260408320805460001901905561369f565b8061389e575b1561386f5738613695565b84828761388857602491637e27328960e01b8252600452fd5b60449163177e802f60e01b825233600452602452fd5b5033861480156138cc575b806138645750848252600660205260408220546001600160a01b03163314613864565b5085825260076020908152604080842033855290915282205460ff166138a9565b633250574960e11b600052600060045260246000fd5b90816018029160188304036112db57565b600a5481101561392f57600a60005260206000200190600090565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0316801561396557600052600560205260406000205490565b6322718ad960e21b600052600060045260246000fd5b919082018092116112db57565b80511561392f5760200190565b80516001101561392f5760400190565b80516002101561392f5760600190565b80516003101561392f5760800190565b80516004101561392f5760a00190565b80516005101561392f5760c00190565b805182101561392f5760209160051b010190565b9060ff16908115613a0b5760ff160690565b634e487b7160e01b600052601260045260246000fd5b60061115613a2b57565b634e487b7160e01b600052602160045260246000fd5b60ff166008811015613a2b5790565b63ffffffff60e01b166380ac58cd60e01b8114908115613a99575b8115613a75575090565b63152a902d60e11b811491508115613a8b575090565b6301ffc9a760e01b14905090565b635b5e139f60e01b81149150613a6b565b6001600160e01b0319811663780e9d6360e01b14908115613ac9575090565b613ad39150613a50565b90565b6000818152600460205260409020546001600160a01b0316908115613af9575090565b637e27328960e01b60005260045260246000fd5b9291813b613b1c575b50505050565b604051630a85bd0160e11b81523360048201526001600160a01b0394851660248201526044810191909152608060648201529216919060209082908190613b67906084830190613501565b03816000865af18091600091613c06575b5090613bd157503d15613bca573d613b8f81613636565b90613b9d6040519283613613565b81523d6000602083013e5b80519081613bc55782633250574960e11b60005260045260246000fd5b602001fd5b6060613ba8565b6001600160e01b03191663757a42ff60e11b01613bf2575038808080613b16565b633250574960e11b60005260045260246000fd5b6020813d602011613c41575b81613c1f60209383613613565b81010312612a8c5751906001600160e01b031982168203610141575038613b78565b3d9150613c12565b60ff60019116019060ff82116112db57565b60ff16600c019060ff82116112db57565b9060ff8091169116019060ff82116112db57565b9091602060ff84161015613cad575b60ff613c9a84613c49565b931691602083101561392f578093921a90565b91506040516020810191825260208152613cc8604082613613565b519020600091613c8f565b80516004101561392f5760240190565b80516002101561392f5760220190565b80516001101561392f5760210190565b80516005101561392f5760250190565b80516003101561392f5760230190565b90815181101561392f570160200190565b9060005b8251811015613d6957613d4b8184613d23565b5160f81c60ff831610613d6057600101613d38565b60ff1692915050565b50505160001981019081116112db5760ff1690565b600181018091116112db57600a811015613dd557613d9b906147ef565b613ad3602360405180936203030360ec1b6020830152613dc481518092602086860191016134de565b81010301601f198101835282613613565b6064811015613e0f57613de7906147ef565b613ad36022604051809361030360f41b6020830152613dc481518092602086860191016134de565b6103e8811015613e4957613e22906147ef565b613ad360216040518093600360fc1b6020830152613dc481518092602086860191016134de565b613ad3906147ef565b9060405191613e6260c084613613565b6005835260a036602085013760405190613e7d604083613613565b60078252661f1f050b0b0b1f60c81b60208301526008811015613a2b57613ea391613d23565b5160f81c91600092835b6005811015613ef8578060ff600180931b841616613ecc575b01613ead565b613ed581613a21565b80613ee9613ee288613651565b97866139e5565b613ef282613a21565b52613ec6565b50509190918115613a0b57613f0f914206906139e5565b51613ad381613a21565b90600581101561392f5760051b0190565b604051906102008201906001600160401b038211838310176135ac5760408281526141b092613f598282613613565b6007815266111a585b5bdb9960ca1b602082015284528051613f7b8282613613565b60048152635275627960e01b602082015260208501528051613f9d8282613613565b600b81526a416c6578616e647269746560a81b6020820152818501528051613fc58282613613565b6007815266115b595c985b1960ca1b602082015260608501528051613fea8282613613565b6008815267536170706869726560c01b6020820152608085015280516140108282613613565b600981526854616e7a616e69746560b81b602082015260a085015280516140378282613613565b600681526514dc1a5b995b60d21b602082015260c0850152805161405b8282613613565b600a815269546f75726d616c696e6560b01b602082015260e085015280516140838282613613565b60088152672432b634b7b237b960c11b602082015261010085015280516140aa8282613613565b600a815269417175616d6172696e6560b01b602082015261012085015280516140d38282613613565b60098152684d6f7267616e69746560b81b602082015261014085015280516140fb8282613613565b600681526511d85c9b995d60d21b602082015261016085015280516141208282613613565b600781526614195c9a591bdd60ca1b602082015261018085015280516141468282613613565b60058152642a37b830bd60d91b60208201526101a0850152805161416a8282613613565b600781526643697472696e6560c81b60208201526101c085015261419081519182613613565b6008815267105b595d1a1e5cdd60c21b60208201526101e0840152613988565b51601060ff8216101561392f5760051b611fe016015190565b6040519060e08201906001600160401b038211838310176135ac5760408281526142e3926141f78282613613565b6007815266436c617373696360c81b6020820152845280516142198282613613565b600581526413dd9bda5960da1b60208201526020850152805161423c8282613613565b6006815265131959d95b9960d21b602082015281850152805161425f8282613613565b60048152632832b0b960e11b6020820152606085015280516142818282613613565b600581526414da59da5b60da1b6020820152608085015280516142a48282613613565b600481526310dc9a5d60e21b602082015260a08501526142c681519182613613565b600681526550696c6c6f7760d01b602082015260c0840152613995565b51600760ff8216101561392f5760051b611fe016015190565b6143d49060ff6143cc6040519261431284613591565b604080516143208282613613565b600881526714dd185b99185c9960c21b6020820152855280516143438282613613565b600481526346696e6560e01b6020820152602086015280516143658282613613565b60048152635075726560e01b60208201528186015280516143868282613613565b6009815268109c9a5b1b1a585b9d60ba1b602082015260608601526143ad81519182613613565b6008815267466c61776c65737360c01b602082015260808501526139a5565b511690613f19565b5190565b604051906143e7604083613613565b600782526615da5d1a1bdd5d60ca1b6020830152565b6143d49060ff6143cc6040519261441384613591565b61441b6143d8565b84526040805161442b8282613613565b600581526411985a5b9d60da1b60208201526020860152805161444e8282613613565b6006815265537562746c6560d01b60208201528186015280516144718282613613565b60068152655374726f6e6760d01b6020820152606086015261449581519182613613565b6008815267141bddd95c999d5b60c21b602082015260808501526139b5565b90600381101561392f5760051b0190565b6143d49060ff614549604051926144db846135c2565b604080516144e98282613613565b6005815264131a59da1d60da1b6020820152855280516145098282613613565b6005815264486561767960d81b6020820152602086015280519061452d8183613613565b6007825266115b5a5b995b9d60ca1b60208301528501526139c5565b5116906144b4565b6143d49060ff61454960405192614567846135c2565b61456f6143d8565b84526040805161457f8282613613565b600481526314dbd99d60e21b602082015260208601528051906145a28183613613565b600482526312185c9960e21b60208301528501526139d5565b604051906145cb6101a083613613565b61018082527f0606f77d1933272231145e090707210c3e0707074b3c610504048f36fc2b253d610180837f63605a0202025a606302020263635a020202ffffff4040405d001408080e2e0060208201527f210505072e001e050507ff0b4b342228285f3406060906312306060717145e0d60408201527f07070a9e881d2d2a3260490505060c2c1c050505061f1304040433cc711d2d2460608201527f3238600508051014310608060c102c0507053868f21d25353c3260080505211660808201527f460a090918122f0706069b8aff2321385f283e060607581a33070708400a200760a08201527f0707fc65bc2d1d28635054020204613c44040406635054020204ffb3d22d202660c08201527f5d530a080f0859500f080e0859500f080e08ffe027333022144a5e070b070b3860e08201527f48080a0807253006070627d3fc1f3133635d5a020202624e460305035f3928066101008201527f0806ffd3c0332b275d0000080d0d230202040505350303050808ba0000331f216101208201527f58624605030333480b090808586246050303baed582d331c5e4414070a075d406101408201527f0a080c08382809060706ffb531352e235e3814070907532e0a090909382009066101608201520152565b600090815260066020526040902080546001600160a01b0319169055565b906147c782613636565b6147d46040519182613613565b82815280926147e5601f1991613636565b0190602036910137565b6000908072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b811015614916575b600a906904ee2d6d415b85acef8160201b8110156148fa575b662386f26fc100008110156148e6575b6305f5e1008110156148d5575b6127108110156148c6575b60648110156148b8575b10156148ad575b600a6021614874600185016147bd565b938401015b60001901916f181899199a1a9b1b9c1cb0b131b232b360811b8282061a83530480156148a857600a9091614879565b505090565b600190910190614864565b60646002910493019261485d565b61271060049104930192614853565b6305f5e10060089104930192614848565b662386f26fc100006010910493019261483b565b602093909301926904ee2d6d415b85acef8160201b900461482b565b506040915072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8104614812565b613ad3614949825160f81c6150b9565b602061496a604061495f8387015160f81c6150b9565b95015160f81c6150b9565b6149a9826040519685614986899751809285808b0191016134de565b860161499a825180938580850191016134de565b010191828151948592016134de565b0103601f198101835282613613565b60606008821015613a2b5781614a615750506040516149d860c082613613565b608781527e051118446082be827e427e00be000042005442003c423c00425466362a2a3660208201527f667e260072263058265830267200267e7e220072223058225830227200227e0060408201526000805160206157598339815191526060820152600080516020615779833981519152608082015265f0a100f0a0b160cc1b60a082015290565b600060018303614b0657505050604051614a7c60c082613613565b608781527f01051118446082bfae7e415200bf000041005e410046411e004132643b12323760208201527f3c7e210078211a68213836214c0021527e1d00781d1a681d38361d4c001d520060408201526000805160206157598339815191526060820152600080516020615779833981519152608082015265f0a100f0a0b160cc1b60a082015290565b5060028203614bd9575050604051614b1f60c082613613565b609381527f0207131a98d0ae82d9527e27504a00027e00027e02504a02025b25383725005b60208201527f250059273635273600270000275248005248023a35253a00255200025200000060408201527f7e00007e02000102000203020403030405040607040705050708070908070a0960608201527e030b030c0b03050c050d0c0c0d0e0c0e0f0b0c0f0b0f1005080d08090d090e6080820152720685860785878801030201090300888900890160691b60a082015290565b600060038303614d4a57505050610140614bf66040519182613613565b61011181527f03012037406ea485ba5c7b4600851e007b1e265f1e104b3e003f46443d1e1c1f60208201527f4656111e38ff3e28df465cd71e34c73a1cbb4654c31e18a53e00ad4644a71e2460408201527f8f1e007b1a265f1a443d1a56111a5cd71a54c31a44a71a248f1a00851a00f7ba60608201527f1423da2c0bda2cebda14d1da010302010403020305030406050807030605050660808201527f0806090807080a08090a0a090b090c0b0a0b0d0b0c0e0b0e100c0f0e0b100d0e60a08201527f1110000e0f00110e040f06060f09090f0c01021202131202051305141305071460c08201527f071514070a150a16150a0d160d17160d1017101817101118111918110019001a60e08201527f19121c1b12131c131d1c13141d14151d15161d161e1d16171e17181e181f1e1861010082015270191f191a1f1c1d1b1d1e1b1b1e1f1a1b1f60781b61012082015290565b5060048203614e6f575050604051614d6461010082613613565b60d881527f04031c2870a088b0c07850410000c000502700473300333f002f415050274d4760208201527f3345333f432f417828277024335e1a3f5a18417800277000335e003f5a00410060408201527e41005024505024782824780024004c1c000aca404c1c72001c0f00ca72201c60608201527f010206010512010605020307020706030408030807041108050a09051312051460808201527f1305060a050913050914060b0a06070b070c0b07080c08110c090a0e090d150960a08201527f0e0d0914130915140a0b0f0a0f0e0b0c100b100f0c111012131613140013171860c08201527713001713181614151914191b141a00141b1a161817191a1b60401b60e082015290565b600091600503614f17575050604051614e8960a082613613565b606c81527f05010e121c249484ac6c7c5400841c007c1c6c3e1c3620540020546cc21c00c260208201527f54007c186c3e186cc218008418003ed60000ac36e0d60103020104030203050360408201527f060503040600050601020801080702050902090805000a050a0907080b080c0b60608201526b080d0c08090d090a0d0a0c0d60a01b608082015290565b90507f116f3a1b6d6d1b3a6f110001030201040302030602060503040903090803080660405191614f4960e084613613565b60a583527f0605151e547887aa8779577900aa000057004957003957390057497937005b4b60208401527f2473373a6b376b244b5b3a377300377979330073333a6b336b3a33730033790060408401528201527f040b0905060706080708090a090b0a0a0b0f0b100f080a0e0a0f0e07080d080e60808201527f0d05070c070d0c0f11120f10110e0f120d0e130c0d130c131400141300130e0060a0820152640e1200121160d81b60c082015290565b60021b906203fffc61fffc8316921682036112db57565b61ffff166003029061ffff82169182036112db57565b7f7d2c7b5c227572695c223a5c22646174613a6170706c69636174696f6e2f6f638152711d195d0b5cdd1c99585b4ed8985cd94d8d0b60721b602082015260320190565b60ff6000199116019060ff82116112db57565b7f2c5c22747970655c223a5c225343414c41525c222c5c226d696e5c223a5b305d8152692c5c226d61785c223a5b60b01b6020820152602a0190565b60408051916150c88284613613565b600283526020830191601f1901368337600f811690601082101561392f5783516001101561392f57600f916f181899199a1a9b1b9c1cb0b131b232b360811b901a602185015360041c16601081101561392f5782511561392f576f181899199a1a9b1b9c1cb0b131b232b360811b901a905390565b9060000b9060000b02908160000b9182036112db57565b90600681101561392f5760051b0190565b60ff60039116029060ff82169182036112db57565b60ff166006029060ff82169182036112db57565b613ad36001601561519e846153cf565b60176151c260ff6151b56151bc826151b58b6139b5565b511661529e565b986139c5565b604f6040519788947f5c227062724d6574616c6c6963526f7567686e6573735c223a7b5c226261736560208701526e436f6c6f72466163746f725c223a5b60881b604087015261521b815180926020868a0191016134de565b8501761618ae962e1136b2ba30b63634b1a330b1ba37b92e111d60491b838201526152508251809360206066850191016134de565b010174162e113937bab3b43732b9b9a330b1ba37b92e111d60591b83820152615283825180936020602c850191016134de565b0101607d60f81b838201520301601e19810184520182613613565b60ff16806152c657506040516152b5604082613613565b60018152600360fc1b602082015290565b600a811015615301576152d8906147ef565b613ad360236040518093620302e360ec1b6020830152613dc481518092602086860191016134de565b606481101561533b57615313906147ef565b613ad36022604051809361181760f11b6020830152613dc481518092602086860191016134de565b5060405161534a604082613613565b60018152603160f81b602082015290565b600190816153cd9395946020604051978461537f8a9651809285808a0191016134de565b8501600b60fa1b8382015261539d82518093856021850191016134de565b0101600b60fa1b838201526153bc8251809360206002850191016134de565b01010301601f198101845283613613565b565b613ad3906153e160ff6151b583613988565b9061185b60ff6151b56153f7826151b586613995565b936139a5565b60405160c061540c8183613613565b3682375061541981613a21565b80615455575060405161542b816135f8565b6000815260016020820152600260408201526001606082015260016080820152600160a082015290565b61545e81613a21565b6001810361549e5750604051615473816135f8565b600281526001602082015260006040820152600160608201526001608082015260001960a082015290565b6154a781613a21565b600281036154e857506040516154bc816135f8565b60008152600160208201526002604082015260001960608201526001608082015260001960a082015290565b6003906154f481613a21565b0361553057604051615505816135f8565b600281526001602082015260006040820152600019606082015260016080820152600160a082015290565b60405161553c816135f8565b600081526002602082015260016040820152600160608201526000196080820152600160a082015290565b908151156156a6576040519161557e606084613613565b604083527f4142434445464748494a4b4c4d4e4f505152535455565758595a61626364656660208401527f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f60408401528051600281018091116112db57600390046001600160fe1b03811681036112db576155fb9060021b6147bd565b9060208201908081518201956020870190815192600083525b88811061565857505060039394959650525106806001146156455760021461563a575090565b603d90600019015390565b50603d9081600019820153600119015390565b600360049199969901986001603f8b5182828260121c16870101518453828282600c1c16870101518385015382828260061c1687010151600285015316840101516003820153019497615614565b90506040516156b6602082613613565b6000815290565b613ad36156fa600083129260008460001461574157506040516156e1604082613613565b60018152602d60f81b6020820152935b615739576147ef565b916020604051938261571586945180928580880191016134de565b8301615729825180938580850191016134de565b010103601f198101835282613613565b6000036147ef565b60405190615750602083613613565b8152936156f156fe0c0d000d0e000e0f000f10010302010403020507020305030905030609030406040b06050807050908060a09060b0a070d0c07080d080e0d08090e090f0e090a2c5c22627974654f66667365745c223a302c5c22627974654c656e6774685c22ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef745c223a302c5c22636f6d706f6e656e74547970655c223a353132312c5c2263a2646970667358221220043acd465e65753b872609e231645507ea288ed1ea1d830fbab1368fdc9e81fd64736f6c634300081a0033

Deployed Bytecode

0x6101c080604052600436101561001457600080fd5b600090813560e01c90816301ffc9a7146134735750806306fdde03146133b6578063081812fc14613379578063095ea7b3146132915780631249c58b14612e8757806318160ddd14612e6957806323b872dd14612e515780632a55205a14612d985780632f745c5914612d2057806342842e0e14612cf05780634f6ccce714612ca05780636352211e14612c6f57806370a0823114612c4357806395d89b4114612b36578063a22cb46514612a94578063b88d4fde146129f6578063c87b56dd146101445763e985e9c5146100e857600080fd5b34610141576040366003190112610141576040610103613526565b9161010c613541565b9260018060a01b031681526007602052209060018060a01b0316600052602052602060ff604060002054166040519015158152f35b80fd5b50346101415760203660031901126101415760043561022081018082116129e257604051602081019182526020815261017e604082613613565b519020906040519061019160e083613613565b6006825260c09283366020850137600160ff8616019060ff82116124f8576102aa61025c61022f61032a946102de946103839a508060001a6101d28a613988565b5260406101a0819052805161021b916101eb9082613613565b601081526f0308101a263547596b7f93a7bbcfe7ff60801b602082015260ff6102138c613988565b511690613d34565b60ff6102268b613988565b91169052613c80565b60ff61023d8a949394613995565b91169052600760ff61024e8a613995565b51160660ff6102268a613995565b60ff61026a899493946139a5565b911690526101a051805161029f916102829082613613565b60058152644c99d7f2ff60d81b602082015260ff6102138a6139a5565b60ff610226896139a5565b60ff6102b8889493946139b5565b91169052600160ff6102c9886139a5565b5116116129ab5760005b60ff610226886139b5565b60ff6102ec879493946139c5565b911690526101a051805161031f916103049082613613565b60038152627fd7ff60e81b602082015260ff610213886139c5565b60ff610226876139c5565b60ff61033b869894989593956139d5565b9116905261036f6101a051516103546101a05182613613565b600381526254a8ff60e81b602082015260ff610213876139d5565b60ff61037a866139d5565b91169052613d7e565b60e05261048e6103a66103a160ff61039a86613995565b5116613a41565b613e52565b60ff6101a05151916103b783613591565b6101a051516103c96101a05182613613565b6005815264119c9bdb9d60da1b602082015283526101a0518051906103ee9082613613565b60048152631319599d60e21b602082015260208401526101a051516104166101a05182613613565b60048152634261636b60e01b60208201526101a0518401526101a051516104406101a05182613613565b6005815264149a59da1d60da1b602082015260608401526101a051516104696101a05182613613565b60038152620546f760ec1b6020820152608084015261048781613a21565b1690613f19565b519061049983613f2a565b926104a3816141c9565b956104ad826142fc565b956104b7836143fd565b926104c1816144c5565b946104cb82614551565b6080526101a051516104dc816135c2565b6104e46145bb565b6104f960ff6104f286613988565b5116613903565b601581018091116112db576001600160f81b0319916105189190613d23565b511681526105246145bb565b61053260ff6104f286613988565b601681018091116112db576001600160f81b0319916105519190613d23565b511660208201526105606145bb565b9061056f60ff6104f286613988565b91601783018093116112db5761058d61059b9360ff60f81b92613d23565b51166101a051820152614939565b6101a051516105a9816135c2565b6105b16145bb565b6105bf60ff6104f287613988565b601281018091116112db576001600160f81b0319916105de9190613d23565b511681526105ea6145bb565b6105f860ff6104f287613988565b601381018091116112db576001600160f81b0319916106179190613d23565b511660208201526106266145bb565b9061063560ff6104f287613988565b91601483018093116112db57610b0793601d8760196106638396601b9661058d60179a60ff60f81b92613d23565b601561066e84613f2a565b6002610679866141c9565b60c7610684886142fc565b936101786106918a6143fd565b976106a461069e8c6144c5565b9b614551565b9c6101a0515160a0527f3c7376672077696474683d273130383027206865696768743d27313038302720602060a05101527f786d6c6e733d27687474703a2f2f7777772e77332e6f72672f323030302f73766101a05160a05101527f67273e3c7374796c653e746578747b666f6e742d66616d696c793a496e746572606060a05101527f2c526f626f746f2c2748656c766574696361204e657565272c27417269616c20608060a05101527f4e6f7661272c274e696d6275732053616e73272c417269616c2c73797374656d60a0805101527f2d75692c73616e732d73657269663b666f6e742d7765696768743a626f6c643b60c060a05101527f666f6e742d73697a653a31303670783b66696c6c3a233939397d3c2f7374796c60e060a05101527f653e3c646566733e3c6c696e6561724772616469656e742069643d276f27207861010060a05101527f313d2730272078323d2730272079313d2730272079323d2731273e3c73746f7061012060a05101527f2073746f702d636f6c6f723d2723306630663066272f3e3c73746f70206f666661014060a0510152777365743d2731303025272073746f702d636f6c6f723d272360401b61016060a051015261087a8151809260208660a0510191016134de565b60a051017f272f3e3c2f6c696e6561724772616469656e743e3c2f646566733e3c72656374838201527f2077696474683d273130383027206865696768743d2731303830272066696c6c6101988201527f3d2775726c28236f29272f3e3c67207472616e73666f726d3d277472616e736c6101b88201527f6174652838302c203029273e3c7465787420793d2731363027207374796c653d6101d88201527f27666f6e742d73697a653a363070783b66696c6c3a23346434643464273e47656101f88201527f6e75696e653c2f746578743e3c7465787420793d2733333027207374796c653d610218820152662766696c6c3a2360c81b61023882015261098c82518093602061023f850191016134de565b010161139f60f11b838201526109ac82518093602060c9850191016134de565b0101741e17ba32bc3a1f1e3a32bc3a103c9e939a1b18139f60591b838201526109df825180938f602090850191016134de565b0101781031baba1e17ba32bc3a1f1e3a32bc3a103c9e939a9c98139f60391b83820152610a16825180936020602e850191016134de565b01017f20636c61726974793c2f746578743e3c7465787420793d27373230273e00000083820152610a518251809360206036850191016134de565b01017a1030b63637bc9e17ba32bc3a1f1e3a32bc3a103c9e939c1a98139f60291b83820152610a8a8251809360206038850191016134de565b01017f207368696d6d65723c2f746578743e3c7465787420793d27393830273e00000083820152610ac58251809360206038850191016134de565b0101701036b0b3b4b19e17ba32bc3a1f1e17b39f60791b82820152651e17b9bb339f60d11b602e82015260a051900301600819810160a051520160a051613613565b610b1d610b1860ff61039a85613995565b6149b8565b610180526101a0515192610b3260e085613613565b600684523660208501376101a05151610b4c608082613613565b60038152606036602083013760c89160005b6002811061296757506000610b7760ff6104f287613988565b90805b600382106128e057505050610bbe6101a05151610b9a6101a05182613613565b600581526302850a0f60da1b602082015260ff610bb6876139b5565b511690613d23565b5160f81c610bcb866139b5565b52610bfd6101a05151610be16101a05182613613565b60058152630c8c8a0560e11b602082015260ff610bb6876139a5565b5160f81c610c0a866139c5565b52610c3d6101a05151610c206101a05182613613565b600581526417d919191960da1b602082015260ff610bb6876139a5565b5160f81c610c4a866139d5565b5294936000610c5d60ff6104f287613988565b6000915b6003831061285757505050610c758161518e565b926101a051516101a051610c899082613613565b600381526111a360e91b6020820152610ca1866139d5565b5160ff16610cae91613d23565b5160f81c610cc160ff600a8304166147ef565b90600a900660ff16610cd2906147ef565b906101a0515191818392519081602085019160200191610cf1926134de565b820160208101601760f91b905281519182602183019160200191610d14926134de565b0160200103600101601f1981018252610d2d9082613613565b6101a051516101a051610d409082613613565b600381526205119960ea1b6020820152610d59876139c5565b5160ff16610d6691613d23565b5160f81c610d739061529e565b9161ffff16610d81906147ef565b92610d8b906139d5565b5160ff16610d989061529e565b93610da2906153cf565b946101a051516101605280519081610160516020019160200191610dc5926134de565b6101605101602081017f2c5c22657874656e73696f6e735c223a7b5c224b48525f6d6174657269616c7390526101a05181017f5f64697370657273696f6e5c223a7b5c2264697370657273696f6e5c223a0000905281519182605e83019160200191610e30926134de565b01602001603e81017f7d2c5c224b48525f6d6174657269616c735f696f725c223a7b5c22696f725c229052605e81017f3a312e327d2c5c224b48525f6d6174657269616c735f69726964657363656e6390527a32ae111d3dae1134b934b232b9b1b2b731b2a330b1ba37b92e111d60291b607e82015281519182609983019160200191610ebc926134de565b01603e01605b81017f2c5c2269726964657363656e6365496f725c223a312e362c5c2269726964657390527731b2b731b2aa3434b1b5b732b9b9a6b0bc34b6bab6ae111d60411b607b82015281519182609383019160200191610f1e926134de565b01605b01603881017f7d2c5c224b48525f6d6174657269616c735f7472616e736d697373696f6e5c229052781d3dae113a3930b739b6b4b9b9b4b7b72330b1ba37b92e111d60391b605882015281519182607183019160200191610f81926134de565b01603801603981017f7d2c5c224b48525f6d6174657269616c735f766f6c756d655c223a7b5c2274689052605981017f69636b6e657373466163746f725c223a3132382c5c22617474656e756174696f9052607981017f6e44697374616e63655c223a3235362c5c22617474656e756174696f6e436f6c9052656f725c223a5b60d01b609982015281519182609f8301916020019161101f926134de565b0160390160668101625d7d7d60e81b9052610160519003606601601c1981016101605152600301610160519061105491613613565b6101a051519261106560c085613613565b6005845260a0366020860137919060009061107f90613988565b5160ff1661108c90613903565b6000915b600383106127a75750505060036110ca6030969594611141948394505060646110b8826139b5565b5260146110c4826139c5565b5261518e565b6101a051519687916f5c226d6174657269616c735c223a5b7b60801b6020840152610160515161110381848601602061016051016134de565b8301627d2c7b60e81b838201526111248251809360206033850191016134de565b0101621f574b60ea1b838201520301601c19810186520184613613565b61114d61018051613cd3565b516103fc808260f81c9260f61c161690808204600414901517156112db57611174906147bd565b6101005261118461018051613ce3565b5160f81c6101405260005b610140518110612738575060015b60ff81166004811161130f5760ff826111b861018051613cf3565b5160f81c1616156113065760046101a05151916111d4836135c2565b600181036112ff576000195b60000b8352600281036112f8576000195b60000b6020840152036112f1576000195b60000b6101a05182015260005b61014051811061123357505060fe906101405160011b610140525b60011b1661119d565b60005b60038110611247575060010161120f565b61125181846144b4565b5160000b8260021b90838204600414841517156112db576112919061128761127e8560ff60f81b9561397b565b61010051613d23565b5160f81d9061513d565b60f81b16906112a3836101405161397b565b918260021b92808404600414901517156112db576112d46112c68360019561397b565b9160001a9161010051613d23565b5301611236565b634e487b7160e01b600052601160045260246000fd5b6001611202565b60016111f1565b60016111e0565b5060fe9061122a565b505085876113366113316103a161132861018051613988565b5160f81c613a41565b6153fd565b60005b61014051811061264f57505061135161010051615567565b60c05261137861ffff61137261136961018051613cd3565b5160f81c614ff9565b166147ef565b600061138661018051613d03565b5160f81c8060038102046003148115171561250c5760036113a791026147bd565b906113b461018051613ce3565b5160f81c6113c461018051613d13565b5160f81c9060ff6113dc6113d783615165565b613c5b565b16835b8381106125f0575050906001905b600460ff83161115612520575050505061140690615567565b61142461ffff61137261141b61018051613d03565b5160f81c615010565b600061143261018051613d03565b5160f81c8060038102046003148115171561250c57600361145391026147bd565b9061146061018051613ce3565b5160f81c61147061018051613d13565b5160f81c9060ff6114836113d783615165565b16835b83811061248a575050906001905b600460ff8316111561238257505050509260206003936115ce61158f60128096856114c16116219b615567565b9561159c61158f85605d6114e061ffff61137261141b61018051613d03565b9c6101a05151610120527f5c22627566666572735c223a5b7b5c227572695c223a5c22646174613a617070876101205101527f6c69636174696f6e2f6f637465742d73747265616d3b6261736536342c0000006101a05161012051015260c05151611555818461012051018a60c051016134de565b6101205101712e11162e11313cba32a632b733ba342e111d60711b83820152611587825180938a606f850191016134de565b010101615026565b91828151948592016134de565b01712e11162e11313cba32a632b733ba342e111d60711b81526115c7825180938986850191016134de565b0101615026565b01712e11162e11313cba32a632b733ba342e111d60711b81526115fa82518093602086850191016134de565b01621f574b60ea1b8282015261012051900301601c19810161012051520161012051613613565b61163661ffff61137261136961018051613cd3565b946117ce6014604161165361ffff61137261141b61018051613d03565b988161166a61ffff61137261141b61018051613d03565b60706101a051519c8d947f5c2262756666657256696577735c223a5b7b5c226275666665725c223a302c5c60208701527f22627974654f66667365745c223a302c5c22627974655374726964655c223a346101a0518701526f162e11313cba32a632b733ba342e111d60811b60608701526116ee815180926020868a0191016134de565b85017f2c5c227461726765745c223a33343936327d2c7b5c226275666665725c223a31838201526000805160206157998339815191526090820152601d60f91b60b082015261174782518093602060b1850191016134de565b01017f2c5c227461726765745c223a33343936337d2c7b5c226275666665725c223a32838201526000805160206157998339815191526061820152601d60f91b60818201526117a08251809360206082850191016134de565b0101730b17089d185c99d95d17088e8ccd0e4d8cdf574b60621b838201520301600b19810189520187613613565b6117e66117dd61018051613cd3565b5160f81c6147ef565b60006117fd6113316103a161132861018051613988565b6101a051519061180c826135c2565b828252826020830152826101a051830152825b600381106122ee575050908161185b61183d6118619451840b6156bd565b9261184d6020840151820b6156bd565b926101a0510151900b6156bd565b9161535b565b9060006118796113316103a161132861018051613988565b6101a0515190611888826135c2565b828252826020830152826101a051830152825b6003811061222c5750508051820b6118b2906156bd565b916020820151810b6118c3906156bd565b916101a0510151900b6118d5906156bd565b906118df9261535b565b610180516118ec90613d03565b5160f81c6118f990615010565b61ffff16611906906147ef565b6101805161191390613cd3565b5160f81c6119209061506a565b60ff1661192c906147ef565b6101805161193990613d03565b5160f81c61194690615010565b61ffff16611953906147ef565b916101805161196190613cd3565b5160f81c61196e9061506a565b60ff1661197a906147ef565b936101a05151968796602088017f5c226163636573736f72735c223a5b7b5c22627566666572566965775c223a3090526101a05188017f2c5c22627974654f66667365745c223a302c5c22636f6d706f6e656e7454797090527232ae111d1a989918162e1131b7bab73a2e111d60691b60608901528051908160738a019160200191611a05926134de565b87017b2c5c22747970655c223a5c22564543335c222c5c226d696e5c223a5b60201b607382015281519182608f83019160200191611a42926134de565b016073016a5d2c5c226d61785c223a5b60a81b601c82015281519182602783019160200191611a70926134de565b01601c01600b81017f5d7d2c7b5c22627566666572566965775c223a312c5c22627974654f666673659052602b81016000805160206157d983398151915290526637bab73a2e111d60c91b604b82015281519182605283019160200191611ad6926134de565b611ae3910160520161507d565b808251602081940191611af5926134de565b017f5d7d2c7b5c22627566666572566965775c223a322c5c22627974654f666673658152602081016000805160206157d983398151915290526637bab73a2e111d60c91b6101a05182015281519182604783019160200191611b56926134de565b01604701611b639061507d565b808251602081940191611b75926134de565b01625d7d5d60e81b815203601c1981018252600301611b949082613613565b6101a05151607b60f81b6020808301919091527f5c2261737365745c223a7b5c2276657273696f6e5c223a5c22322e305c222c5c6021830152770899d95b995c985d1bdc97088e97089bd99bda5917089f4b60421b60418301527f5c227363656e65735c223a5b7b5c226e6f6465735c223a5b305d7d5d2c00000060598301527817089b9bd9195cd7088e96ded7089b595cda17088e8c1f574b603a1b60768301527f5c226d65736865735c223a5b7b5c227072696d6974697665735c223a5b7b5c22608f8301527f617474726962757465735c223a7b5c22504f534954494f4e5c223a307d2c5c2260af8301527f696e64696365735c223a312c5c226d6174657269616c5c223a307d2c7b5c226160cf8301527f7474726962757465735c223a7b5c22504f534954494f4e5c223a307d2c5c226960ef8301527f6e64696365735c223a322c5c226d6174657269616c5c223a317d5d7d5d2c000061010f8301527f5c22657874656e73696f6e73557365645c223a5b5c224b48525f6d617465726961012d8301527f616c735f64697370657273696f6e5c222c5c224b48525f6d6174657269616c7361014d8301527f5f696f725c222c5c224b48525f6d6174657269616c735f69726964657363656e61016d8301527f63655c222c5c224b48525f6d6174657269616c735f7472616e736d697373696f61018d8301527f6e5c222c5c224b48525f6d6174657269616c735f766f6c756d655c222c5c224b6101ad83015277121497db595cda17dc5d585b9d1a5e985d1a5bdb9708974b60421b6101cd8301527f5c22657874656e73696f6e7352657175697265645c223a5b5c224b48525f6d656101e5830152721cda17dc5d585b9d1a5e985d1a5bdb9708974b606a1b610205830152835191988994909291611e39918391610218880191016134de565b83016101205151906102188101826101205160200191611e58926134de565b0161021801808251602081940191611e6f926134de565b01808251602081940191611e82926134de565b01607d60f81b815203601e1981018652600101611e9f9086613613565b6101a05151968796602088017f646174613a6170706c69636174696f6e2f6a736f6e2c7b226e616d65223a224790526101a051880166032b73ab4b732960cd1b905260e05151604789018160e05160200191611efa926134de565b701116113232b9b1b934b83a34b7b7111d1160791b6047918a01918201527f4469676974616c206661636574732e5c6e5c6e466f726576657220656e64757260588201527f696e672c2066756c6c79206f6e2d636861696e2e5c6e5c6e496e697469616c2060788201526503b34b2bb9d160d51b6098820152815191611f89908390609e8401906020016134de565b01604701605781017f222c2261747472696275746573223a5b7b2274726169745f74797065223a225390526e3a37b7329116113b30b63ab2911d1160891b607782015281519182608683019160200191611fe2926134de565b01605701602f81017f227d2c7b2274726169745f74797065223a22437574222c2276616c7565223a22905281519182604f83019160200191612023926134de565b01602f01602081017f227d2c7b2274726169745f74797065223a22436c6172697479222c2276616c7590526332911d1160e11b6101a05182015281519182604483019160200191612073926134de565b01602001602481017f227d2c7b2274726169745f74797065223a22416c6c6f79222c2276616c7565229052611d1160f11b6044820152815191826046830191602001916120bf926134de565b01602401602281017f227d2c7b2274726169745f74797065223a225368696d6d6572222c2276616c7590526332911d1160e11b60428201528151918260468301916020019161210d926134de565b01602201602481017f227d2c7b2274726169745f74797065223a224d61676963222c2276616c7565229052611d1160f11b6044820152608051519060468101826080516020019161215d926134de565b0160240171113eae961134b6b0b3b2afb230ba30911d1160711b602282015260a0515190603481018260a05160200191612196926134de565b01602201601281017f222c22616e696d6174696f6e5f75726c223a22646174613a6d6f64656c2f676c905260328101671d198ada9cdbdb8b60c21b905281519182603a830191602001916121e9926134de565b0160120161227d60f01b602882015203602801601d19810182526002016122109082613613565b6101a051518091602082526020820161222891613501565b0390f35b806003016003116122da57808461224860019360030185615154565b5113156122cd5761227261226960095b6122628487615154565b519061397b565b61018051613d23565b5160f81d61228082866144b4565b528461228f8260030185615154565b5113156122c2576122ad825b6122a583876144b4565b51870b61513d565b6122b782866144b4565b90860b90520161189b565b6122ad60001961229b565b6122726122696006612258565b634e487b7160e01b84526011600452602484fd5b806003016003116122da57808461230a60019360030185615154565b5113156123755761232361226960066122628487615154565b5160f81d61233182866144b4565b52846123408260030185615154565b51131561236a57612355826122a583876144b4565b61235f82866144b4565b90860b90520161181f565b61235560001961229b565b6123236122696009612258565b60ff8261239161018051613cf3565b5160f81c16161561248057835b8181106123bf575060fe809160011b9360011b16915b60011b169091611494565b845b600381106123d2575060010161239e565b600382028281046003148315171561246c578160020360028111612458578661240c6124066124159360ff60f81b9561397b565b8b613d23565b5160f81c613c6c565b60f81b16612423838561397b565b6003810290808204600314901517156124585790612451612447846001959461397b565b91891a918a613d23565b53016123c1565b634e487b7160e01b88526011600452602488fd5b634e487b7160e01b87526011600452602487fd5b919060fe906123b4565b845b6003811061249d5750600101611486565b816003810204600314821517156124f8576124bb600383028461397b565b60028281031161246c57906001916124df61226960ff60f81b92846002039061397b565b51166124f1612447836003870261397b565b530161248c565b634e487b7160e01b86526011600452602486fd5b634e487b7160e01b82526011600452602482fd5b60ff8261252f61018051613cf3565b5160f81c1616156125e657835b81811061255d575060fe809160011b9360011b16915b60011b1690916113ed565b845b60038110612570575060010161253c565b816003810204600314821517156124f8576002818103116124f8576001600160f81b03196125ac8661240c61240660028690036003880261397b565b60f81b166125ba838561397b565b8060038102046003148115171561245857906125df612447846003600196950261397b565b530161255f565b919060fe90612552565b845b6003811061260357506001016113df565b816003810204600314821517156124f857600190612624600384028561397b565b6126366122698360ff60f81b9361397b565b5116612648612447836003870261397b565b53016125f2565b6101a0515161265d816135c2565b600081526000602082015260006101a05182015260005b600381106126d4575060005b60038110612692575050600101611339565b6001600160f81b03196126a582846144b4565b5160f81b16908360021b91848304600414851517156112db576126cd6112c68360019561397b565b5301612680565b8260021b838104600414841517156112db5761127e6126f7916122628488615154565b5160f81d9080600301806003116112db576001926127186127229288615154565b5160000b9061513d565b61272c82856144b4565b9060000b905201612674565b60005b6003811061274c575060010161118f565b60038202908215918381046003148317156112db57600c0180600c116112db5761277e6122698360ff60f81b9361397b565b51168360021b9284840460041417156112db576127a06112c68360019561397b565b530161273b565b91936127b39193613c80565b9391949094936127e96127c46145bb565b6127e3846127de60ff6127d7600161517a565b168861397b565b61397b565b90613d23565b5160f81c906127f66145bb565b61280c60ff612805600161517a565b168661397b565b6003810180911161246c57612840926128308695936127e360019861283a9561397b565b5160f81c906139f9565b90613c6c565b60ff61284c838a6139e5565b911690520191611090565b91976128639197613c80565b9791989098976128876128746145bb565b6127e3846127de60ff6127d7600261517a565b5160f81c906128946145bb565b6128a360ff612805600261517a565b60038101811161246c576128c9926128308695936127e3600198600361283a960161397b565b60ff6128d583896139e5565b911690520191610c61565b9197926128ed9193613c80565b9891939093986129106128fe6145bb565b6127e3846127de60ff6127d78a61517a565b5160f81c9061291d6145bb565b61292b60ff6128058861517a565b6003810180911161246c5761294f926128308695936127e360019861283a9561397b565b60ff61295b838c6139e5565b91169052019091610b7a565b92959061297391613c80565b60ff61297f86896139e5565b91169052909561ffff60ff61299486896139e5565b511691160161ffff81116112db5792600101610b5e565b6129dd6101a051516129c06101a05182613613565b60058152647fb2d7f2ff60d81b602082015260ff610213896139b5565b6102d3565b634e487b7160e01b83526011600452602483fd5b503461014157608036600319011261014157612a10613526565b612a18613541565b60643590604435906001600160401b038311612a905736602384011215612a905782600401359385612a4986613636565b94612a576040519687613613565b8686523660248883010111612a8c5786612a89976024602093018389013786010152612a84838383613660565b613b0d565b80f35b5080fd5b8480fd5b503461014157604036600319011261014157612aae613526565b60243590811515809203612b32576001600160a01b0316908115612b1e573383526007602052604083208284526020526040832060ff1981541660ff83161790556040519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a380f35b630b61174360e31b83526004829052602483fd5b8280fd5b50346101415780600319360112610141576040519080600354908160011c91600181168015612c39575b602084108114612c2557838652908115612bfe5750600114612ba1575b61222884612b8d81860382613613565b604051918291602083526020830190613501565b600381527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b939250905b808210612be457509091508101602001612b8d82612b7d565b919260018160209254838588010152019101909291612bcb565b60ff191660208087019190915292151560051b85019092019250612b8d9150839050612b7d565b634e487b7160e01b83526022600452602483fd5b92607f1692612b60565b5034610141576020366003190112610141576020612c67612c62613526565b613945565b604051908152f35b5034610141576020366003190112610141576020612c8e600435613ad6565b6040516001600160a01b039091168152f35b50346101415760203660031901126101415760043590600a54821015612cda576020612ccb83613914565b90549060031b1c604051908152f35b60449163295f44f760e21b825281600452602452fd5b503461014157612a89612d0236613557565b9060405192612d12602085613613565b858452612a84838383613660565b503461014157604036600319011261014157612d3a613526565b90602435612d4783613945565b811015612d75579060409160209360018060a01b031682526008845282822090825283522054604051908152f35b63295f44f760e21b82526001600160a01b03909216600452602491909152604490fd5b50346101415760403660031901126101415760243590600435815260016020526040812060405190612dc9826135dd565b546001600160a01b03811680835260a09190911c602083015215612e29575b60208101516001600160601b0316838102938015908504909114171561250c5751604080516001600160a01b03909216825261271090930460208201529050f35b50604051612e36816135dd565b81546001600160a01b038116825260a01c6020820152612de8565b503461014157612a89612e6336613557565b91613660565b50346101415780600319360112610141576020600a54604051908152f35b5080600319360112610141576616bcc41e900000341061325257610fff600d541161320f578080808060018060a01b03600c541681903415613205575b3491f1156131f957600d5490602091604051612ee08482613613565b82815233156131e5578183526004845260408320546001600160a01b0316801580159190826131c4575b338087526005885260408088208054600101905586885260048952872080546001600160a01b031916821790558590836000805160206157b98339815191528980a41561313b57600a54848652600b875260408620819055600160401b8110156131275784612f82826001612f9b9401600a55613914565b90919082549060031b91821b91600019901b1916179055565b3381036130eb575b506130d7578390333b612fc9575b50600d54612fbe81613651565b600d55604051908152f35b613001926040519384928392630a85bd0160e11b84523360048501528760248501526044840152608060648401526084830190613501565b038185335af1829181613097575b5061306357503d1561305c573d61302581613636565b906130336040519283613613565b81523d828483013e5b8051928361305757633250574960e11b835233600452602483fd5b019050fd5b606061303c565b6001600160e01b03191663757a42ff60e11b01613084575038808281612fb1565b633250574960e11b815233600452602490fd5b9091508381813d83116130d0575b6130af8183613613565b81010312612b3257516001600160e01b031981168103612b3257903861300f565b503d6130a5565b6339e3563760e11b83526004839052602483fd5b6130f433613945565b60001981019081116124f85733865260088752604086208187528752846040872055848652600987526040862055612fa3565b634e487b7160e01b86526041600452602486fd5b338114612f9b5761314b81613945565b848652600987526040862054818103613188575b508486526009875285604081205581865260088752604086209086528652846040812055612f9b565b8287526008885260408720828852885260408720548388526008895260408820828952895280604089205587526009885260408720553861315f565b6131cd8561479f565b81865260058752604086208054600019019055612f0a565b633250574960e11b83526004839052602483fd5b604051903d90823e3d90fd5b6108fc9150612ec4565b60405162461bcd60e51b815260206004820152601b60248201527a105b1b081d1bdad95b9cc81a185d99481899595b881b5a5b9d1959602a1b6044820152606490fd5b60405162461bcd60e51b8152602060048201526017602482015276139bdd08195b9bdd59da08115512081c1c9bdd9a591959604a1b6044820152606490fd5b5034610141576040366003190112610141576132ab613526565b6024356132b781613ad6565b33151580613366575b8061333b575b6133285781906001600160a01b0384811691167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258680a4825260066020526040822080546001600160a01b0319166001600160a01b0390921691909117905580f35b63a9fbf51f60e01b845233600452602484fd5b506001600160a01b038116845260076020908152604080862033875290915284205460ff16156132c6565b506001600160a01b0381163314156132c0565b50346101415760203660031901126101415760209060043561339a81613ad6565b50815260068252604060018060a01b0391205416604051908152f35b50346101415780600319360112610141576040519080600254908160011c91600181168015613469575b602084108114612c2557838652908115612bfe575060011461340c5761222884612b8d81860382613613565b600281527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace939250905b80821061344f57509091508101602001612b8d82612b7d565b919260018160209254838588010152019101909291613436565b92607f16926133e0565b905034612a8c576020366003190112612a8c576004356001600160e01b031981168103612b3257602092506134a781613a50565b9081156134cd575b81156134bd575b5015158152f35b6134c79150613aaa565b386134b6565b90506134d881613aaa565b906134af565b60005b8381106134f15750506000910152565b81810151838201526020016134e1565b9060209161351a815180928185528580860191016134de565b601f01601f1916010190565b600435906001600160a01b038216820361353c57565b600080fd5b602435906001600160a01b038216820361353c57565b606090600319011261353c576004356001600160a01b038116810361353c57906024356001600160a01b038116810361353c579060443590565b60a081019081106001600160401b038211176135ac57604052565b634e487b7160e01b600052604160045260246000fd5b606081019081106001600160401b038211176135ac57604052565b604081019081106001600160401b038211176135ac57604052565b60c081019081106001600160401b038211176135ac57604052565b601f909101601f19168101906001600160401b038211908210176135ac57604052565b6001600160401b0381116135ac57601f01601f191660200190565b60001981146112db5760010190565b9091906001600160a01b03831680156138ed576000838152600460205260408120546001600160a01b0316943315158061385e575b508515801561383c575b838352600560209081526040808520805460010190558785526004909152832080546001600160a01b031916851790558584886000805160206157b98339815191528680a4156137aa57600a54858352600b60205260408320819055600160401b8110156137965785612f8282600161371b9401600a55613914565b828603613755575b5050506001600160a01b031680830361373b57505050565b6364283d7b60e01b60005260045260245260445260646000fd5b61375e90613945565b60001981019290831161250c579060409181526008602052818120838252602052848282205584815260096020522055388080613723565b634e487b7160e01b83526041600452602483fd5b85831461371b576137ba86613945565b858352600960205260408320548181036137fb575b50858352600960205282604081205586835260086020526040832090835260205281604081205561371b565b8784526008602052604084208285526020526040842054888552600860205260408520828652602052806040862055845260096020526040842055386137cf565b6138458661479f565b868352600560205260408320805460001901905561369f565b8061389e575b1561386f5738613695565b84828761388857602491637e27328960e01b8252600452fd5b60449163177e802f60e01b825233600452602452fd5b5033861480156138cc575b806138645750848252600660205260408220546001600160a01b03163314613864565b5085825260076020908152604080842033855290915282205460ff166138a9565b633250574960e11b600052600060045260246000fd5b90816018029160188304036112db57565b600a5481101561392f57600a60005260206000200190600090565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0316801561396557600052600560205260406000205490565b6322718ad960e21b600052600060045260246000fd5b919082018092116112db57565b80511561392f5760200190565b80516001101561392f5760400190565b80516002101561392f5760600190565b80516003101561392f5760800190565b80516004101561392f5760a00190565b80516005101561392f5760c00190565b805182101561392f5760209160051b010190565b9060ff16908115613a0b5760ff160690565b634e487b7160e01b600052601260045260246000fd5b60061115613a2b57565b634e487b7160e01b600052602160045260246000fd5b60ff166008811015613a2b5790565b63ffffffff60e01b166380ac58cd60e01b8114908115613a99575b8115613a75575090565b63152a902d60e11b811491508115613a8b575090565b6301ffc9a760e01b14905090565b635b5e139f60e01b81149150613a6b565b6001600160e01b0319811663780e9d6360e01b14908115613ac9575090565b613ad39150613a50565b90565b6000818152600460205260409020546001600160a01b0316908115613af9575090565b637e27328960e01b60005260045260246000fd5b9291813b613b1c575b50505050565b604051630a85bd0160e11b81523360048201526001600160a01b0394851660248201526044810191909152608060648201529216919060209082908190613b67906084830190613501565b03816000865af18091600091613c06575b5090613bd157503d15613bca573d613b8f81613636565b90613b9d6040519283613613565b81523d6000602083013e5b80519081613bc55782633250574960e11b60005260045260246000fd5b602001fd5b6060613ba8565b6001600160e01b03191663757a42ff60e11b01613bf2575038808080613b16565b633250574960e11b60005260045260246000fd5b6020813d602011613c41575b81613c1f60209383613613565b81010312612a8c5751906001600160e01b031982168203610141575038613b78565b3d9150613c12565b60ff60019116019060ff82116112db57565b60ff16600c019060ff82116112db57565b9060ff8091169116019060ff82116112db57565b9091602060ff84161015613cad575b60ff613c9a84613c49565b931691602083101561392f578093921a90565b91506040516020810191825260208152613cc8604082613613565b519020600091613c8f565b80516004101561392f5760240190565b80516002101561392f5760220190565b80516001101561392f5760210190565b80516005101561392f5760250190565b80516003101561392f5760230190565b90815181101561392f570160200190565b9060005b8251811015613d6957613d4b8184613d23565b5160f81c60ff831610613d6057600101613d38565b60ff1692915050565b50505160001981019081116112db5760ff1690565b600181018091116112db57600a811015613dd557613d9b906147ef565b613ad3602360405180936203030360ec1b6020830152613dc481518092602086860191016134de565b81010301601f198101835282613613565b6064811015613e0f57613de7906147ef565b613ad36022604051809361030360f41b6020830152613dc481518092602086860191016134de565b6103e8811015613e4957613e22906147ef565b613ad360216040518093600360fc1b6020830152613dc481518092602086860191016134de565b613ad3906147ef565b9060405191613e6260c084613613565b6005835260a036602085013760405190613e7d604083613613565b60078252661f1f050b0b0b1f60c81b60208301526008811015613a2b57613ea391613d23565b5160f81c91600092835b6005811015613ef8578060ff600180931b841616613ecc575b01613ead565b613ed581613a21565b80613ee9613ee288613651565b97866139e5565b613ef282613a21565b52613ec6565b50509190918115613a0b57613f0f914206906139e5565b51613ad381613a21565b90600581101561392f5760051b0190565b604051906102008201906001600160401b038211838310176135ac5760408281526141b092613f598282613613565b6007815266111a585b5bdb9960ca1b602082015284528051613f7b8282613613565b60048152635275627960e01b602082015260208501528051613f9d8282613613565b600b81526a416c6578616e647269746560a81b6020820152818501528051613fc58282613613565b6007815266115b595c985b1960ca1b602082015260608501528051613fea8282613613565b6008815267536170706869726560c01b6020820152608085015280516140108282613613565b600981526854616e7a616e69746560b81b602082015260a085015280516140378282613613565b600681526514dc1a5b995b60d21b602082015260c0850152805161405b8282613613565b600a815269546f75726d616c696e6560b01b602082015260e085015280516140838282613613565b60088152672432b634b7b237b960c11b602082015261010085015280516140aa8282613613565b600a815269417175616d6172696e6560b01b602082015261012085015280516140d38282613613565b60098152684d6f7267616e69746560b81b602082015261014085015280516140fb8282613613565b600681526511d85c9b995d60d21b602082015261016085015280516141208282613613565b600781526614195c9a591bdd60ca1b602082015261018085015280516141468282613613565b60058152642a37b830bd60d91b60208201526101a0850152805161416a8282613613565b600781526643697472696e6560c81b60208201526101c085015261419081519182613613565b6008815267105b595d1a1e5cdd60c21b60208201526101e0840152613988565b51601060ff8216101561392f5760051b611fe016015190565b6040519060e08201906001600160401b038211838310176135ac5760408281526142e3926141f78282613613565b6007815266436c617373696360c81b6020820152845280516142198282613613565b600581526413dd9bda5960da1b60208201526020850152805161423c8282613613565b6006815265131959d95b9960d21b602082015281850152805161425f8282613613565b60048152632832b0b960e11b6020820152606085015280516142818282613613565b600581526414da59da5b60da1b6020820152608085015280516142a48282613613565b600481526310dc9a5d60e21b602082015260a08501526142c681519182613613565b600681526550696c6c6f7760d01b602082015260c0840152613995565b51600760ff8216101561392f5760051b611fe016015190565b6143d49060ff6143cc6040519261431284613591565b604080516143208282613613565b600881526714dd185b99185c9960c21b6020820152855280516143438282613613565b600481526346696e6560e01b6020820152602086015280516143658282613613565b60048152635075726560e01b60208201528186015280516143868282613613565b6009815268109c9a5b1b1a585b9d60ba1b602082015260608601526143ad81519182613613565b6008815267466c61776c65737360c01b602082015260808501526139a5565b511690613f19565b5190565b604051906143e7604083613613565b600782526615da5d1a1bdd5d60ca1b6020830152565b6143d49060ff6143cc6040519261441384613591565b61441b6143d8565b84526040805161442b8282613613565b600581526411985a5b9d60da1b60208201526020860152805161444e8282613613565b6006815265537562746c6560d01b60208201528186015280516144718282613613565b60068152655374726f6e6760d01b6020820152606086015261449581519182613613565b6008815267141bddd95c999d5b60c21b602082015260808501526139b5565b90600381101561392f5760051b0190565b6143d49060ff614549604051926144db846135c2565b604080516144e98282613613565b6005815264131a59da1d60da1b6020820152855280516145098282613613565b6005815264486561767960d81b6020820152602086015280519061452d8183613613565b6007825266115b5a5b995b9d60ca1b60208301528501526139c5565b5116906144b4565b6143d49060ff61454960405192614567846135c2565b61456f6143d8565b84526040805161457f8282613613565b600481526314dbd99d60e21b602082015260208601528051906145a28183613613565b600482526312185c9960e21b60208301528501526139d5565b604051906145cb6101a083613613565b61018082527f0606f77d1933272231145e090707210c3e0707074b3c610504048f36fc2b253d610180837f63605a0202025a606302020263635a020202ffffff4040405d001408080e2e0060208201527f210505072e001e050507ff0b4b342228285f3406060906312306060717145e0d60408201527f07070a9e881d2d2a3260490505060c2c1c050505061f1304040433cc711d2d2460608201527f3238600508051014310608060c102c0507053868f21d25353c3260080505211660808201527f460a090918122f0706069b8aff2321385f283e060607581a33070708400a200760a08201527f0707fc65bc2d1d28635054020204613c44040406635054020204ffb3d22d202660c08201527f5d530a080f0859500f080e0859500f080e08ffe027333022144a5e070b070b3860e08201527f48080a0807253006070627d3fc1f3133635d5a020202624e460305035f3928066101008201527f0806ffd3c0332b275d0000080d0d230202040505350303050808ba0000331f216101208201527f58624605030333480b090808586246050303baed582d331c5e4414070a075d406101408201527f0a080c08382809060706ffb531352e235e3814070907532e0a090909382009066101608201520152565b600090815260066020526040902080546001600160a01b0319169055565b906147c782613636565b6147d46040519182613613565b82815280926147e5601f1991613636565b0190602036910137565b6000908072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b811015614916575b600a906904ee2d6d415b85acef8160201b8110156148fa575b662386f26fc100008110156148e6575b6305f5e1008110156148d5575b6127108110156148c6575b60648110156148b8575b10156148ad575b600a6021614874600185016147bd565b938401015b60001901916f181899199a1a9b1b9c1cb0b131b232b360811b8282061a83530480156148a857600a9091614879565b505090565b600190910190614864565b60646002910493019261485d565b61271060049104930192614853565b6305f5e10060089104930192614848565b662386f26fc100006010910493019261483b565b602093909301926904ee2d6d415b85acef8160201b900461482b565b506040915072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8104614812565b613ad3614949825160f81c6150b9565b602061496a604061495f8387015160f81c6150b9565b95015160f81c6150b9565b6149a9826040519685614986899751809285808b0191016134de565b860161499a825180938580850191016134de565b010191828151948592016134de565b0103601f198101835282613613565b60606008821015613a2b5781614a615750506040516149d860c082613613565b608781527e051118446082be827e427e00be000042005442003c423c00425466362a2a3660208201527f667e260072263058265830267200267e7e220072223058225830227200227e0060408201526000805160206157598339815191526060820152600080516020615779833981519152608082015265f0a100f0a0b160cc1b60a082015290565b600060018303614b0657505050604051614a7c60c082613613565b608781527f01051118446082bfae7e415200bf000041005e410046411e004132643b12323760208201527f3c7e210078211a68213836214c0021527e1d00781d1a681d38361d4c001d520060408201526000805160206157598339815191526060820152600080516020615779833981519152608082015265f0a100f0a0b160cc1b60a082015290565b5060028203614bd9575050604051614b1f60c082613613565b609381527f0207131a98d0ae82d9527e27504a00027e00027e02504a02025b25383725005b60208201527f250059273635273600270000275248005248023a35253a00255200025200000060408201527f7e00007e02000102000203020403030405040607040705050708070908070a0960608201527e030b030c0b03050c050d0c0c0d0e0c0e0f0b0c0f0b0f1005080d08090d090e6080820152720685860785878801030201090300888900890160691b60a082015290565b600060038303614d4a57505050610140614bf66040519182613613565b61011181527f03012037406ea485ba5c7b4600851e007b1e265f1e104b3e003f46443d1e1c1f60208201527f4656111e38ff3e28df465cd71e34c73a1cbb4654c31e18a53e00ad4644a71e2460408201527f8f1e007b1a265f1a443d1a56111a5cd71a54c31a44a71a248f1a00851a00f7ba60608201527f1423da2c0bda2cebda14d1da010302010403020305030406050807030605050660808201527f0806090807080a08090a0a090b090c0b0a0b0d0b0c0e0b0e100c0f0e0b100d0e60a08201527f1110000e0f00110e040f06060f09090f0c01021202131202051305141305071460c08201527f071514070a150a16150a0d160d17160d1017101817101118111918110019001a60e08201527f19121c1b12131c131d1c13141d14151d15161d161e1d16171e17181e181f1e1861010082015270191f191a1f1c1d1b1d1e1b1b1e1f1a1b1f60781b61012082015290565b5060048203614e6f575050604051614d6461010082613613565b60d881527f04031c2870a088b0c07850410000c000502700473300333f002f415050274d4760208201527f3345333f432f417828277024335e1a3f5a18417800277000335e003f5a00410060408201527e41005024505024782824780024004c1c000aca404c1c72001c0f00ca72201c60608201527f010206010512010605020307020706030408030807041108050a09051312051460808201527f1305060a050913050914060b0a06070b070c0b07080c08110c090a0e090d150960a08201527f0e0d0914130915140a0b0f0a0f0e0b0c100b100f0c111012131613140013171860c08201527713001713181614151914191b141a00141b1a161817191a1b60401b60e082015290565b600091600503614f17575050604051614e8960a082613613565b606c81527f05010e121c249484ac6c7c5400841c007c1c6c3e1c3620540020546cc21c00c260208201527f54007c186c3e186cc218008418003ed60000ac36e0d60103020104030203050360408201527f060503040600050601020801080702050902090805000a050a0907080b080c0b60608201526b080d0c08090d090a0d0a0c0d60a01b608082015290565b90507f116f3a1b6d6d1b3a6f110001030201040302030602060503040903090803080660405191614f4960e084613613565b60a583527f0605151e547887aa8779577900aa000057004957003957390057497937005b4b60208401527f2473373a6b376b244b5b3a377300377979330073333a6b336b3a33730033790060408401528201527f040b0905060706080708090a090b0a0a0b0f0b100f080a0e0a0f0e07080d080e60808201527f0d05070c070d0c0f11120f10110e0f120d0e130c0d130c131400141300130e0060a0820152640e1200121160d81b60c082015290565b60021b906203fffc61fffc8316921682036112db57565b61ffff166003029061ffff82169182036112db57565b7f7d2c7b5c227572695c223a5c22646174613a6170706c69636174696f6e2f6f638152711d195d0b5cdd1c99585b4ed8985cd94d8d0b60721b602082015260320190565b60ff6000199116019060ff82116112db57565b7f2c5c22747970655c223a5c225343414c41525c222c5c226d696e5c223a5b305d8152692c5c226d61785c223a5b60b01b6020820152602a0190565b60408051916150c88284613613565b600283526020830191601f1901368337600f811690601082101561392f5783516001101561392f57600f916f181899199a1a9b1b9c1cb0b131b232b360811b901a602185015360041c16601081101561392f5782511561392f576f181899199a1a9b1b9c1cb0b131b232b360811b901a905390565b9060000b9060000b02908160000b9182036112db57565b90600681101561392f5760051b0190565b60ff60039116029060ff82169182036112db57565b60ff166006029060ff82169182036112db57565b613ad36001601561519e846153cf565b60176151c260ff6151b56151bc826151b58b6139b5565b511661529e565b986139c5565b604f6040519788947f5c227062724d6574616c6c6963526f7567686e6573735c223a7b5c226261736560208701526e436f6c6f72466163746f725c223a5b60881b604087015261521b815180926020868a0191016134de565b8501761618ae962e1136b2ba30b63634b1a330b1ba37b92e111d60491b838201526152508251809360206066850191016134de565b010174162e113937bab3b43732b9b9a330b1ba37b92e111d60591b83820152615283825180936020602c850191016134de565b0101607d60f81b838201520301601e19810184520182613613565b60ff16806152c657506040516152b5604082613613565b60018152600360fc1b602082015290565b600a811015615301576152d8906147ef565b613ad360236040518093620302e360ec1b6020830152613dc481518092602086860191016134de565b606481101561533b57615313906147ef565b613ad36022604051809361181760f11b6020830152613dc481518092602086860191016134de565b5060405161534a604082613613565b60018152603160f81b602082015290565b600190816153cd9395946020604051978461537f8a9651809285808a0191016134de565b8501600b60fa1b8382015261539d82518093856021850191016134de565b0101600b60fa1b838201526153bc8251809360206002850191016134de565b01010301601f198101845283613613565b565b613ad3906153e160ff6151b583613988565b9061185b60ff6151b56153f7826151b586613995565b936139a5565b60405160c061540c8183613613565b3682375061541981613a21565b80615455575060405161542b816135f8565b6000815260016020820152600260408201526001606082015260016080820152600160a082015290565b61545e81613a21565b6001810361549e5750604051615473816135f8565b600281526001602082015260006040820152600160608201526001608082015260001960a082015290565b6154a781613a21565b600281036154e857506040516154bc816135f8565b60008152600160208201526002604082015260001960608201526001608082015260001960a082015290565b6003906154f481613a21565b0361553057604051615505816135f8565b600281526001602082015260006040820152600019606082015260016080820152600160a082015290565b60405161553c816135f8565b600081526002602082015260016040820152600160608201526000196080820152600160a082015290565b908151156156a6576040519161557e606084613613565b604083527f4142434445464748494a4b4c4d4e4f505152535455565758595a61626364656660208401527f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f60408401528051600281018091116112db57600390046001600160fe1b03811681036112db576155fb9060021b6147bd565b9060208201908081518201956020870190815192600083525b88811061565857505060039394959650525106806001146156455760021461563a575090565b603d90600019015390565b50603d9081600019820153600119015390565b600360049199969901986001603f8b5182828260121c16870101518453828282600c1c16870101518385015382828260061c1687010151600285015316840101516003820153019497615614565b90506040516156b6602082613613565b6000815290565b613ad36156fa600083129260008460001461574157506040516156e1604082613613565b60018152602d60f81b6020820152935b615739576147ef565b916020604051938261571586945180928580880191016134de565b8301615729825180938580850191016134de565b010103601f198101835282613613565b6000036147ef565b60405190615750602083613613565b8152936156f156fe0c0d000d0e000e0f000f10010302010403020507020305030905030609030406040b06050807050908060a09060b0a070d0c07080d080e0d08090e090f0e090a2c5c22627974654f66667365745c223a302c5c22627974654c656e6774685c22ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef745c223a302c5c22636f6d706f6e656e74547970655c223a353132312c5c2263a2646970667358221220043acd465e65753b872609e231645507ea288ed1ea1d830fbab1368fdc9e81fd64736f6c634300081a0033

Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.