// File: contracts/generated/CrypToadzDeltas.sol



// SPDX-License-Identifier: CC0-1.0

/*
????????????????????????????????????????????????????????????????????????
?????????????????????????????????777777??J??????????????????????????????
???????????????????????????????~        ~?7777?JJ???????????????????????
???????????????????????????JJ!    ..          ~7!7?J????????????????????
????????????????????????????7^  ..                ^7????????????????????
?????????????????????????JJ!                        !JJ?????????????????
?????????????????????????JY7.                       !JJ?????????????????
???????????????????????JJ?~:....                  .^7J??????????????????
??????????????????????J7^.                        7YJ???????????????????
??????????????????????J7~:......                :!?J????????????????????
??????????????????????J7:.                      .:7J????????????????????
??????????????????????J?!^                  ....^!?J????????????????????
?????????????????????JJ7:                        .7J????????????????????
????????????????JJJJY7.                         ~?JJJJJJ????????????????
?????????????JJ!.                                      .!JJ?????????????
????????????????77?~ .G@@&&&&&&&&&&&&&&&&&&&&&&@@G. ~?77????????????????
???????????????????5&@@&J~~~~J&@@@@&J~~~~J&@@@@@@@@&Y7??????????????????
??????????????????7Y&@@&J~~~~J&@@@@&J~~~~J&@@@@@@@@B. ~?????????????????
?????????????????~ :#@@@@@@@@@@@@@@@@@@@@@@@@B.:&&. PG. !JJ?????????????
?????????????JJ~ .G@@P  GG  GG  GG  GG  GB.  .G@@G.  .7JJ???????????????
?????????????JJ!   ..                             .:~7?J????????????????
????????????J?!^:~P&@@!!@@!!@@!!@@!!@@!!@@?..?@&..&@7:^!?J??????????????
???????????JJ!.:PG~~YGGGGGGGPPBBPPBBPPBBPPGBGBB5~7&@&5..!JJ?????????????
?????????????JY?.:5G7~~.  :!!:  ::  ::  :!~~!:  &@#?..?YJ???????????????
???????????JJ?^::.  !B@@Y!J5G? .&&..&&. ?G5YYY77J~  .::^?JJ?????????????
??????????J7::?YJYYJ?5@@@@P~  !B@&..&@B!  ~J?P@@P?JYYJY?::7J????????????
??????????J7^^!??77??7!!!7?~  ~?7^  ^7?~  ~??7!!7??77??!^^7J????????????
???????????JJ?^::::::::::::^^^^::^^^^::^^^^::::::::::::^?JJ?????????????
??????????????JJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJ????????????????
????????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????????
*/

pragma solidity ^0.8.13;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165Checker.sol";

import "../lib/SSTORE2.sol";

import "../ICrypToadzDeltas.sol";
import "../ICrypToadzDeltaBank.sol";
import "../BufferUtils.sol";
import "../GIFDraw.sol";

contract CrypToadzDeltas is Ownable, ICrypToadzDeltas {   
    using ERC165Checker for address;

    mapping(uint256 => AddressAndIndex) deltaBank;

    /** @notice Contract responsible for rendering image pixels */
    IPixelRenderer public renderer;

    /**
    @notice Flag to disable use of setRenderer().
     */
    bool public rendererLocked = false;    

    /**
    @notice Permanently sets the rendererLocked flag to true.
     */
    function lockRenderer() external onlyOwner {
        require(
            address(renderer).supportsInterface(
                type(IPixelRenderer).interfaceId
            ),
            "Not IPixelRenderer"
        );
        rendererLocked = true;
    }

    /**
    @notice Sets the address of the renderer contract.
    @dev No checks are performed when setting, but lockRenderer() ensures that
    the final address implements the IPixelRenderer interface.
     */
    function setRenderer(address _renderer) external onlyOwner {
        require(!rendererLocked, "Renderer locked");
        renderer = IPixelRenderer(_renderer);
    }

    function drawDelta(GIFFrame memory frame, uint256 tokenId, uint8 deltaFile)
        external
        view
        returns (uint32[] memory buffer)
    {
        AddressAndIndex memory lookup = deltaBank[deltaFile];

        if (lookup._address != address(0)) {
            bytes memory deltaBuffer = ICrypToadzDeltaBank(lookup._address).getBufferAtIndex(lookup._index);
            (uint position, ) = BufferUtils.advanceToTokenPositionDelta(tokenId, deltaBuffer);

            // Deliberately choosing to "spin to win" here, rather than store even more mapping state
            // to avoid traversal of a delta bucket. This may not end up being the best strategy, 
            // since the read gas cost of scanning is given to every token, even those without deltas.

            if(position < deltaBuffer.length) {
                position = GIFDraw.draw(renderer, frame, deltaBuffer, position, 0, 0, false);
            }
        }
        return (frame.buffer);      
    }

    function getDeltaFileForToken(uint256 tokenId) public pure returns (int8) {
        if(tokenId >= 2 && tokenId <= 270) {
            return 0;
        }
        if(tokenId >= 281 && tokenId <= 427) {
            return 1;
        }
        if(tokenId >= 429 && tokenId <= 692) {
            return 2;
        }
        if(tokenId >= 694 && tokenId <= 969) {
            return 3;
        }
        if(tokenId >= 982 && tokenId <= 1218) {
            return 4;
        }
        if(tokenId >= 1220 && tokenId <= 1422) {
            return 5;
        }
        if(tokenId >= 1425 && tokenId <= 1852) {
            return 6;
        }
        if(tokenId >= 1853 && tokenId <= 2157) {
            return 7;
        }
        if(tokenId >= 2166 && tokenId <= 2484) {
            return 8;
        }
        if(tokenId >= 2485 && tokenId <= 2729) {
            return 9;
        }
        if(tokenId >= 2737 && tokenId <= 2931) {
            return 10;
        }
        if(tokenId >= 2935 && tokenId <= 3287) {
            return 11;
        }
        if(tokenId >= 3289 && tokenId <= 3610) {
            return 12;
        }
        if(tokenId >= 3617 && tokenId <= 3897) {
            return 13;
        }
        if(tokenId >= 3900 && tokenId <= 4242) {
            return 14;
        }
        if(tokenId >= 4247 && tokenId <= 4505) {
            return 15;
        }
        if(tokenId >= 4509 && tokenId <= 4749) {
            return 16;
        }
        if(tokenId >= 4765 && tokenId <= 5036) {
            return 17;
        }
        if(tokenId >= 5038 && tokenId <= 5348) {
            return 18;
        }
        if(tokenId >= 5351 && tokenId <= 5592) {
            return 19;
        }
        if(tokenId >= 5604 && tokenId <= 5788) {
            return 20;
        }
        if(tokenId >= 5793 && tokenId <= 6148) {
            return 21;
        }
        if(tokenId >= 6149 && tokenId <= 6340) {
            return 22;
        }
        if(tokenId >= 6342 && tokenId <= 6598) {
            return 23;
        }
        if(tokenId >= 6615 && tokenId <= 6896) {
            return 24;
        }
        if(tokenId >= 6898 && tokenId <= 6963) {
            return 25;
        }
        return -1;
    }

    struct Addresses {
        address _a;
        address _b;
        address _c;
    }

    struct AddressAndIndex {
        address _address;
        uint8 _index;
    }

    function setAddresses(Addresses memory a) external onlyOwner {        
        deltaBank[0] = AddressAndIndex(a._a, 0);
        deltaBank[1] = AddressAndIndex(a._a, 1);
        deltaBank[2] = AddressAndIndex(a._a, 2);
        deltaBank[3] = AddressAndIndex(a._a, 3);
        deltaBank[4] = AddressAndIndex(a._a, 4);
        deltaBank[5] = AddressAndIndex(a._a, 5);
        deltaBank[6] = AddressAndIndex(a._a, 6);
        deltaBank[7] = AddressAndIndex(a._a, 7);
        deltaBank[8] = AddressAndIndex(a._a, 8);
        deltaBank[9] = AddressAndIndex(a._a, 9);
        deltaBank[10] = AddressAndIndex(a._a, 10);
        deltaBank[11] = AddressAndIndex(a._b, 0);
        deltaBank[12] = AddressAndIndex(a._b, 1);
        deltaBank[13] = AddressAndIndex(a._b, 2);
        deltaBank[14] = AddressAndIndex(a._b, 3);
        deltaBank[15] = AddressAndIndex(a._b, 4);
        deltaBank[16] = AddressAndIndex(a._b, 5);
        deltaBank[17] = AddressAndIndex(a._b, 6);
        deltaBank[18] = AddressAndIndex(a._b, 7);
        deltaBank[19] = AddressAndIndex(a._b, 8);
        deltaBank[20] = AddressAndIndex(a._b, 9);
        deltaBank[21] = AddressAndIndex(a._b, 10);
        deltaBank[22] = AddressAndIndex(a._c, 0);
        deltaBank[23] = AddressAndIndex(a._c, 1);
        deltaBank[24] = AddressAndIndex(a._c, 2);
        deltaBank[25] = AddressAndIndex(a._c, 3);
    }
}

contract CrypToadzDeltasA is ICrypToadzDeltaBank {
    mapping(uint8 => address) deltaData;
    mapping(uint8 => uint16) deltaLengths;

    function getBufferAtIndex(uint8 index) external view returns (bytes memory buffer) {
        return BufferUtils.decompress(deltaData[index], deltaLengths[index]);
    }

    constructor() {

        deltaLengths[0] = 6116;
        deltaLengths[1] = 6088;
        deltaLengths[2] = 6141;
        deltaLengths[3] = 6107;
        deltaLengths[4] = 6099;
        deltaLengths[5] = 6143;
        deltaLengths[6] = 6100;
        deltaLengths[7] = 5736;
        deltaLengths[8] = 6071;
        deltaLengths[9] = 5738;
        deltaLengths[10] = 6099;

        deltaData[0] = SSTORE2.write(hex"c5986bac5d5511c7ef9eb5f679ec73ce7e3fceeb1e246a220918c4b45ad492f281f8f8a0b531a69798ca07098a4d4adaa23436602835f820158108a660c0aa351a080613e2930635c657a2442212633455fba96ad0a61f64fb5b6befb37b6f4baf1c83e1c364af99f59a35eb3fb366b62c2d2d6d829cf2c747b6f76988e3c5e2f44271fa900f05501841c863da09944239b23c56ccf9a79957be6bcb96f29603fb2eb78bb43371ba49b59897d805a56716a6dd0fece2d287efc30f7c08d900d900d920a936f6f906c803be21df70952221b22810896847b4e3c02a27b151123e61cd24b0ca4a822c492aa553be19f28c76463b0fe60781e00bf882be0259013fe43ba46f68daa93823da23f3e57ca35c73d681b5de2f6ed8ebd8834749c0f7d5d6227fbbf9aaf2a9dbded9aacc9a600188130b5a88dd3d49e9bbd0aef0c4473fd80caccc94d4eada819734ab1ebc222a1f5bb9b21aec66222d087b4b07ea425e76297d23595a72cb956b9e29e3d73c57a6dbfe55be61eba9f2e2dda76fa926723097c3b8acdee2d02d0cd59a70717d6800f92c5a406368cae243887687767704d1ee4e457911148b466bed31de43ee4dc5e5c25d4ea17bc87a53d15cbacba5bb9c4af7532887e8ebd3c7e5bb5cbecbc5eb4101b1fe00b98f1c20b80041fbccf199e3d3ef8f44030c1764ba804307c882896840a201890b485c40a201890e9917322f644cc8bc700c3116f0b81163018f8ee803402e0072018f8e991333273672e6c4cc899903a05c00e502269dd097204b91012c979bd229f352e6a5f4a5cc03682e4073b9419d21cb3857c6b9009dce91033c17e06980a773fa73fa73fa01a106841a10ea82350bd62cb05541df1039a0d48052034a0d286588cd87dccb88f923da23dae31ce2cec6f063f809f327b427b4a793d78381ed164d87bee0974f3eb32db1a068151592b878a753d84b773a46a9d07a85e011323464362d1a6f903163a6cc9b229bb2e9f268e322707d0b7dbf855479f86d5179fcf8efcbd2f72fab9c015feb19ca710843ecd05f2646201bc0031767809640c6198c21200c749c0163808b035c1c9f76c0f8001ea83840c201124e68dacc0d2fc06d9145c8808213cd206440c0010212cf20f8241795cc20da5cb5c355ab143e85cfe033f80c3e83cfe173f81c3ebfe00acef23aebe577df73d2b307eb74218f20d9816877697b6d08de83efd1ee75ae64ec0dd68cfb3eb1b9dc72ede65165151cb4d7c3b188727dbe7d1341f99a48eaf3f571de806f001fe2d021e323f8083ee61b9be8c8d744c9946fca37e39bf1cd199f0fb6b2cfbd76e38bb3a2bc7d65e32bab8d19c0a6d267413695411f1ad8102e7663781fbe51003e80b78a782221321412a350c818ab141b4646c1b972f4c7f0b59236945b058d7250010d7d83de9135e9d33bdeaead726b83e68e0681df7ef858f9c3878fb556c73da9639e8975d2f6df5fdb59973ff9de77ca5f3e796cee174535a90a94c204657da46f2689c64f147ea2f113859f18a756d67193c639357ea2f013859f68fc44e3271a3f51f8895e1e7d88f56fb71b7ff2d6ddf34dcbf24f972e371ba3a9b0e93c322b13953b6663139189f23cab4b3ca5da8702da3c894b3c833a853236ce8de31ac512514343382c0a090a29145228a4504850482d8faeaf2da1562b335c2f3acc155028a05629a05040a140133dd68f181f5e2462ec6ce2d71f1f7ac8385532cf3a04c7121c4b702cc1b104c7121c4b702cc1b104c7921e4e86b60eda3a6859650371fdfa4746c3ddac175978ed3bf81569b09ffb7b687fdc3117b6fb035bcb4f1dd85b5eb7f28ef21f471fb8bab211aedbc2955b00b7e5574f6b9bdddac8dbdeaae7955d3ab878a7d368ec747a5c2a7ddd96a86edb9ec0f15a6bb4773ccf3eb54ecf15d56b5527e921b3d8eff2a49adcc9855a10ebfbf407f0017cc837345fe421f28876c437461ed38e9127b413da29eba7e6db0648c69f9067f019bc4d48e073c6e71d00d6b54f9853202b1853202fd075487b841dc67cc7c82686d86f42df84f34e38eb14d9b40b00e197e95ba66fd9b4b1db8cf68cf68c3566d86dc6f819369d715bb3e846ec7dd3d9401dbf24405df5ccad03d88f35417de73776796b2290cd60932a73b5d9695267a03632ed6f72be4f6f7beb7a39df67167189438b0cfeeccbe5e577bf5c1b7f9e3d4ed88d8916e5d19b6f2aefbf6cd3c6f33dc5626b9733cfb190e28abd24fb2ce377619dcd8755466f6b17bea4abc2cd0ba9a970fb423a2aa4a3423a2aa4a342ca292042c5ec61eb15daf62536750aedd483785d48294d95a0789555c6134584321583e2753607165247c9cde15993882545bc0ab61c7c98dfbb081e1ea89f7bdd5ccb6f8ebcd75ccd85eb5d8dc222e67a1496b0576492fb17788694498ecd53c4098cf6ca468b85f2c92f35ceb6ebda1b1771b6238cdd604f66d380a7a0c76d3ad0b18b686caffba2f440b44b1c734deceef0b213d73a9da34d9271fc4459271961f574c4f6c9f8da22467e843ed73155d9cf7fba52def5c5cbcb8bd2b42c7ff5e6f2c17b5ef1a6a66c6ee74d0d2e3daaab73ca66644de96c60173525b3f891bd80ca1e068291bd8caa843ebb7c365064ada6843670846f4a6803c9a8299d258dec65567635708ceca556b1aaf91f20ae2d9fe355a5732eaebdd8846f533a7fb3b1dc1d77ec2cf7bcf1b5eb55c9dfa26fffd95163f252c7faff02c1c7d9ef7d56e3671fbdae7ceefbb7a695c6d1aaeb4acefcbd30bf4dacd96b93d7269e9bf68c592b73d6e6fb416316f28e72cf9d07d633cbafe9bb468c594c897ffdfed3e5a6779fbaab328b29e54dd2484d44f9ee740095350dbc2de1492abbecd835ff69a89d28e71dca7921c9118f3e4e25f6df0dfd94f40e25bdd88aa36fab8eea5f0eb23e71acae4004801a708a8d042497d46baacf9e94f832605c5da1987f3c8afa4d51bf295bbbd1ef7b7501610a89c00259ccd551f62bea38e5730581d7543512986b9d1053d71615628a8a306862aea2d65321092ef59ea2de53d47b2a2472856388f991d71421a63a32ff93c4c6e6aa4a9238b04e61fe2ba998b562d6a22e54d4852a66ad98b562d64998535754e67f934a9011cb4d652569609d476c24640d5b37729e8cfebaea121b1de9b3352436c9b0494ebf8df79c8bc2c7c47b455da96c5dc9989c3105630ad6281847f63a7f0b9c82be21f2217387cc1d123c78179c2177399cd64ec8bd8fe047f063f03166cd31fc187e027626b427b4a793a79be8fbaa958f2c127d7fb74811f6ecfffba7c41f1a6dea2aaf357f031cde00e10d10de0031f97aa7f3e7e6ccfd3b0f2f72e6bf30f6223bf1d1fbbedc39dfcfb6553fda4e31e6b635d1edab8fbc6779dd87174dcc63abd044a189421365d30a934e24f6c19d3fb60bdae8df8df69fbbefd08bd1fe79c65c621fd8bfeebabafcd98e5de5d7ef7fe09c806e538333916b8967706f15e6aeda5cfee8e0bef13c96da4ceb4567577566556755f38c6a9e4dcdb3a879f654674d0e9b5bf3964fecdc501edebe41af89b19586ca39f71639b3cb995dff4c8dd76ecfebbb3e137636473afdddc7862f7ca4ffe538e73d8adf1ce5e48993e5c9bf3fdf24295227294496ff00");
        deltaData[1] = SSTORE2.write(hex"b5985ba824571586abd6aaeaaeeeaefbb5abbbfa800f82c120460c5141c3180d68500c320492872028490609488ce8a838c4cb43403326222121260f4ef01210a3090c1a2143f2205ef2366a1411c507f1326a14f5c5f2dbbb6afa9c93991ce7203e2cba7aaf7fedaada7baf7ffdab5ad7712ac771a47fec4b0ff71f7cddabc4fc71c342a42c3a9c2fb7ceb3a76ee87f72f3db27d6398f451658889558158b5bc71bc02fc3eff62f5c7de516e8027401ba00dd017819c02b2cf0a7d1666e818bc2ded28db0184bb00ccbb1022bb1aa7825811bfb38e7fef2effee7bffcbd3704a722710e98df2abf7c7c0ce9effad8edfddd9fbcc3b7209fe79ccc45a6532cc06657007cab7d8cd39f7d2a199e37b7b3b92116613196606986e1cb527b17b7c04aacc26a7c75fe1a26fba66b26fbf6cf1e3b66279bd54c986080e6d930f99cf75824c34dcc3b2f4aacc2ea6191c264b8b9598b105f882fc417e18b92e1a1cc1a45f8227c11be185f9c0c0f6bd62ec617339e309e24c30b98f54c184f184f194f194ff7bc588a3fc59fe2cff067c9f0b2660f32c633c673c6f3645800b32f39e339e305e345322c8ad9ab82f182672bea61d3cb64582cb38725be125f590f87a14a8645acccfee2abf055b5392418be7abbc018981a4c0da606d38069c034601a300d98064c03a601d38059e25fe25fe25fe25fe25fe25fe25fe25fd5afdd9edae74fde71d0a9bd6a9b0bdfffde77fbe79e393380bd05168a7891883fb367cb0d82d703be12bfd73f77fa4cff9d6f9ce99f3576fa4c30047152bd4cd4cb4539989e9f8837618269241a446fd8e64778ef4387c98f6b086c6de0affef0cf6d6eb8636eb855fe16004770f8fdbb8e1ce9fffae4d1feef6f3bd2fff8e835fdb9fb6e9abb266032c3e618ef3509b108630126ace4844926ace48409cd7b4ec14ec14ec14ec1f2f8ee14ec14ec14ec14ecd46021936985b1e2c1d4ac0f464c404c404c404c404c404c404c40cc6c82819d819b819b819b819b333ee79e73c6e78ccf23bb616a33cbc7f02f66e22de6d8020bb108036357114c082664ee30102f041b820dc1b0e16a57194c04269ab2ad6022301198088cc9c4187f8c3fc61fe38fb94fcc7d62fc261b13fc09fe047f823fc19fe04ff0939542568ad9c1145c0a2e0597824bb94fca7d52f029f814bcc9d60c5c062e039781cbc065e0327019b80c9cc9da1c5c0e2e079783cbc1e5e0727039b81c9cc9e2025c01ae0057802bc015e00a7005b8029cc9ea125c09ae64ad4a7025b8125c09ae0457822341d49e3eb015d80a6cc5fe56602bb015d80a6c0596445293e935d81a6c0db6065b738e6ab035d81a6c0d1606101840600021fb7d93fd0d710d710d710d710d710d67a1e12c34c435c4c10a022b08ac20860d96c42c895912b3246649cc929825314b6296c42c898125049610584260098125049610c3122d73b4ccd13247cb1c2d73b4ccd13247cb1c2d73b4ac57cb7d5be25be25be25be25bc332c4ae885d11bb227645ec8ad815b12b6257c4ae38ff2bceff8af3bf06bf06bf06bf06bf06bf06bf06bfe6bcafc1afc1afc1af0d9e7ce9c077e03bf01df80e7c07be03df81efc077e03bf01b701b701b701b701bf268036e0366837f07df0ebe1d7c3bf876f0ed30c70efe1de6d8c9ae832b2eb34cf38163b70c9ce613e8f3207eb14b16bba4f08e6dc0d3f77e794b822e24e87ab9adceae9f0c6c630282e89d04fc560d55f5bf79757ffcec9d7d1fc7fd7527cef4fd9ffff4829d004a71a00e07ea70a00e07ea70a00e091ad1d91c5b602106ab421dde0c969da518db3c3314c336cdd8a619db44b15668c587567c68c58756145af128e04a01f728e04201176846e6c4cc29207362a0191f9af1a1191f9a5168c6a3c02bbceb2d88591003ed08855e28f442a177a01c85729c7081851871508f47f1578abf17121712378a004104881101e1521ca848a12227223622164a5228c9431c28e2c08b888d88a550082241100982487062e262d604aa52a84aa12a85aabc51387871663594505c0401213171880889b96742594b904ed09842632e3426d098378a0b2f2136211681e124ec0922c3491a8c58284da13485d2144a53284da1340f01e2213e04f121880f417c48ca3d11200ef4a6d09b0fbdf9d09b0fbd29f4e6214a1451e265c465c451000571e264dc333371dc13ca5328cf87f27c28cf87f214caf3102e4a0df472627362299c8280919c7b22621c2850a140070a74a040070a5428d01b858d5710571047b115048e83c0710a13c73d0bde136a54a8d1811a1da8d1811a156af446f1e395c497b9d1d418f745040922484a62a14a852a15aa54a852a14a852a3dc491576546d362c42190048124462055c4419b026d0ab4a9d0a6409b026d7ad0a6429b9e154ec4219a04d124882607ca142853a04c853215ca1428d383323d28d3434809424a10518288124494035dca4897025d8aa5cbc48a28070a74a0408102654b8124769b591a74a037077a73a037077a732cbd3177b7848a5a910defb2698e6eb5d567aecefa276e7cf3a0ad7c1e60520dda21a886449d5737017ea3d55623b83ff7bb73a623981f1034642427dc9e822abf797bc76f7de8fdfd573e7aeca0cee63d8779bcf701be13bff6271f8cfb679e7fb721b0d6064c9a510735301cd7018b10b4e240120e09afe6f1482487c3ed70489503a366f39b624f4d22961ae39afab262013be6eb18634165d3de729827bd15f04346f4f5f92bfed65f75fd3fde3b3ce51a6a65c6e90aeb7842f3945c07dd48976cd9acc5189b757b2891e33c276ecef89c71d3962df8bfe01a5a134b656042c642c6a02b89588588b922fec7e9483d8676188f793be845a01249d65003d7175006d8147f0a365d61e0a008810ac4b48336c5c1e4e63f981c4c0e86941652570aae49cf21254d3a325682ab4c2bc975c5b355dda84232ab44c4a614be1a5fdd8d4a231b5386391adeafe92eaa28dc256bb3644d5b625baedbcef420186bbce2ff8aff6be2d75cafb9eed6b71d66476f3f0cf82380afb707f5f8b56feacfdeff60ffafa79e48873418ab9dd942b37566abccf6b01d7a7e0bcc329b25364b69969025d361894e8c9f14dcfe9e4f3ca27642b32646492d9bbb0ef3889fdeaa86fb1e3819ecedb75cfa2d977ecbf54daf120cfd4810dcbded8068fc870ec86812a347062df2b96dbbf7f4876f1b73bed8edaf863ecad0e63d8779cecf03fef88b737efd3fe5bce97c470d7b89b9ff85ed13f36a7b3ed614830219bee8d84ac2eb7df1222b7ba01ebbffb05bf13001cf5a9a3ebf26e698fde2f15b2f3f685d94a3e771f43c2ba00ac4901144fc5a71c3af152bfc5ae1515811e1711c3d2b0cf86f8b3cbfb668f36b8b2fbf95a1fdc2aeab298c9ef9a2f0a2f53d606d1f39cc6938b55daac71f78f452d6f651b3546a8ecf894f1def7ffdc36bfb1ffde0c63f3a97da8e5fac151fdb6c411b2bda58d1c68236d6a0c04afbb41ad4db365bd1c58a2e5674b142f2ca9ba8fd8035b1bad86860616b94add191f0d5545548ff7cdb6db4b072ac4d9bade85d5d98aa5b5fd0721bedabe6e8b3ad4a5150f4adda8f5cbb6db74bdb2de85c45cb2adbae685945cbaafde0b5db7ebbb4df83ae35a9048e02a26857b51fc076db7097365cd1b026d59463a3685545abaafd20b6db86bbb4e162f52a388a8c5264145dbab7057769c18d3e55525639728a065534a8da8f64bb2db84b0b6eb4a89ab4e6482ac548d19b6a3f9aedb6e02e2db8a03d157da91c59455f2afa52ed07b4fd2db8d198962238d24ad15274a4da8f69fbdbef414fe6b6dd5674a3a21bd57e58dbdf7a2bfad16845c3dc3a1637452faafdc0b6bfdd56ab1b394fa48d52f0149da8a48f52f814ada8f683dbfe765bd18e8a56d4b1182ac550c7d65a5fa2b51634a4d23a5fac6d5674a4a223151d292be65a71ff15f75f319f29a4176b9d5fa23576ff3fadf15747aab04439ddd71a5fd8167fedbfd5abaf6febd5d953371c54affe03");
        deltaData[2] = SSTORE2.write(hex"cd985da85c5715c7ef5efbcccc998ff339e79c99b933f7a20f45fa22fa50141f5ad362254f5625555a048bdfc1484ad382a5819a94a01543497d681b2a8ab1c6a894b40d1ada08a611bc102c8828a8f881a4351422a9a8f5a139fef63e7b4eeeccbd779afba0f8b03973fe6bed337bafbdf67ffdf7fea15a5a7a7c6969a9519e7ffe7c79e2c4f9f2f0077696f7df7a63f995fdfbdf824194178b78892c35625a22bac9b3158bd749a4d149a5d18d697d69f478f678063c039e21cf9067c433e219e31fe39ff09ef09ef24c79f679f679663c339e39cf9c67817f913ecb00af33e3280fdd9494a7eeb8b96907d5c8459ab416cda7b5699dfcc7385f8f5d953f3d72ccaf1c7bb480168a6a76685d51ad16cda7b55fa0c30df6ebb7dfbbbbbcf163b7746c27a6234c45310dc51414c3570c59315cc5508561aabcff229d77d9ce8f1c0dcb73bffd706a3b3707d5b05a03513ebffd21cf9148118b1a10cb011f189a96d1f019f15cc63ea1cf84f7c9506465748e8fefe77b7afaf1b2fccb3bc68bfe60a99bca522f151dd2227e27b494df192d4f170c20dd6a103f3783103388db76ec287fb1eb96f2f55fae1dad06d1be1acf26316e12e36644e34f9ae934be346c2d703246b5121aa1f389bf8fbddda4f1bbcd373afceef0bd4ed72c244bd0a0817579eff2dee3bdc77b0fff1e7d7be03df0003c000fc003f0a02d128087e02178081e82876d1b1809b145d8226c11b6085bd4b60193085b8c2dc616638b7d91182c014bc012b08439251d91043c054fc153f094efa4d852e69032b6147b1f7b1f7b1f7b1f7b1f7b9fbe7d6c19b60c5b862dc39661cbe89b75ed8249864f8e4f8e4f8e4f8e4f8e4fdea91633c75e602fb017d80bbe5b800dc0066003b0017d06f419820dc1866043b021d8086c0436021b818d0cc6ff8f588b65f065f065f065f065f065f031f8187c0c3e061f838f0dce1a4fc027e013f009f8047c6270f262c2faaf605bc1b6826d05db0ab6156c2bd856c157c157c157c157c157d9afabc616ff86247cabddd4af1efe64b5fb3b7dbb4795d9a3d55e2400fddfe3f84eebf8d87bf7d71b592dd8c8aef31f6b8eb9ffd077cbbfdf7443fd2fe298c0ec78a9fee5e59a632e7de8b68a633cc6ed316ecff00c7369987de1577bc0f75ff97fd8c917eb29fe75ef9de5be77bfdd4d31648ab41e2da3e544bd082fe37c6a66c44ffef9deeb178d585308348540132f4d21d0c44c53083481d714024df0358540b3009a42a029049a42a0590c4d21d02c88a610681645530834f1d614024dcccd6c35c540176935ebc533fd27834faa74397087d84157ebf0bacb235dbe72e94af9b7cb57cadffde155af4a13be4aac9519499e5ea963f5d18fef2c77eddad59cd641b5ae0e4a5507956ca33e35641b89166ee7cb8c6569c5cefaf899838dca11b66d30a946bf62e656c8e05d042e5dfc878dc0850bff721180b2c28075e099070399e6f8a34f3c722d393e96e9d6bb74fc9bd5d6f371f2716a1ba2e777db903b24d1e1bdc37b97df5d7f858e23dbf1c2c5b21e8a62288645551eacba8949f9d2b9b3e5da4f5ef06a51624a7ac3949ce03aa9b6986795cb9f9e3c585e3a71a47c6aefa796abf8b25a2e41c525a8b8041597a0e21254e612545c828a4b5071092a2e41cd5a7924a714e9bb5cd0a47cfee9b3e5cf9e3edb5abf0c681cd6cd15c856c0fa85efa9a37cf7eecf5c8b5ab979bb1dde478737c474583bf9f5335bd7ed705ded4ee6ea37beadaeabe381c9a2d97a3eade53e3e3e3e3e3e3e3e3e3e3e3e7e325be7dbf8b4f169e3d38e66eabeea60eb049695aed67f932a9d2a2bbad8bbc1265a009f5e6fa316d8a0017a9bd47e83051beabe8af966cc7fc6d8e3604e03f8b50e50093e093e49b0500f6ca50554dfd8e8df0f166a0295e193055b6882de9c16f037d101bd4d7480c1822db400ff39c23e0ab6d603cbd89783c5ba606cecace798b51e930fe3e44db44258e98509be9364b16e5849de4c3bd0925b6b0671fbd29bdf9724fefb71da63a9d1916d79feb5cb83ad08d7943ba352eb92372d7375894be74adb5c59abcad9ed32553627bffdd945cae6ae9a5a1e3e784f79e0812f386a092a12dcb8f13fb191c0e7cb81e5a17a537f9a0e5fb2e7c0f50cfae0a33fda94453dc7a29e6351cfcddf732ceacdb1a8e762e13916f55c3c3c170fcf9df760d1ddf56a19dd81fea856ab306a8746dd9751b6a70edcbe230f2d0adcdddba9a1f7497518f4aa44f915edb44d98ba023261d154408f0ae8b90ae81171edfb0fd4117fe689a7aea5649a73556e3b3cf7adefeb6a0e3d7bae81131eac87f2124370796b86e3af3f926b8ff092001e55d06b9a9a4205f78303743ead4ce7d78eed2d5f7ce823e5da335f2eef3afdf0e72a35c429a155c0be44a89dd1786f170420b1796d23d901ef146ead135a6af35c75c1bbf4ed456efdb119a16aa2dec3d6c316442e27b005a9dd1b2ac016600ba35a0eaa102c048ba27adfa8082c028b49d038ae7348c5d8626c31b6247239c5f7936a9fa9045b822d8d5c9e613382d9e8fc145b8aad1fb9dcc3d64fed9e547d6c7d6c5954ef4f9581656079544b509583e560456453b196a385c9326c05b64164e5a91ab0d10646aa621b601b601b820fc187e0087685605743e23e2c9c94ed5b39ab4660a3e2100bb873fdc542b4487b5f8326fe6abd5fae6a4e536369287f85f25795f23f8263601da101e5b6fde3f5263af1c57b0ca134372314b164127ea3debf870fef31070daf3e68b843067f73ace633b7c95beb37b98d9c8b92dbf0dfd9aef2395eeb4a18d3117eea74b025bdefe1f0414bf886f07efdd8d1f2df674ec5eb894e8c5c3452d1c8442311a32a21858414230d8d2c3492d0c84147ea10d80ff870c39bde9994fbde56ae15c51bff15edd54a67ef53d66bb039cd25682d6933d036836c330176bfb0fb2df5b1fba73a4c3a9165021b00732e81094ca513d860bd26d36831e9e2db4dabb30bcc60ee69c4b2c3ac3ed36833813104b610d8c29e73600b737f23963166759b0ef0874504061118c468748141ccbd8e581699d5751a5d27308b70c0117bc7833fec22965d66f59e46ef098c2311bef6ce075fc33a1bee7df0992e36ec23867de634a046f7096c24309124a93d2b8861a2391da853fc60268195045632670931ac34a709353a50602981a1048632670d310c35a70b355a50602cc9f0b37745e6dcc87c2d6bcdea438d3614984c727cedbd91395f66f6fe482ca3cdea4681e1a44a649a397c67f65e492cc3cd6a4a81f16c5186edec55046c27037c2de36dbc7392a1212abe0d0b5ebdb6c0dfb2e016f7518bb4e77675e738fd5f6bcf9335f13e7bdfe71711ef734e7faaf26b2fef18558ea9bd98a8544deceeb162779715bbfbacb8bad3225395a993d05275bf15bb3baed8dd73c54e15c54e19e15fa4ff01");
        deltaData[3] = SSTORE2.write(hex"cd986fcc1c5515c6e79e7b77677676677676667676f7a54d34d19862201a035183345a4334c668522b0152fd20484bacb1d89ad6d0b489164321b1162404b4022dc42f985a531a0850df0251a29110138342e21f9a2889405b8c8104b9fe66e6eef47d4bbbf6356afc707377e73e67cefd73ce739f330f8ae76df43caf65bf7ed9a5f6d59b6fb03b6e3d6c5fd872ad7dfdd1430503a2c28148988a7413d1dd4ca447dfa38fe8a34c744cebf33f0197a4a207fc4ff99f319ed1e7f439fd907e98892906d22ad2c770fccef2fd767ecb7abbe9fd17b66b67002b27a5616994892ab29f36e01b570eeca12b3f52835b439136cda705b40e2d1cce37e0bf7ce52afbec77ee98f5e6c7010f1857e534640a64e049fe6ce3bfb6bbef8aed13bf5b6ded0bef39af02b447b54b7f242ae07730a69f88d74dc5ebb10131adcfef012de5774e1bb28145226a94888cf03e2e5b4ee31d9394c6efb989c832debb8c67cbc622cb27bf60122bead9edd91f54ce0d2f31031a46ad98d6674291289f16444f637045356b0cec67375f672f5dbb2a3d07c36a6fea63a571a4521e294729d55166ee08b35fbb7831f6e8bdb7db876fb9c15ebde501fbcb932746f5def1b26e9797e1a047dfa38fe8a3986da18fe9fbf47d9e273d1af801cf529ea53ccbe833fa9c3ea71fd20f6362267a6ed1a9fe8b7879de6d83b276d3bbf20ad865e900558f1eb08ae859aa8ae959aeead3b36435a067d92aa567e92aa367f92aa7c7811ad20fb3dfe3e0ed95839f7ced4bcd4c6a0799035633f943135fdbb66dabe32b65dd73f11fcff50dc700fe43795edbfe69df3e7bdbdd1fb42bb6efb0279e3b66575f7cb93dfedb635b2ae332203b799d039d823ce0775890b13d5a2486ec952ecfba3cebf1acc791f7f8dfe37f14d2ba349e4791b4c8ec16fb2311e311e371589d9e8e198f198f1967dfda04bac4606230fd80d6a185d509eb3ed83e3efa8cf7194f184f184f184f18e7f435a72f09e309e303c6078c0f181f303e607cc0f880f101e329e329e36958458b661775caba52d6958249c16460323019182249676032e60b13b53847c9c065e0727039b81c1c91a67370393898aac5394b0e2e073704370437044724ea21b86104e5b0ee21982198024c01a600538029c014ccbb60bc607cc4f888f111e323c6478c8f225a1f220033e2bc46e0c6e0c6e0c6e0c6e0c6e0c6e0c6fd921c5e5c0a01fe7529e0138027551cdeb2fa6366511cd6f1f75a13a8bfb9eff25981fac652dcbed930dbcf1ebab766b61699d52ac989b7b54b7282b0fc5e4d507eacf4ff011f77f474896b77eeb46bd6ac692fa456af95d0881f66eef9490878e7a219fff0c09ae5b366ac1d072fbc56a7d7a9761c5c5ea1ffc6cc535df3b6b2d7dcf7e65c7d8abd86af95e36be5f85ac1d78a8c57f0b5229bd522beee569cadc842e5385b39ce568eb3159cadc8045544c366cb081fbb69cf3767f1f6484f63edc7fbd63960ec6617bbb7976f8e27006faa808f5ff3eeb75540c84f115b0af253909f82fc1484a7203c05d129884e41680a4253909682b414e4a42027050929484841360ab251108a82501484a1200c052128084191f48aa45724b722b91509ac4860352a96e929cf733d4933f3227e47b3fef90d17d9ef5f7151b3acf2922c2fc8f2a2937a592b007fbc02bb90e9cf0a97260caaa33fe3b19fcf0bd79f9e35c5d95ebab48cc9ab785be8148717e2f0c30b57109dcb0acef0a2f7e929411cbcf3fe73913e1737061bafbbd6191089862834005a1d5a884180012d082ed14be0ab9580974fcfb7552b8ab744e5aa26086ebd73771d04e53cdbd14797ba984f60b0b99a5b29cbff7ee4f0dc548a2b27c5c549717152bcd66d89d36e49addf9c249741e2b45ce2f45c5269ba529a8b93e652f10af822fd54b331dffbd65ebb6bfe0bb358ee33cd4c5fdafa697be2aecd73a7170dffc5995ea9a797d7ae6f7cb5bebcca1ba4bc3dea9be373fa2dd7ccec8dbfdaf1e4a28419ff47ae99d904fdc5a544e33ac793dabefcd209fbf22bafd9574ebe51afbf54df68b44a510fa30d0da1b241ed3326459d0c9b9b9d3c7ef07e7386f8dee17652caf4b27f7e669f7fb6dd14765282e8269731629f7ee2a87deab147ccd4404e6dfbcd4b22bc73d8c6dbcfc002330f7c2f069f5c3883e4dc29f7acb3b887975ec07a839208ecba1bb7da173f7fbe5dbbfbcbf6f5bf9db42bafff90b5d717f6dbdbef16551d32c7d18aaad9499959c4b0542aa8e42bce9178f62a35e4d7c7e5779858afde683f260bfba2fd321b076298b4f10bf1029e077d69053c0fc8da209536016482823612afd3a3a19f3be03ae03ae03ad877525ace6fb01d7061570c4ac1a0140c979617820d136993dc866bd684e0b86abd106c37a4cee88a4fcde15735472c4197b943021ef55740a6b4b9924d171bae65d3c5a6d711d3c30ef5e15197f8d4256da22ee861076904d46b01d965200fc3356e7ad872959b1eb611b6d42e06c5e251bb78d42e06e51244d8423401358c89b0e5da3711765cfd5e8c0df58c41ddf8d4331eb9625039418c0da41450d71832d9432298181b648289b91aa96d0cb58d410df9d4363eb58d4115057df603120ba81f0dd96f90145e7f48c3579f39f6b1a5ee31d43d86bac7a0a20c2aca24d826d826d8427e6dc8cf20434c824fa488472d64a8850c6acba716f2a9850caa2b18304f4832a04e35308d41b27883128f2fea23437d64c87d8ffac8afea236c52fc40a80135ad81990cf2c6a4f841e278d44b867ac9a0e23cea258f7ac9a0e682ac5fd54d017593c9b0410a7919ebca4a1b7c65ac8b1aca504319949f4f0de55143b5618b20678e1076402d65604103717b482893e3131965726ca9ab0c7595412dfad4553e7595e1160d86f885e403ea6c037b1a2497196287ecf2a8b30c7596a1ce32a84b439d650a6c0a6c48cc804b212888b1a2fcca94d363874c3305f3a5066b5383196ab0363598a10633236ca9c30212da1b613bc21f92ce20e90c35991961473d66a8c70cf5589b7acc8c631a3663fc8db1196333063f060f297813f671c2fb276027b1b4277dfa84c619431806c2f0e6221ab934c73ecde17b8eb1f3f27b218df756d475c96ddf0d17517025c7e35a8657d23b7692bba2e6fd0dc9cf6f593f4b353f007043053cf2c8ae490d84c348cfba9c4bdca791c47d1a49dca791a4fe3442982ac254117ef52792c47d2249dc2792c49583892b09c117e92177a38abde39edde5d7c5458ec53916e7589c63718ee534c7e21c8b732cceb138c772caf1838b34d4e1035b9bb247c2f27b57d729f0fa3395b8cf54e23e5389fb4c2524ac941f2a484461efc57daa12f7a94adca72a719faa84c094223adc5ce7c7b75f665fddf88159b2ffa1a5cac347172dedf983ebfe974b3bd248e1f93dfb5ba7546eb8f0829a07f464a5501efec1017bd58ff6da5fad597541050e101d01e00ec00ebf3b21b286530b310e791672bb511e6a6e16d5e55937a030e67ae546d0b0bfc0ee1a3617185bc3d002036b18576053814d25c116161598520fe8613f0ddb098ca66130819d344c24308d865904f628af75813574517e8d29bfcc4c8b1cfa49f673b7ddba5491539d3099754e704c7556bad20fa51e1a8946434859e597ce70a071a0c7654343940510d4a0d1121a2da1cb22082da1974f9e6a68e1d9a3cf2c8516fe09");
        deltaData[4] = SSTORE2.write(hex"b5985ba81d571dc6f79a3573e6bff7dcaffb7a0ef586c4075130588bb65a4110e243a97968447c51ab258986a41243ab692315aad65853090935d2682d58895622c4b4093d44b4884855fa10aa3e880af621b5ad820f32fed6ccecc9d9a63d66a37d58e4b2bfef9b356badfff7fdd73ca37bbd37f47a3dabbae786a43abde3c615f30fe51496b5c27019c2e83306c5c50efce4aeadd583b76c6dc083d0b23c86cfc8194568a9327c16f0567eb7abb3a7d6ab9ffe967186716a5d6a92ed5996ed5bda0e2cdbe93306965a11cb76c5d222cf41de024e554fdeffed86e0248c9491018c18b1a55c9f1130c2e7210435e1ee3b76ab8610bec07f9eb17b3d5d1dfcc281eaab3fff4cb5e5f307dfa4cc8f2b7d8679a4c74065059595f0b2f20a4f5be1694c47b9605db0aeb7f1890cb0ae990558d760b366c1dcd252e232e00a1c812370048ec011380247e0f4571860fbe0fae0fae0fae0fae0fae0fa098bcf1b0fc00d98c300dc00dc20a8d75d0d2236266580f11c0638af6f696fc0f0182cb11730cc1ec50c703e381f9ccf737d96db07ef83f7c1993df4d1f4c1fa6003b001d8c0b5740036001b800dc00660037001b8105c082e0417820b7976c8b3437021b810cd106c0836021b818dc0466023b011d8086c0436021b818dc0c66063b031d8186cccf3639e1fc389e1c4706238319c184ecc7ac5ac470c37819bc04de0267013b809dc046e0237819bc04de025e053f029f8147c0a3e059f824fc1a7e053f029f89467a5705238199c0c4e06278393c1c9e064703238199c0c4e06278393c1c9e1e47072d63f8793c3c9e1e4707238391c5347399c1c4e0ea78053c029e0149cab024e01a78053c029e014a6f6c017e04bf025f8127c09bee40c97e04bf025f8127c09bee419259c92752b59b712ee10ee10ee10ee10ee10ee90b337e4ec0de10ee10ee10ee10ee10ee10de18de08de08de08de08de08de08de08de08de08de08de08c78de08de889a19e50cea6644dd8cd118a33146638cc6188d311a6334c6688cd11873eec73c7b0c7f0c770c770c77026f026f026f026f026f026f026f026f026f425d4da8ab09f537053f053f053f053f053f053f053fa5bea6e0a7e0a7e0a7064fbdcec0cfc0cfc0cfc0cfc0cfc0cfc0cfc0cfc0cfc0cfc0af825b05b70a6e15dc2a75bb0a6e15cc2abfaff1db1abfadf1db1abfadf1db1a1a6bfcbe86c65af22f0c6cb536dc3f5d7aa9baf4fc25bb763653c821933187b048953df7cac78e3ddc7a256a4e602cf0b2cbb9eedccdfa10de8f750faaa77e78a47ae81bd754bffcc58e6a4b9e5747be755df59b0b8f5617df3eabaa7d6facaa5fbfb33a7ff6e8175f6dcbd4ff67cbb4fba9a5b14da79f330a46595be8caa07f858dbad8a88b8dda83c4d258a9c64a9d41cebfe10dcace56573c9721b5bd2aec5561af82bd0af6ea62afe245d86c6c395e62f53d74b05ac743c743c72bafb05d85ed2a6c57f9e8f8e860bf2ef62bd8afc67e1d1f1d1f1d6cd8f1d1f1d1f1cb054b5658b2c292054b96009d001dacd9c59add001decd909588f001d6cda09d009d009ca05cb5658b60ad109d1c1ba05eb16acdbc5ba05ebd658b713a2c3a9d358b813b2ae61690d22bd60e7829d4b844e840eb62ed8ba60eb2eb62ed8bac6d69d089d081decdd89984fc47c22b462bd60f782dd0b762fd8bd60f782dd0b76ef62f72e76afb17b8ddd6bec5e63f74e8c568c568c56a217ec5fb07fc1fe05fb17ec5fb07fc1fe5dec5f12b488002761bd13b4880227e1fd127452bd100b422c08b120c482100b422c08b1e0120b422c682ad249d149d1211e9c9439a5cc29452bd30b7121c4851017425c087121c48510172e71e112179ab87032d62a438bd87032b432b432b472bd1023428c083122c4881023428c0831e21223428c6862c4c9d1cad1224e9c9cf7cbd129f442b408d122448b102d42b408d122448b4bb448810ef1e214e814e810334ec19c0ae654a055ea85d8116247881d217684d8116247881d97d871dbd8d1c48e267634b1e39468956895680df5420c093124c4901043420c093124c4904b0c0931a4eb18428b287286bcdb109d213a23bd104b422c09b124c492104b422c09b1e4124b328aea68d24493de104d9a68d257114d8a687289269768b2c731031d224a8f33063ac494fe2f31a58829b5444ca925634abd3a31157409b4e7b65bafa65b4fec25dbfb14c2ed75101e78dff5d581134726cdcd2369badfb6b39d77adf3ae74de71cebbc9ae3b6c3bbe791737efcce6ddd6bc8b6abba29c87bfa69eeda14fef6caf3ca6dd36adb469e74c7b665aaeac58761d86f612b7afd72e037e5d3b15abb97d9d5a77374e071381349f4e00397c3d840f2b73573af7c089ea27277e601a809b6b52d74134c16e8919039e240cfedea7af6c035713b89a196802d71ab80c3084ee3c5835c1aa09564db05a04aa45a0ea362c3561a9094b4d58ea36f834c1a7093e4df0e936c43421a609314d88e936903481a40924dd068b2658e6c1a00906dd1abbc6d8756bce1a73d6adb96acc55b7e6a873f377b45a93d3989cc6e4342637372b8d5969cc4a6356c67434fdafc67834c6a3319eb989684c445f36916bed793ff7fbbffcbdfac35fff71453fa78af45ddd3eefdff648f5bb9dd777b76c459ba1681114b6ae4cb75f86efb65ffe4a9eb50591b507ba3e9fefe9cee7d78f1deeaee18a6bb8b24db748a1b7d7f07aaf456e5ce6c8bd17f09d3d73820e1f0fab0b176faeaa3fbe65da9ca0617b331ea2cadf65c49f63abc7cef7cc4e9b5d64e77aec52cfec8ed98922ad2342d5d69e6db829a081ad2ad3f94fc696354377c6ffcd4696b53aded6d5eafeebdef68a0ba7caf026d304d7afd6ce36da6ca6f52c367ff20711fc64fdfac6a25e78f863d59f0fef289b19f8ac0f5546c7d87c28f19a8f25746c96b9449b0b321d92b9d05a743896b9949a8b265d81652e8f247af361c5ab3fae5824a95506b7749b73fab3c7abeddbb737af6bb3667662f59c98817f51e23d37fe4807beefbe5dd58b7bdeb1d9a79b8f2fb3edb7027e6bbde287cf9d1c34e7b975c6fac380b9f09bcbb8b9609b0b73e798b7b54fa94fe3823dbd8c53eeb4e7df77ce7e68a76acd7f77bbd95675efa1bde6c38fb37105946d8c8e1772a24f75c0a7ce3d5efdeac27a036c8dd92c11adb771c1bd5d85fceccc43575321fbda8a56d58b376c755e211bf65fa9baf90ded8e76be9ca57bbe5b3dfacd13d5be6bdf6c773bc66e990f04ecd49dddb270e8e6cb7290ffbcab669ff9ca13b5c2d39ffbf26c7e12cd9dc7aa6bc2ab3f0b99fb87f9eca3388d8ad3a8e8ff152752d1bf2b4ea5e2542a4ea5a26f569c4c45dfab389d8ad3a93253535e339bfa5384991578fa3ccce9aeee1c9d3cf8d1eac89e6d0b05393f746d417e699943f735c01fa8c1cf3ef689eaa5f387e285d79b977bfd3ae17fbc46d84e7fe391afa7fc40e71d170fefddcc3b8e02dc5503cf3f7eefb801a6b58d371b1fb7c73f6e4b206ecb206e4a812e44914d8a2ea4298bb82d8db82d8fb83d3871db58802fd363ddfa3cbd6fb7390f9b39fdc9ae28fdfb1f5ca628bf03f1a6cec59e397abcfae713a7e32b5ccc3898712fce8a15791b9c8b7fa75ee35cc6b58ae673136ef5bd65b6f7fbcb807fd4569736855d17f87377efe8bcb07580fa7385c64bb40467bbc539fae36b96599cf3cb4c6b1df09efa297f3b7efb64e3f13495a7daca53ff63e5a9b6f2d4e563fc6f");
        deltaData[5] = SSTORE2.write(hex"c5986bc81d4719c7cfcecc9eb3e79cbdefd9dbb9bc10f056f00e555ba941c1d40445bc8018698b1710a44a5e35424b2521855a03c642a262a45013355f0ac52b44452124d4a851d0da52bf88154b624b639ad0b4a05d7f33bb7bde736272488ae087617667fecfeccc3cff79fecfec71d5e9dcd4e9745475cfe6a8faf1f67754a7cfbd503df1e4b3031a8565a74274293d8a43e95306a990c350283f1632a64ee3130cf272f056f5f437f6f68ca1eb0bcba3f894801251624ae29f6cc0a2fd6277c5977e0df83a037ef8e8a1ea6bfbde5f8fae424a44893164543bc0d0c3d0fb1d06ebc6e015b7de52a5dbb695c6600090395bc384a951bbd41eb547ed53fb89100175c07bc8c0612c44c47bc43b6bb462ea843aa11e518fa853ea943a039fc57fe4c377f02d59ddb9e56dd5b9c3fbabd307f78feb8fbb2c85d90d87145f48979afd111e357b247c6af64904d4ec9508c187e023ded9371153b37722a14ea847d423ea943aa5cec067de9fae655f1f9d83ffb96b4bf5f9b7bcb6060fd806b648b03d82250ab3bce431c09171ef537bb60b0364b32dc7fbcbdceffb0fde577bc666336c36bb1b50d8a09e5b837bfe19c033f3c993bff879f5fbe3c7546da05dc8a7008b9eff0f1abf69e8b8f7eecf557beefa4cf5c36f6faefef0939b375dea77d1f8ddaafd2ee420120a372b4d4dd6a070b3621d0a372bdcac7c4d596adcac70b3c2cd0a372bdcac70b3d254c6cd0a372bdcac70b3620f54aa294e8d9b55163fc3044bb3e4bf9fa9ea15e056cb6789b8c94abd73d7e2860bf33d397be66c75f6dc8bf3114533a248bde7e6239edef191eab1dbb6adf2d545c0e72c0dbe6ed7eeea89c387ef30e06e9f32a030c72e2ee9327ad7df7053974dede2899e4301db03db1b2eba8fa2375bbb146c4f6313b31ccbe951b073c03baee60505bc03de01ef8077c0f7bb14b07d707d707d707d707d707d707d70033003be3d189a63630d6d0a6d43e6341cd47bedd2e6d2e63296cb775dfa5cfa3cda3dda3dda3dda3dda7dda7cda7cda7c875d651e016d016d418fe3c67bc87bc87b0826e239e239e239e639e639a14e744ddb88e751970dc72ee539a53d651c482252da32da32da72ea5cd7f4e504a79cb515b415b4158c53f25cf25c32a77224ac31cf63dac7cc7bc2f384e709cf53eaa9ae59df8c7ac69a663caf51afe99a3d5a630fd7c2e79b402eaafbbee557c7fffc01b7767cde38a92446b0c939a564a27c548c699bc2c369ce070a2166e5bfe6547bf4bb1faa7e75ef915554fb37e05314bb3af9fd03d5a9df6caf5e9de6d58f1e7fb0faf2f637bdc6fa9fd16e9972568fedd22bea652ba8b7413be1306167644edd952828fa717d22fbd90205e91fe8b8e2135788014d7c117a33068c37c82e4fcf213644f9360e8921d8617665daba9ad2aeb05dec5085366e09173b37bb3cad3d4df7a1b03dec3cec509136ce090f3b2ffb2fea5bbe3e0e03c226763e76041889eab47151f8d8f9d9d2f1b002ec02ec02ec50273bc02ec00e956ae3a808b00bb2e563146217f6850cb10bb143d16c144d86d885e146ec0db10fb10fb3e5a317611ff5858d02da912b64842d4ad8c66a116113651b4734d6c7159b986f1234ed98efc5d8a09a6d5c17313671b67c9c136c126c505689b2b6b15f2460936c7edcad913efa60476051de561bc408dc285b0a05560a2e058732b7da21527069b6111e327019b88cbdcd06426660399d8dc67052b1c9b0c9b2a55062e5d8e4d8e4f83f67ce39769c684578113976391cceb3e55053605360536053605360536053f0ad029b826f157cab4879cf164253cf8427abc4b6c4b6e43c949c97d25f0e5763fac7f48fe1f118cc18cc5863388363cee098733be6dc8e47428db3e5f036c17682ed04db09b6136c27d84eb09d603b89174260bf0e8353b053b053b053b05362c914fc345a0e913370337033703330b368216c0e9bd0e935e133d0219412bdd8249c56f58383df73ae946c9a4056e740d2ae0da4c9a41efacedeeafcfa0d4dd8f44dbe67723d58a3196165beb2db0ce299a72f347aaf33d0b8ce34d3d8b3db207c78f727aa03ebef9e07616b2108d7a9671202fef062d84f16c3bee811da1d9e9d624902449e2c383e5f2509917d0df9cccbec45fd38bff9fa55faf14ac05f343bd74cbdaafef6fac9aae97786b1e8b85c3bf4d503e9ee44949867e458a6f14b59deeb98c44e33e3fbffbab33afedca126658fe67706b1e2ce605d7267b056dc19447367101b778637ceb76bdfbe4f572776ad94dbebedfa6663555f79f2edf38b8596a85a76fc464a7c230df5e56bd85cc086f5258c306c11862dc26a7d211b3697b2a1be98314b6a886aa53a93d564059f796fe5c3ef3439f99107ce1b16ec7bef56cd0477f17874ec90421c8219126d57b0a383762bfca8608882216a90ded4ecb79a3b5d33e5850bcf16ab1c2fd9923aa94f9aa43c31ce9604cacb3bfcb2cebe998fbf4768c6e96ce5c00337ea24f9abf58586c8d46780fe682113886b5f346a2f87289151f7a02146adec12f59646bd03439456b9252a2d718544a5252aadc9d3aab3448925ee9128b1344a1c1852b52a2c515e89f24a9457e23e89f24aa3bc81215dabba12a5958dd24a9456e262a95d8cca1a422e28ac445525aa2a23b05040ce953530c46d5555a2a4d228e9c0a8a9444da551d3c010bb5552897a4aa39e834641c1259e217daba012d5944635c1402f39023362ac51d01c8a5a4125aa298d6a82837e320597824b83e6d0d40a2a514d896a4aa39ae0a0a8cc3c7d98f41999aba64429254a29514a6994125cce7824e32607366a399a2ba64425252a2951496954127c01be008f4a5aa8a365d4514792c410cc2a692bb37741aafb856674fcaa0bd5a61b2f566f7edfc5ea0d5b9e3f54074a8c6c1868c3648e84d52d291393c68a1e6dbd31650acba99da99090504142735c3409fbb4f769878ce6144046a5c93860ccc1b4fe1303119526e230a730e6706ac8284d2a491f64542e7d6e41e1fbee9454917e9332d2af09e9d1ef153cd3ef4d0d21a5490de9d784f4e9f74b434069523fda3501839c9a718309c4a30fe249a2a1847c32d4d76c709a7c21f621b89031c231656288274d4a0746132f622c4866fe2a4132a54916631763176317631763978031a91a184db2044c022699186249939ed1a78935a26f5412316837e918ed9a4829ed293629eb4d596f46bf8928cc1d32e9c8a22093d264cac066ec4d06369b1a12c926ed921049127d1464529a4839d89c7173b03958522d49aa25219124422922946a522d49a49205fe2ac0412c05b124c492104b96f4973a92e1ff127e8ca9c7d413483ed16914ef13dea7f088e8664de1d40c32cfe89bd1b746bd86fd1a7d6be55648bac988c79df71c59ca278cac6de4131fb4db1f6ecd0f98e6b78e57ff70692f73bd5e7b69bb65ae61cd6f9d7a740548b9023e61d887eafa96e6dc0af8a3974afe6865e40f5e92ac7fcc6ed3b8f54f7dd2599c91c58c2c6664d97a294ebd0cc7f9f8b5aefb760cb62e265ec155255e5716a7f5ff6726f259ad8c8bab09af7e355774c2ce39e97e7bdb8e794a5c672a7e93699894f8aeb9b71e3e7ae86a92eedd73d2ddbde3f6eaeb3b8fad4a9cf600bea1a3ff53fceca163d589472847293c3ff5f8a93937889042c20d053754c30d1b57db8ef3a5c633b23afccb43d54f1f395a6df9c2fafcbfb268fe2b8bc633a2f18cb8e4bfb2c03362e1bfb2683c231acf88e6bfb268fe2bcbda33f75e86c92bf766dfb524ecff01");
        deltaData[6] = SSTORE2.write(hex"cd587b88545518bff7dcb98f993bf7cecc9db9333bba8241d23b945ab028c502e98fa8c496d092307c11abb968a48b65266ee6a61949940f309f6151ba62b2f98036d38ac4c490522ad3506b5767d7a5600d3afdce7d9c9d97b7bd96b27f7c7cf7cef9ce99eff7bdcf7d5316845b04411069ebea2d1a1e8818d14171904144390a8a1151d188a88234ed6d6c309c0d87da3688ce0635fe2e7e7c11cf125db9c6a4074e8ca7f4ccf0c1cea2922344b54139ecc6b356039e27826e11216e11c90425f09c025978ce806c8b906c9288b92421b93421358c32209c91b740781e9427a416e7d6e2b7da1a4286e4578785b2161b1a991c6d7a75141d336d54ded91483b0ae13a29b448c83c7c10d7003dc04374d4212e009bc27717812f229bca7f06e815be069f03478063c036e83dbe059c8678df5959aca5890999610529896d05c555d4dd5e87bd8603b1bde58b85e7236e480bb260bca7d80c5210e8c2307dae957fbf7465cec301e3b4d4ee034e3430fab48db96ef1be4e28c73aca28755f4b08a1e561158456015cbb08a1e56d1c32a7a58450fabd887b5157f3cccd1ae79748aee9af880e2e285eb14db0d0d0d1405c5ec9d61847741f8060752e7f6cdae60ccf4a0989e2a4c0db3cd33b7443f9b5947d74da8a37347dec937303f4bd8206183eb23736f15ffa440083d390d6b328b2659dc836010d5dc870d7967c3974bb7bae6d72118076540767aff404890761e2885eebfe9850b973d4d594c1b6eecdac6e755b208ff1401fe88e5c6a71b512e76cd38c437bcb57a657f82f930df800ad29f3c3dd69f003f0ea1fbf17b843997167eee74409efca923d6e7689d478704c011cb0d58c936fc48f901878c7054fbde18122bf1a301324109500a6481d2dcbf3f86b5daa9a08c3ecd177b46d7b98b7e54dbe6ef6172a403c28bb02ed3e3ad9b6961f736bae29d66ba696a3d3d3773865706a0630c3aea3027c0923838004b469244005a32f10ee0910438c093640a84f84b25890c43100b1cc690d3e030889c811c8c22dbe036d6b390cf5a9d5cebe39b9fa03d8df794e41fabb1a42fffbab8f0c697a7d0558d0f7bc269c71d4c3be29a1dc2e93f2bc32938597bb9932fbebfde75b28698d3107351c45b14cf513cc710b031bcc7f0aee359d7fee2050791ae5475b2eb60510959df65c56faa4d6347899e5b7425643f4b2803a0c824078212354a881c1986c53aa7721c696ba77b3e6ea75f306a6be7794ce062092e96e0bd08f2380237130493a41937297e4c74b56e2909d3a2eacfc2f436cf9b844e1a7a2b9df2d4d36a79796159e664183621738663c354e7e46f2e75e78a27135e0c4277ea2b76e9bb95f2167976591387c3ea8214e79a31382395e27cdedd30ad4498940a8fc6e20447d88b8974503c5c85bf1fe4da9c9ffd6445772fab2e8f6031e5265bf356c25d964d3faa5436a6c022fed84088f5f14ac8fe3b81179b1d9fee718b4d5c9facf83db6a3708916ba0ad5668367b89959948c1b630699791a17f6524a29aecd84d765964ae6744f58a4374e7ca12f338caa0db7819f7c74ee2cba63e38ca0d89bc5d1363e3bddbfaf3ca7546f30eef8e803f18682b9dc34273b7b8b4cc3fa22bc62b13e67cd0b5371e6f38ae398e63ba7da3013f12a4f50e52554f908aa7cc4abf211b84fd2b4a630ffb490c73aa2d38df52874ce598b78d4c02cfd692ecdbcd075ac9812346d2fe5856ed9e239f49505b35c77221e49f5787c8d6f4000d3734737aa574a3d56738966b454ea1e1cf1abc2986c0d16279727752628a959225f45e26ea86ea822dc7cbc75716f0b03e323cf5f840dcc6c7096fb628bb9228a0d8e63778639f513c5bfe8cc689e5feda2d3e609f0bf957cef33df1025b65f712fa2321b75684fcb027af1a5067a66de74dabb6f57d6bf9812b43a36af4b4e3aeace058da0dd49069bdd416873046d8ea0cdb18bb784f646701195d22c7575ef32078e988ca0c5c959e3e04028d687b8fd7efbf50f5e4744af8e88b6f535f786673fa53837cb5c7738ec9cf92d4fe29eed9b8292f828177c7dfc434163cd3125e0aa72d2f37589c96bfe1793079bf91457ffc4ca3941384f73c1c5b31b384e013805e014805370719e0993251d8affb16579e3baebf9b1a5bbcf1b2d0b5c6fe0fa25662d06a1078b339dc575bf3c9faf1c28af894682eadb6dd29225b4bebebee4de24c849102e8898040435a9a8bedd0e36375d4fbb69aadfe2cf77f7d2d3672f556bf1ba1a2204e210bec311beb736472f142e6be549e49ceccc29969f4c46987f48aaff6188b055ff0e8c792bcc878e2c57b16be1d87fbbc70f56aff1dc3f54f55b2826017a71c5e3554707c24607f7ca76b3ea77c5636b5bd8fc2b97f73062b33a9cbe5dadfcaa10585a47a8fdf84875971a7256bfcf0ba38abba9127037fd07");
        deltaData[7] = SSTORE2.write(hex"bd986dcc5c4515c79f7beeddddbb7b77efde97ddfbb2bb4f937ed060d444128b094a1bdf6a14130342135a6b62a082d8a2a516b450ad4a49aab1a9c8074149903695c40f520cd48a588b8d4052add59a281aa3363192c6565a08f0c5f1377367b7fbd8a74ffa10c387c9cc9c7366e6cc79f99fb9f78ac6cccc1b66666644edde7683ba77e387eb7ae2b452718254a44deb31eed3b2f47d086f36c23ffade0af5dbc73f30a88463915622124434bd28aa1676e83bf4217d48dfa5efd247c847c8c7cc63e6097d429fd2a7fac0c81c2a7d7a0e960cf92cf92087bf89f31cf5f481877c73702da62534b4ab776991388d36ad430b3fc282a566c1bf1fdd3be75a0eda39e7aeb5766283677ff65375f4f05395b017d0da225e47a4d61469f8e2f8fe27266a3c7aff5eab0647d638b216a2428bc6c24683c68246f3faf3f5b63b3b9e5ed4a4e9457eb5c0f737b260d6a8f3b5af6e52a7765ee355a760312e295c4e1ae1adf672139d6b63216d0dc112822510dc34b9dca10dcbd403d72d9b5842a61c2c95256e43b863745dbb7dbb630407cddb273b1cfbdc2d736c39cf0e774c4264cbcae5ea97776f793d4364ebc4d4dfba7fd7c598fa4b2cf802729eda7df021f593e30754eb872fa995b76d2c2bad2b8d5dabb16b3576adc6aed5d8fd1f8d5dabb16b3576adc6aed5d845630f8d9d2cd93689d1b38fec592846efba80bfabb013c24ec7a7349adf9c27dc480b8fe3bca48ad19a4e954e95267ee79e897b77eedca0f6edbe6921f77e7bb2fba17bf65ccceef7b1603b72aedaf59d501d7eeea3eae147ae35d1edd473f4edd3720419fb057d69acad2dadadac2dacadab2daaada92da9ade81a9f73708eff73c6856e3d1a7b952852321e942223f61f411b1522b3e57751e65346191d9c67f6ae53ffd8b53abbb8004d4d60ba1337a7171390df9fd8f6ee15b17a6cf57b2adbd6d0aadeaf6eefd39ab456ff07735267c7d6adaf67eafc7c311878c8464185505fb9f396c63818657e0cfcc504d24e3cffa2fad35f4e5690a6af14e22dad623f393c113a75ea1575fa85ffcc27f4f4622cfaebc5081f5d8cf0ef2e167e9f43709fcccc34d4f18307d5a635abd49f8ffe46fdfe9967d55bfab93afef00eb563f5657baa7c685589530fab4a564fc6e6a305b6b2c16b687a6a732713d76fd258ebc3f759d7ac8bdbf4c56b426f426fb2b609bd05bdd5a0f934f66cc16b05526b85c0077b06355a5dbca041e3dc0099009980f541476a01720698906bd769f0dbf0da6dee0abf0d5f835627a04641eb40eb4023489d9035a18f3de085f04278213c02d7e912265dceebb25fb7258d2e325d64bac8749121a89d88f5912fb5087e043f821fc18fc0be28c2dec8c4c8c4e81537a5112313b7a5162313b30789e0249c93704ed2945a023f618f047e029f047152d6a79c916293145aaa0198fd7ad07acc0d18b3479ff57de606115993219341cfd83b839785069b7462d533ec9ac3cbd923876ef08a84cba117ac2d585b70ef025d0bf805fc027e9148bdc8c031644af62db173897f4b64c03729f1bfc6b8921828911bf8ba52d3f0d780181a102743f61e72f610de10de50d3888321603d623e4276046dc47c96f12c67cc02de4be02de9fe95c0bdce44b805ee7421d07e0d60fc770e58660e58b5f966b57ced7b5b55ba734322c921721c22c421021c3ce8e02507af089e70fae14b16c91df5c0df3617e362adb1a2aa9d51553fc148c7841fbd09357a134ec8828f8e090b7ae37e7ae3f2c8d6ddc8d65e53a85fb509efaa93a7cf680453a79fff9705a80080c2e6c494dbef883f2f364e5549195749fd92f33bc96217f45970a9b9fb1f9e3a668d66df0be6ae69754773b7d4dec9bc2332166e340b0f7ce3495b5c88a956c7e67868f33934395c7920b05e082a4f90770e79e7905f955702eb99c078c7e9d11b0f05da4b180ef9ac33e4e0ad731e01eac4db860bc5d34c90c84c3be10140eb328e6909e31ead9fbc96789bf5cf7bb82ffc74b9c46add30f5f8ecd7ef54276fbf5e9dfae27a75e2f337aa579f7c4cfdf3b36bf2b11905330a66744d00d36346c18c1e66f430a1d7d550851ce6134ce76136c16c9e096ae4319bf475088540481be8e880eee19be7d17ac127ed5bfd4594b1b723bcceec7ee4cc0bf9f969b4500ac51748a30ba6d0b2c5687619c257383a648eef3ba8ee7df072b5edae2d579a05d43ec7ef9aba26cd5eb5a0995927306f511303fd60621c6426a65d4249daccdbf03a8c3b8c3b99092f09198799ad43ecd965decd6ccd8146bd718ce3a04799ad333afea1c5d06268d41197f0948479c23ca5f6a6cc53e629f31e7eeae1a75ec784b0f4a0f732534b4c38f799f7b3a97aa26b09ba64d033e839f41c7a0e2d879673e73c3375c329888392fdcb8ead014185f1c3e49d8bb1f872fffccfe5d0a24268b35a6774f87e048f39faa329b9e445b5f4f297d53bae7a595dbaf295cf54bba3568dacab91c99ce2d44bda10b7a176035a63401be1427a7fc413057736193719f3d1e1b658db621ce434e403c6edae786de6ed82c67eed1179d5c595d03a0563681de4426821b490cf882ee36e4edeb1a63be4e5ce9ca7821be9573c3211f408b96840831fc38f914fe813f809fc047e023f819f424fa1a7d053e63de63de6bd52bc3ee33ee33ebc3ebaf4d12583064ab919e765f032f4cce065f07278a0970b7ab939bc9c7539bc1c1e4f001744f34034afe8d3085390cd2db045c1bd29fd2e08e752fa5d4abf5b6ad4c37e25361dd00fe88720e2103f0c990f998fb03d28e88cf0c32cde9e85370b6f09fd12d62f81b7a4fc903ffefa7f62cd7ac77e7c5c698bc61cec2efe2fd8bd305e5fe52fe28be46a5b13453df3e383ea89775fdb9c53176d4d3cf7d536a989ab26517f76c5b285a27e0d82f7995f051b6fbe71da164b2ff42b4ab0cfd4ef28711bda4678123bc9949d3cece44dd9c9c34e1e76d2d123e3282974ebd9c71fdec75e2ef672b197f6ac3b5b7e1c05637393937ffc95544869be1ed659dbb8eaea4f7e4c1d397244eddfbfbf2a25a6d071bd26b5874f01173811f3d4d450d2bec9af3ec81cf5ae375e53bb806d3e8dd0971d6d798d0620c1da2a3674c6e753d95e4c32be026d22af594e325ff4ef060bde62106060504040018d0063f016504067bf90f962b37e0ce042e60b992f64bef91226fb85cc17325f7f244cbe8ca37402e60212082820a0808002020a98280109c6602e891e23030a08082064ff18c00504101040c87eb1992f64be64facb1a9acd7821e3cf3dfe7b06bc85ccd7193ffde81fbf659c6260b2dd29cba9ecd60ffd622acbf3a90c1faef7c73f378edf70abae96eaf13b3664e7fee5c4f63f566cff63c5f6f7416c7f1fc495d1e2d8a6496c5325b6bf0d62fbff2a367f5f9c2cddb098eaf25f");
        deltaData[8] = SSTORE2.write(hex"cd985ba85c5719c767ad6fcf65cfccdeb3e7b2f79e39738ed47aadc54b10f182b520a8a4f8526c10232a01ab266a2424a96d242650ed434493d63e68b417dab406296d8d553cad549a462522141fac1845085a63b49e93544b7d902e7f6bed3dfbccf49c33cdc4973c7ccc5e6bffbfb5beb5beff77d97343ad54daa84b256d9ebcfe4af3c8ef1f385862a0fc1612216dadfd44eb7a1d69204d244042adea60eabcaf77b46e306e306e306ed87117e92131827ed347c034c134c134c134c134c134c134c1046002300198004c002600138009c0046042302198104c082604138209c1846042302d302d302d302d302d3011731167883843c41922ce108189c04460228b619d887522d68958a78d4e1b4c1b4c1b4c1b4c87b90e731de63acc75ec1c7a1df43ae875d0eb82e982e982e982e982e931d763aec75c8fb99e9d43af875e0fbd1e7a3198184c0c2606138389c1c46062303198044cc23912ce91708e847324e824e824e824e824e824e824e824e8a4e8a4e8a4e8a4e8a4e8a4e8a4e8a4f838452f452f452f452f452f45af8f4e1f9d3e3a7d74fa21d24222049d3e3a7d74fae8f4d1e9a33397dc08a14eab52c9331f7df04eb3e9c87eb365f18031bb5eb7d311ab1a23006b28d650aca1e8f3ecc78e68ca92a9ceb8cebb3ae346e448a520952a4895e444e21d44520591929c3ccc431e559027c9091339d22848a30ad22439512247160559548b772ddeb5122d9046208d401a8134196122471a056954419a24274ae4c8a2208b6af3aecdbb7692132672a4510561929c2491238aea32df65be9b68afd744829c3091238d8234aa204d92132572645190451564497242448e146a8214c984e355e1f8cce90ae72a9cab5ee25c8573d5803d063d84f120b90947c7f85499a56f5c27ceb9953acead21fe9779790573629ebeefc3e6813bef32bbdef1a68a03d9d441bab0e9406c4858ca27e1be5c41996f1e3e5473400f533c4cf1d8b60ca88cd915aea48ad482fd80765b9c39faf5dde6dbfb3e3697adde4400341a6e17d56c648927606c934bc8af4d202d7e6d92c0afcafab5cdd8067b875f1be05d7e6d10f71a59e0c68ddc52f04970339b6f70d66e78e35575b731e4b444b4a4b3e4b224b204b0ceb68eb58ec3410750dcebeee5d0774273e2d4878cf9f35b86d9e5a55a131dba9a723c9e6b7d7e07ba04f34bb05c60adc0ce12cc2a91760436884d11d6cb78d379b1f0585a784bcf0db49e67dd79e6e6fb5a2f0c0e63c482bbba334b2f9a3ffce91f5e76028e1a06d915c4c13d857b0feebb3b736f9a663ce8a74778f91ab7c22d57b7cd8f36bf37736d996d2a71760c17d8483dbe6f8d953a23967d8f976f2bd97471e0e69d66e9ecf366f9fc8be699675ec838500658c1efd5a6f3bb261dd88bf008250e7ff452b8cd070b2e1c7afcde9c0b9678614eb830239a23579893cad17e11c52d2fb5be37cd7a6bf14558f868e1ef73c7ee3747bfb42df3b74db336a55a6626ddc7007dc481aefaecbbcc9ea7777747a0b5a8ad5bc3b1fc372ca8ae3bc33c8f0d4794b78be3e9decf66e1cc13805fe9ee66e99fe7cdd2f27fccf273ff9da0a940531d074f5e0a1438712918f18b22929e5a3c6e1e7be8b8f9b995c5e34536d56453219b0ad9d4239b7a64534d54492d3809e8a4b227d8bce594e9bcfedfe6edd7beb07d5a1ad695611692557bc23964dea66577425d635c9bc79958e9f3eccf6b814952075b675c676c4319664983b906632aba50c5852a2e4de69acc51cd254811d6091853c585aa2d546d09990f6d4c3047f51658292de660a650a5852a2d305460a850a125b2d59cf7113ad11c028e8a2d546c81bdd2e61d555aa8cc4265968e1d83ed8085d542a5962e73305ba8ca421516aab0f498eb81a31a4b6cd3126bc5ccc5d81c63339558f0a65085854890847709ef12de5189052f0b6d97507d850cab53e6a9c24205163c2fcef3dc599ffb1ca037e079306f5b2d84bb9e633cc77888ee90e721cff3c35fcd126dbf05fc3e07cef91b4ee3eecbf0f054b1f36f766d37bffbc43545d9d779d9b705556765ff8f806f9d889c3b4eefbe6c6a0ea44374bc2123091949c26ee67b3a32e76feb4b32919085a4d7cdfc411764ef7f86683a9d2720659eb871eb44e3e232fb4ae3f2b7bc71d1a390ab6617dd76c54b97d9cd16b04a94474b78f642573e0770ab0be8dc85a33b8ac75d29f93d79360e71a970571e7725d653997bb567f907cf3cce2c9c5938b3c7993dceec7166e1ccdec2e07c61d9bf1e3e525995fe57d2b9294adea3773d9c95bc9a8fd0fef9b47f3ecf3ecff52ac2b8ceb8c173a356f24ba581533cfb97e7f3741e650db96d8ee38e072070803def7f8fca4c68d7fc4b20bdfafe0c01d5f34717f4ad1f5f364b7f38ef8fdae01ddb3e5d1b67928249aa6052d60ea96ab8e08f7cf6c31b3e37cd67af28ec5f3ab6d376e5abbaf131ea5deeafeac6cb6c590eb21260fbfc0a5d62b53aeaf75f85c2e7275cc40ee9f438ee66716cbf5a5c7eecceea92d7aebe2c0fab3c2cf5aca5d0ae6c2dad6556d66a571477b0ebb6afd846a832d10835b366486717f686027cf2f19f9aa74e1caf8cefa0d941b383ce56be12f00e67ca57974eacfb25a2fecf2f11b5fa4be4cdb3d07243117e34dbde1a0df65b6759edddfe457e045d3dcb2e1b73b032c70edf3f915bd788866b6759f93a7fd4639ef9ebb366f9dcb239f3f767577d0a491c6c2e78860917120d1ff767edecd74d50d323e053fea8f810a7e6277bb656a759a7abfe6766b9a0ad2f47976d45f259c9276b269fed170adc57d877effe4f9adb777c70023c8ad01c7c0be04de36d4b67da15cf985c0ee696880d7d97026efbda17ca452b3dd609d33e1f2a42e1d59bbf384b28dc8ae23bdd2e7bf7ee359b367ec07cffa69df5f1bebb54b6bbd1bf946de34ebee4fa05d64b35d4a56a74fb2c0efd6e41e45f2ede732109f3ee75dcb15234f44ad13802f87ab7faaf9f3b9fe5fe89fc7731b96fddbcf7d01a3139b550fec0bfc0b6eb118077b8b68b95c703f8f2f576d1306e6c275c6359475be53e8556ba11cffe7331d68d7804bb1777dce781769f01dda2e517d8a961a7869d023b05760aecd4b0531606ff03");
        deltaData[9] = SSTORE2.write(hex"c5986ba8656519c7d77adf77ddeff7cbde67c028a80f4503491728a9d01882a2322a51b09b9134c63458cc302274990f6a7a68be946694b73004cd186c9c101c9c6a2a12c22e444112451f42cc02eb43ac7eeb5debec398ca7d33e94f4e1e1dd7bafe7f93ffff7f6fc9fb54f7a86f15ec330c4b079473c3cf1ebf7e4e317d36e84702aac11a6cb67b765ec84d9a442348510ed6825c6f32ec7f8dc77422c8959f2dbb21562a37b04f003dbc193ddc0459d4e0934e88e808f02f881ed80c55a80eb337e9c04d7eb04472f7bd3f0c843477a9dc00f85f0232182008b85081943c68831628c1963c68431614cf14ff1cff89ef13d67cc190bc682b1642c192bc68ab1c6bf8ece92fc653af9f14bb2e1e4156fb175720b867635cdd0c53cccaf7e88f3119e4bcdf42f779f18fe74fb891dd9ca1787edb9bdb0fd11ce8734db79e386e1f7af6e77db3c23c88511e642c658c2e70ccbf95c62557ec169f9b71bfa13125f4c1e353c79eacc70fac133c3d9d14e9d7175720580ca8454805ab150562294cd523891906ef45382f7e3670ebf8a367c1d1014c20cb1088bb104cbb01c2bb012ab8a9f1158e9c0db6efcbad4810d94da1a6b9e5a2ddc330f1f1e9efac23ba785f3e3f96cc5f36ac7c2ace39faf0ee48f6ff9eef08faf9c9cb738c35884209d29a533ad74a696cef4d289628a7fca2265e94c379d29a733ed74a69e8ef4498c7f9dff92e41f5f9db1e7eefbe8f0c7cd2bea2d0262262020202020202020202020482e482c492c482c482a48284828482848284828482848284828eafc37247ca54e38eed6bc53ce74ae3874163bc32e09db17d271d82517f37e4bd02bf4623ffea57b56db6ab2ad26db6a1260b2ad26db6ab2ada61bfd6e0e10c34d9f3b3c7cf6d875ce8541622b8800e1464fef9021c0420c44cbc37c32b80460aefb1c010775c09d4f5fdf4d0b06951777b7fe49d2d7eb69bdfb9a2b879347ee08746217a6de5811187555e0738b757cef60df31cd9e992c02e16f4df307a7ee5a67219d55c089db37d75917771570e8da8fad932123e0221df08b7bdfb7ba2726f7c4e49e98dc1373ba27cd0ba958a05a232a2b648fa86472c209d989fb15f29f1fba7737e497ec800c8a154d7ced71824c9af3a827e9782fddeb245f4540a703388f6aca904f9c27befb575ccfdef8cdddb8bec6df2e5fdf3f7eb45fefb2a6f3854df5a515ab4b9bce17375de7f25eec6f29d2b61adfff37357e8fe2fdd61d8ee3ae0b7fa9ff827bbdfbd6becddf83e61d58ed1adb6aef783ba65b71398e9176fcf6a3a74ded180657cfd16238f7d8f786279f38634da9266e63099ccbdf87569cee3c900da7afba74374e1fc679433b833822ab950c9e5f9e8fac881f3dbe75dc8af3d237491cc7adb8f63f1ddc8338fc01e2ce70cd27af1cde7ff5816178f699e1ec3b5e37bcfdf2370f576d5e375cf2a9371e32c740670c8286c36e391c03781b4e0d778559988d39a8b287f94251d6944b1217da2eb12e3bed12eb12cb7c0db7c6386a9ec4c0f0c0f06c617960786078607860501a95c7a27ae078e078e07899b0bd42185e893518c7cb07c707c707c7878bef08e57b1838945645d3a528afc67831fd8431658f72ace077f8f8cc85fec90cc009c0092c6105b65001180118346b8ad2ac0230b8d80677d566c555406cc05c027804f0a0728b108c50b11b1666d3e0c12504270487664f8521bf81138ecd5f2a1c764d85e084e084e084e04426069f486260459690115811eb1381158145c3a822b022b0681c0dea858c581b6a868ac08bc08bc08bc08b4d340cbc186e31f38bc18bc18bc18b5d0ccc184c9a4f1533cf184c9a5083da63537b540c5e0c5e0c5e0c5e02bf84b926e025e025e025e025e025e025e025e0d1c4aa04bc043c9a599924183c934c97149b7aa612ce7e0a1ec74ba4e0a5e0a5e0a5e0a5e0a5ae5029782978297834c48a86d8486361a70906476aa24d4db453f052b8a6704de19ac23563ee944091819db196994553095e061e4db5cac0cbc0a3b936a8a93635556570cae14499153971399c72e272e272e268c2554e5c4e1ccdb8a406dbd46095933b27774eee9cdc05185447ab00a300a300a3607d0a700a7068e255c11e16e0d0cc1bd470593017eab82ae04025354b624b624bce64c9992c394f256b52825182c10b802cc128c1406c0ceabf431550255c4ab89470295b31961cab92185815f7a402ab02ab02ab02ab028b970803b19215fb847ec82ad3a5dea6a2a80abc0abc0abc8ab97165cc9af359835773d66bf06af06af06af06af06ab8f142226bb8d5ec57cd7ef16a60a349760d6e0d6e0d6e0d6e0d6e0d6e03c706cc068e0d77b901b301af01af01af01af01af01af010f19721af01af09023a301af018f9ede68c06b59bf967d6fc16b6d46f05ab05ad69e564bb6bc4db460b5f06a33e1b4d428e4cc68c1e19dc040d68c1649ecc0e89867074687e874cc93364d759c035a35d5f18642bb66238176070f64d0e8c0e8c0e8a8753df13d1c7ae6d413df134f6ba77a627b627bde6e7aea5b4f9d5c906781df823e7a81902c98ff02df05be0b7c17f82ee0bbe0802cf15b82b7c46fe9096bc9dc96acd392b92d99db12ff65f219ff457e393fba17f53de6ff9fde386f9825d61cbe75e4b0b56327eac49fc729d34eb7de7a50ac24b62e6edecb1c6f59b73bfee20e8dceaeddf16d2be4ef7cfa13bbb5005fc6f1860b9779f13f59e6f50fc657578bf6ecc3f70d0fde73d38af1d4ee16ba5d9d197f6db5f47fbdf9d8b4f4d3fbd337fcadd7c2f96f0267fb425161d982ad851aff2288ef22e01c08d690bffc6fc3456f787e78edbb9e1ff65ff6f761f383f73f3005f3c66fc1d362eeec9f6977d80200e6e1f09bd3634bd685d15dd29550ade83a14fbab3c623d7ef7f89d4ec2d29d04cfe824a40fa6cfef740996ee12f89d2e41d22548ba0433e0599868f5b7b4faf31cf557a8bf44fd65088f70898ae3a3557d54747c507489a24b145d45f844e0c4f8a0d252ab343ea8b444a565dc6d53db51657996f02c6918c9912c50569ea39ee3df0012f5945a3df1433d25ea29514f998293f618fe19fe28a4d40a895f865f065e9e6805945a01f91d059428a04401654e7c4e7c4e7c819f56b851ddf02bf02bf02bf02b785ef21cf5b2b47af11cf592a8972c3bd46752244b2b11cf5022891249944856ac45c55aa02e92f32939311275b1b4bae08bba48d445a22eaac6b7c617e5909c638572489443729e55832fca21510e8972c866fc4f155f9441a20c1265909c79c59957a883421d24675f8eead0e2c71d50547ec93d90547e49e597dd783738271de7a867ec19171cd605e767c1f705df9763150763c9d9dbe0ee6cf06c8367fb18f711bf8f67fbbafbfdad3f832913c3e66377e76bbc449dbf63dbfef739ff7f4f31bf2a16ff02");
        deltaData[10] = SSTORE2.write(hex"d5985bc81d5715c7cfde7b66ce9cb95fce9c39736e58456a04c50aa955d05895f8a088a594dafa521faa5249494814098a454b1f829658f1c14a2dd4d60bf8d056521b298dad1529de10abb41144bc5425b4052344411d7f7bcf3ef39d2f5f12cc43a53e2c66cf5affd9b367f65aebbfd77a20180c3e2f0603d53ef5c089f6bd575ed9de72ebe11b06838114c352ca6125859f4a310aa51c95520491944181600b33045d842d4a11eea352aaa892324e107431ba185d8c2e619c304e98331d223c978249d1a5e83217419f8508efc9b0653c93e508efcc78570e26c79e63cfb1e73c9bf36c114b59705f802fd015e8ca919425eb28d197e84bf425faf10809109e19a31fa31fa3afc057602b7415ef9af0ae8987f8086b9d609bb096096b9960afb1d7d86b6c35b69ae76aec35b6698430ff94fb29f829ff6b3a46784fc3fb1b6c0dfa065dc3bf692652ccd0cff8b6798e14df66631af641b4a7efbfd7311bc24f17fa879bc5950f0178a5d6b71f7ff737dad37b767bdb40ec8418776056fb9d1e7cdb9ebc3d76fddb3ab0cbabbdca6cb3f4911112540f035e9a57ff79fffb5d030c136644c648854c92e37646d1fef0f83dc36e3616ee1608aff5701a2fc38962247914f037957efdae4fddd23ef3e1f7fdc93ce0f1c51e3be1f1d51e7fcc03ec255b0f7b4ce831e1901d18821d821d821d46eb8911b043fd22b0c3c278adf0f1229f677cb03e581fac9f749eec83f5c1fa6047ecde6868bc5b8cc08dc08dc08db4c7831b810bc004bc37088df78b004c002664f7436c21eb0ab187d843ec213b1bf25c843dc21e317fc45a22705160a24544786f042606138389c1c46062303198184c0c2606938049c0246012300998044c022601938049c1a49e8d2a302998343011265230696ea3cbb31106260393057db47591853dc79e63cfb1e7411f6da2c05e602fb017d80bec05f6027bc13b0ade518229c194604adf44a028c194604a302598319831983198b1bf118d60c660c6602a3015980a4ce59bc81415980a4c05a6ca37a273682314cc2430912a269189d4ad08055383a9c1d481895851eb08c53ec53ec53ec53ec53ec53e0dfb08160d98064c03a6f16df48269c034918964d1e00f3330333033df4672d045f30ccc0ccc4c63f0ab197e35073b073b073b073b073bd7910f760e760e760e769eadb381140bf00bf00bf00bf00bf00bf00bf00bf00bf00bf00bf04b704b704b704b704b704b704b304bec2b6c2b6c2b6c2b6c2b6c2be658615f31c72aff1e01fb47932f08d6b63d74e9e526604763841436225d058c8309ce1e20a440e3fce8427438ba34b4a01d9dc923f4117a9c5b1ae7e63ee61e479638b2348e0c2e419fa037d4c07c29f729f7860eb067dc67dce78c73c6396352bf2818178c4bc625e39231e95d8c198f19578c2bc615eb9e709d70adb9d67c4b3df9051f1b9b547678ef5b449745f35fa2dc65fec091cf1c6c3ffd899bbb1ce7f07b1c7ea143f276f9656e6a5291f4e3a7fb14fbd8bedded5dd76de563cd929a1935d374cc52fe16f065e6954f3ffef3a04bb136694397029a14a9a63b043a13659fcc7f07f83878a7bdfe0327dbe2557f6bdf70d599f6b2bd7fdfd5a5e0c46451395cb02464840448884448bc806b534473ee5c2a3856c1b10a8e5570ac826355861e6e559a5b0bc6e59c55f39ce13fae709d82eb1cb84ed5fc861add9439e03a65b88e7bb8cd6978def01bef9d217364317ff66298e8540f8689da4377dc6aff29ac0e23491849c248b263a4e7ec8e89f60b771ef5bbddc2d71cfcc861ff5d9cded564e37784e2fbcff73c0783bae761cf33fdac076efa907f7e9eeb29e99f5bc4bd67b7b36d6bbb19ffd5cff8e09d5fb333f2b41bdbedb384381cae896f10aeffc2afeebbb67df6c8e1fe2f08fb1736785900bec4cc7ef2e8c1f31e0970411fe06bccac2ca33df5cc4f2eb814c952e470148417b17b51788eb84ac2f5d73f76c7bdffcd2e153c909b076ebf7d9fecbf7c9294183e39d047d7a35f4eda274e5eddb6bf7fddbc3b58d4dd5a86353330f6a75c1b39080b398870f3044919e748c1788c54fa58c74e9a635cb97164630edc5968579e35b830f32ed02da6522e9b97b1887d6675271e39d274ab03ccd9b8fbe5990deacc067666833beb023cd3cc0c3ecf6cb06736e0331bf499ddb2cc6e9b66bee215bcf49ab3bf3cbfd097ebafedbfeec25f7429937fd44cfed513f7b4df7dea78bbf76307ec97c526d5775e179a136197ce1393c6459298d42dd2a44fd9d29c1fb837e7047d1ad767011db7a1f15a69383d21bbe00093f8d5fd661fbae2b5dd6677eefd7a0c078ce1c6fbfe3deb56634f637645c2ae48d81509bb226157644e399a44ec8a845d91b02b127645c2ae48742b7a73eff1cf3f78b0fdc17baeb8505adf63834fb5a75ef86bfbebdf9c6a5ff8cb733607841dc5f15655c56fedbf73ff8fff60bfb3948371f90e0c7799fcaea372637b5f7e36fd8835fde87ccfb6ebf4a3ccb66b3aaaa562ebe586d33b38bdb3e1f40e4eefe0f46a9299da45e1f46aaa658cd47d7da27011858b285c44e2226ad9bc93453e49407b260b68122213b497bce9cc9a8c3ed2670597875c1ed2d9c1c3d73c0805ff74862c6e383344a574c6f06786b094ce1ca399212e1554d20d6a43606e58235343642ec5a617711f4d91c6109b47b1e9c6e8e229e3c6109d9ba04bd0258d74213d37ada597f20cc4e7427c2ec4e742786e0626439f81cb66087608d0cdc15354ba05f6027b81bdc00e29ba14956e89be440f41ba63eec7dc8f1b1221e38a7185ad6a0c79ba90a7cb8f7627e827ac71d21832752153979fefd6e86bf0756308d58550bde9842bfae9d490aa07a1ba6c884bc1e85230ba8ddea49925d89925d9523a734e3cf39925dcb174745c2f20f125ff7d896d896dc575c5f32b6cabe65d1793d6afea19668b90cfc930d7598671dac3b77dbd3d7de08dedb7be72b70eec6d2cae8859678bc56f782964f51bc31d47890b93fe07f50f74f4a7ea02f7fb77dfdffef49ab7b7575f7ead235ec442b76bcf9ca3d8dd286c1585ada4a09514b3ba85a337715dd42a8a5a451a553ab1076082bc6bed10799b05aee28caf74d20f5353dc9acc17563b8a5cc5b95f6f67d70ecabbec18553b0a5d451de090a61d8a5cd5b78a72d32a9271b5a3e855d4090ee9dca14e509a64886c5df8ea769234eda4ed05b022e52bea0795921235199936536e5a4db26f356d15c3922258ad09cbb49d72d36e9259b5a33056d087a22056796c5b50b9694349d386da5e242b0a64a549cfb4a672d39a92a635b5bd505614c90e34e45024abbe65959b9695342dabed45b3a26076a02b878259e9d021fbe8c2d9309169656d2fa015c5b3aa12dbdeca0d5bc9aada51442b8a674dc46a126fb4bb7403a9da514c4b8a6845112debd8b6bfbad697d435d5390a6b4951ad28aaa5698ba5b63556da96d8b98b6c45812d4dab0c7c039e0ca8db65e72bb6952eb65ffac5f5cd615777c8f6674f3cde3ef9e823ce9adbe516a7efb7c730d9fee8b30fb7fff8d2b16d871ef9e21e7a0ef2f26362ddaffbe2e7f6dff43fefd76df6e602dd621876bd361dbaeb905c87db3a9cd661b276ff4df73ebb17b4cd45471b2eb8d1e3d9e166e1ff837bfd07");
    }
}

contract CrypToadzDeltasB is ICrypToadzDeltaBank {
    mapping(uint8 => address) deltaData;
    mapping(uint8 => uint16) deltaLengths;

    function getBufferAtIndex(uint8 index) external view returns (bytes memory buffer) {
        return BufferUtils.decompress(deltaData[index], deltaLengths[index]);
    }

    constructor() {

        deltaLengths[0] = 5772;
        deltaLengths[1] = 6131;
        deltaLengths[2] = 6126;
        deltaLengths[3] = 6073;
        deltaLengths[4] = 6130;
        deltaLengths[5] = 5716;
        deltaLengths[6] = 6119;
        deltaLengths[7] = 5860;
        deltaLengths[8] = 6105;
        deltaLengths[9] = 6137;
        deltaLengths[10] = 5909;

        deltaData[0] = SSTORE2.write(hex"c5986bac5c5515c7e7ec7de6ce99f39a396766cecc5cdb443f60a2111f1f6ac4d85624928026ad85ab81d0188302d69a78a3152a8f36901683b669281868eb23dc0b3491c8f37e200aa43725a5c64824b5183ef8a5a655206db1c1c7a7ed6fef736633e54e4f67228f0f2bebccdaebecbdd7ebbfd6991b834ae522a75211eac8e3cfa999f9ad5faaf0c3a9b584e33584f05a501bea08a71e0851e777bd0365c2f143217c7efbacfb9910013c401ea217f21c228be0113c86c7ac356a10eb0d7e37f8ddac42c89a01c47e4de44de409f20459822c4196204b2321529e539e5b75215a3cb7786ed7211f62bd8dac8dacc37a87e70ecf197b655390077176c69d33d632d6baac7559eb22ef22ef625b17792f84d8af87ac876e0ffbfb9cd38f84330d9fe66e1f48a0f4261c18e13347fde8d2558e719e1f6e46f81123dcbd6797678455b4ab298467a71a50132f734a8d1d6bf1edbc7081d653db57276ae1ea2f4ce52f719d29a8d6312130aef73bdb50fe90d9fde8835fcb15fd58380114426da80365f10ebbebbe3b7fa1666666726597a3dd4454aa4d28e10478adb913e5cb8cf2aebdb13af8ca150da33cd5cd8faf75c9089ebd1ebc8fc79a7805591f9bfa7868ba2fc432f496215bd61362797f9775c2a1a71ff0864f765ced08ae58d58e88722778d16e7bddc3cffe4ebd7870b1b82ebe76c903977854896b8d387ade5eeb843bbeb7b17002ae0da0106a431d286bedb3d77862cf43e3c4e2015ef8067a72e008a58e7db25de68c4a928a4a9a0ad9863a29a9d51cc74173d6de338fcdab1f7ce6e3d60c81190233046688dc8c7994933ccfb63f2c6cd0b3f8d793a4ce23285f351ce456995dd60e5d1ab6144a6dfa0d07ac604f57fdf6d145f5fc11e869e8d1456f104b412c25b17489a55ba56ea73ce11253e9798f591bb9596e639d9074a3056be3ca552bcf97c8cf8e0838c1ad4679ce4de92349a91ab0a353a9567f8e173699ddf7efd8a4eedfb27eba2863889782a0a82d8d6bf088df113c86c7b1c133a7111bfc729a51815bfc4ee129bc056fe9bae47d539b41519fe867d12287dfcf79d541f886b3ee83c3a1944594dc5ad7845412299748491da93cbca2129089612aaa31d4486d6656c9cc2a99e9125149445d22eaf634b5a1ae90445412519788ba44d425a29288bacbfb07ad3b4fae5b3b4e191fe285d9b7d74fafb47e8a5b4b6e2d876e3d613dbdf06e27f7610ee81b571cb87bde1de18adf5b507a7ecbc365a0f4228a5f34653288fabaebae519ff8f48a7054f1ca3a254325e828bb7e60222dbbb190b428b71fbc5438dc7d7b0a75274d9f0953e3cf3635f0c73895f6977141fb1514174c284feeff95facf4b873f6a943d5aafc7ae7576abf35cf7b93a634a9d30d68982cf493e6b3e6dc247ee230b90051e90caef009008e1213c8247f0181ec31bf006bc096fc21378024fe129bc056fc1dbf036bc03efc0337806efc24d3a257fb55682eb65561e9b744c7875694b2d7fe14d0b9c8c0aeae5af5f5ed662fe85f26653b88c32ea8db9ddeaef7b765b2c1460a1000b0558280b2c1460a1000b055828c04261663bb899e5d0070b055828c04201160ab0508085a2c04201160ab0508085228bfe6d6f7bc3f6cd6ae79acbca605ea1bcdcf8e2ae3bbe5f1d9e141c5727605d27dd54f83e9546124ed095d3301fbd1cb563f6e7cd25cd270cf2a6a31b4e2338bbd1e826a31b4c3bc81b4bde54a6ede9c7eff9b1baebc0b5658ebcc02a1ff8ee0a7564db1a3b52ea509b309b509969e3c3e1200367375c3f4e37f898dd7dfdb66de78be985e1a0724e3ff15059e5689cbccaa42a95a3beba69835ab5fe92746412142386938f8d45fac645dac679ba9a148d4d6acadcd6cf864b67ec9137f95c38e809a461de137439ea52cccb7075b8b4664b41f292f0dc83f8395a5879dbba3c9c1066d6846302d8daf07d6af5ebc2c1a4c8974d3e297abce82557b2f029b370dfe76ff5cdc2e0da1114430d288152a865cd99294c71d41b7b379d730074fecf01d0593a005e6b13882f00f7ac1be737fb968dc6933fdc58f6b9779d55e413a12c6cdf79a7336cf67c4570e35b19b57a45d9d56eb661d871fce2f7320cb772f0ca1c05ef9e57fff8db9be11885029ae01b5259a4f04eba85973af9acbcf34a993bd51fd4f55616bf62dbebd1fbf6aaff3eb3d05cd25e756bd56d55b7544c92c3ad54b751dd4275fbe4fa326f9bdbadf7f7dfbc615406dd394933fa6938e18c716ff82e8fdd3f9be4fabf2c12a86abc7ce627b7a893b76d54c76eba5e7b3bcbbd4dbff153133b69a620b89e8422382021010909489829b0891e6021010bd162bda52726b8999ae064adcbf457cdd2fd93dcf211942f1ef659348ecfb48f86fd836f9eb4a79ede72a93a337b51d980f714ca171a65be8cd56bb75f5d1a5e4178452d5eb027cc6dfda6ba67f6cb6795efe084a27c9f294e90f9e77ffee95f7bebd33f12929e2c8b9e2c290ce1798b23006e24381c2c14a53a71fc7575eaf42975e2d5d78b84d715139962979de8906d0f27fe3497b7873c5f5fb0473d3e774319961e46f1db66701c74b6d74efd531fd93917544ad2c9d55d0d2870e9641326f91f6de3fac3beb545e32a6e65402ecec1cd005a5c0099b9edd149f2ee6594ef3566f1313fe29f86a5992030553b4f9ad998f91673c55023d726bb438ddca5916bf365d634df431217c89ea636c41e3a877181c4051217489dc7b8402eefff0f");
        deltaData[1] = SSTORE2.write(hex"bd985da85d471580cf9e7d7ef7deb37fcffe3de75c095825a2a5f54911150a2da815ab22c5f455aaa8558316352a2d8a79282a69da873445a43fa90f2236620b494ca1122bc1161fc488065b5b9bb4b16952638b46d1ed37b3e7ec7b6feef5e49e973e0cb3cfdadf9a33336bcd9ab5f61fbc4ee7dda2d311f553bfde513ff7e475dfe9f0c31afa420c03fa9016f11cd327b431cf297d26c4c815d6c8a3491adc28a2c18dc6349851262cc7a1c138304e288403e3c03809cf700e9c03e7227319df45e6227391793e0db987dc43ee21f7904be412b9442e914be412b98fdc47ee23f791fbc87de401f20079803c401e200f987fc8dc42d61032bf90f98570215c0817c2857011b20859842c4216291963c6c863e431f218798c3c469e204f9027c813e409f204f918d918d918d918d918598a2c4596224b91a5c832e69431a78c3965cc29635f33f62c8b85c86033d80c2e7784c8e172b81c2ec75e39f6cae173f89cb173f81c3e67ec1c9d82b10b578802be609e057c814d0af802bec0b6056c015b3276c9d8a514a2842b91578c5de10b156cc5d81563574a9e9dc489b6e137567df6e1037ded400e7fe0fa8d11c7b49496f9cf006ed7e04ff73f34d460977feaf24f5d66d51bd198657f28ac016d38fc330aa956f8d97d3fb29b91813d9412f7795e46fae5ae13b70afd320ad45ebdc88b99fa5dffe6d82feae38ffdbcdbfc158bed318f1e505f9e017a1cb95defb9d7af8ffdf1a3f5f79fbdf5ad1aece7420c525ace1c781e16f4a5b0f15cdb0d6989b03d7a3cd396f478a2edd3e37976408fa7d96144838ff88df7d8313dde6227f478873da6c723ec941e2f1058dac6d276166b2b0aac270ad59455984789bce4b92a859832b729b26921c4ac3cc742aed0abddfddea87e64c7358d057a40fdb45908475670248593be02fc4ebdea2fbde3cafae4d98bf5f957ce3b739309d76dcd66fbd83e76b5f9ec54ce4df82a03947ad3eff8d6179b7ded31b53e7b3ac03203f95a3b9d9b775dacbff7a1f7f5e79b6f7523d1e98534bca84f3f08ff69ec2beae3174ed5070f1f69ccc8e68934bcb8ccc22c39875ffcc24df52f6ffba1f143b61073094c25d86ea10e5c9674e5dc0f7f75e8fee1daf9595d16b3ea246a41d85e4ab9a4e3faadc2ce4f7fb251e801f764337a5fc10c3018340a8351d82a3cbef7c1ad28c4726e88bbf6ef3186881a63f458643f2ce412db3705967a34fcc2d2a0e7cf9619619b6c828050074e1dbcde7c9b045b24d822d16ccd1506b4eb73675eabcfffedbff5a953ff6816c0e11284707558441abfa99dd3e93b769939256fdec4120b4db75dce83d3c1073eb528385d29e75143cde9e597ffb56e4e5633a7ab806ed1a3edbb6f4fd98c166b48df5f44057d5f1115f4fd4454d0f7115141df3f38b6be63880afa4e61507d871015f49d4154d0f7045141df0d4decbf5a6e31bebe7d1983bdab851fb8fd13f5dd3baf5f37b26064b13af2fbdb6dc7dbb6e29e1f40e1e37a74135e9345a15585bf25c3def5edf4f7eefdd3e5e2cc07e5166e841b36f76073a2d44882102706fe8d1b0ff7e268b06319bbdc6246172ac2d6dffcfae7060d2c9bb96edceacfb7d339f7911bb6629baf6c0c1debe7ff8d4de2e3c205ee5e668177b601e085d367d5fd53bff0d7b3e6b0112db8772cee1dee9cbb003facc15dd7bda73eb1efdefae2d147c2c64b312d074fa8d3c9a113529d529aba7ed5edc121131c32a14e2d874b8cd5e96dae5891c5fb9699eefe6543f9816577ef2114aed60a6fdcf1e5e632d6c1243141246982870e188909142a48243f6e0d79ea4cdd862bcb842b32cc9f6c35d61e5ed6e98e6c720616c6e1a3287cb535e6135fbbb6beffe66bab4b8d69ebcbbac9ad84c9adc425b995586360955b09935b09935b09935b8936b7d2467f6c19a31f93f33c89e5d5476efaac9ab5b3f196554b0ce7a90fcdd7350e59dd7106d8a9f7e7dbe78e556de6aa0aa136c9729bf82ddda6a8f1dda68809dca66899172691db14222a19538547e23685c6d835b1df35515a170d4f9a43d3d101b7c3b23a834c7408b69d51213a2ecda3c5b48496d2325acefb9c9eecbf43e0ed143c13783b64fe9d1259993f65f64fbbf5e03216ff2df0dbf4fe99cd56fb37f87f1b6e6b0f487fb7f192597c707e8fc2a1aefa97e307efae2f3cfab1fae93baf798ba52f9ad1aad7f6bd665a7d7fd5627da6dd8fe7de4c831db8eb2c690d5452abac0b3b506c622e2f2aa4e1404d8086ced0530eaeab666b4dd56ca9aa79d4a7c1aeab96e146415b358b119ee4f44db5ecaea998e19ca0391b8eaa8e7b343897f9ba8e712458573657b63e3f914e782d0fd683f5f86f8f797ae8788e713a554271b2bdc09cb54827c8964447a223d191e84874a4631c141d898e0c9a60ab0313bc0fefc3fbf03ebcef1847865715840faf03186c001bc006b0016ce01867870d6003589d25c186b0216c081bc25e52ad8b3020d0af09f6aa6a8fd08bd08bd08bd08bd08b1c7380d08bd0a342143a90c2c6b0316c0c1bc3c68e3964b0b1aa7e6075c0854d6013d80436814d1c73106113d824682e1a1d9ce1c7f063f831fc187eec98030b3f861f07264e45ba30b15274527452745274527452c71c6e74a8c0441a9898169942069d0c9d0c9d0c9d6cb4e10b82c8029d5c9918d87c45c8d1cbd1cbd1cbd1cb47fa8b82b5e68b82fa9a2048c8ec1cbd3cd6899955a057a057a057a0578cdaaf0a56819ef9b220cc570551c46b9239ce8dfeb2c0182563948c513246c918a5b3ee8b8355e2f725ff4ff22754f2470c12c420ab42af42af42af42af42af42af42af42af42af0ada2f15d6047e023f819fc04fe027f013f809fc047e023f819f289ef33a859fc24fe1a7f053f829fc147e0a3f859fc24fe1677033b819dc0c6e0637839bc1cc78bfc2bb15deadf06e85772bbc5b618c15deaf30c64a7472d954e199b626a258363591fbac294aecfaf00f1eae3ff386d3f5f6db6ecf9b0f798c30648411da239e472ac4b04487df8e0a233cbb438ebf0a016cb7a497f47ea4b30311d3c7f4097d42afdd95aca14c9f5bb62238d35631a418fd4dd7daacf1efe6066b4b8768b574b87cd9b0a06478b5ad025e3a7fa13ef9f44b9b5578ff3617f7ea77a1fa2f57158b8a978e1b73a7b2292a9d0a788e686c9aad362a8d5767b9b8a0f94f9b313cb17bd7eb993174fc251223e1cf3fba3dffe03dcdd71af5d1378f7d7f5e191ffaeed1d7ab324efc25bf9ae41b1516a7ad250af7c0755b773871e046e512db167f2a4cb45ba87456bb064befe21edd35eed155eec192ba69bce61360b26c1d5c2dbb05ff03");
        deltaData[2] = SSTORE2.write(hex"a5986b885d5715c7ef5afbce7d9ed73daffb9cd1a2adb642b1a8d40869a905a9a2b4361489a210b0d86ad584a4600bd54030621189354a8968c5242d88504c8d107c6168153f68294ab0ad486994b6c4242801133f78fced7dce3d33934c2f097e58cc9cbb7f6b9ffd5a6bafffb92a6834ae6d341a521c39f078877f54963cccc70295560febabb4db5807eb5e83c3674da3d12cfe75687b51bcfa4af187bb6e2df67fff3d279c733bc372d54e17eba9e9f4314fb5cb7397e72ecf5d0fe305dd449bdd14cbb05c4d8ff61eed3dda7bb4f7620ca607d3a3bddfc560fa307d983e4c3fc206186c1fb60fdb87f5603d580fd663425e88c17ab01e9c07e7c1f9303e8c0fe3c3f8303e8c0fe3c3f830014c0013f0ce80770670015c0017f0de0036800d6043d81036840d6143d81036840d6143d81036848d1863041fc147f0117c041fc147f0117c041fc147f08316d6c63a18be037c07f80ef01de03bc07780ef00df01be037c07f80ef08df18df18df18df18df18df18df18df18df18df18df18bf18bf18bf14bf04bf04bf04bf049f04958ab043e814fe013f8043e814f6153d89477a4f0298727854d6153c695c2a7f0297c0a9fc167f0197c069fc167f0197c069fc167f0197c069fc3e7f0397c0e9fc3e7f0397c0e9fc3e7f0397c0e3f841bc20de1867043b821dc106e0837841b72fe86b023b811f31b31bf11dc086e04374ab014e36c8fe0c6f439861dc38e59bfb18f0518fd8fe1c7f063f831fc187e023f819fc04fe027f013f84988456aa6b44d699bd236a56d4adb94b6296d337e9f856faba3f4d78f1c2aa3b4c9849a0cb46923b58bd948ed9451dae9dc80c3d5962bf6de3c288e7ef4bdad32b433d51646946a0723f2b497bd1378d9c1cf3e7dbcf8dd2f7fde2cdf10a9da1cb0c4b45afe8df510be79605f670e4893356ac665b22841868075fc4d38f8cee1c1f7dd24cea1e76de6c781fb71f3ad5bb4fc31b13b76130df7f26c8a87f7ec2cf67d27289e7e614b5e0e9aee5b21031fd2b5e7ba37ed211318925a46fc1d730c182b5b6bd85233b29662306c87b215660233cb307e9b8dd42c8f6faee6a3763ec52bcf1d6cbfde9c94176ac7bf0d87adcea11a5de21c18955b4e46241d3baa117fc7aaf6400eeda812d591b5141b560784ff199132226544c2887479fc816a44a67875fbc78a33477616270e7fa4355f2325bb193297123d9ab935db82c355e5a9f8c2bd15c890fb9887a55886e5c1c70177b89eaba117c5c9b78f160dbf413e6d7831f90e236f35c8270d7283217e0d31594f6ff1943e518ff0992f3db1688477037ed88db03aafc5a33f7d63b4e0cc92fdcbf530646a430636645643c633642f434632ac93c992fbea637be6ce3b2e27723e8f43e6b6f947df7bacd8f5eeebcb535aaefcfdf6f2738d9ce9e2c22f8e968bd81b30241685cbc86e935a988b44199a725128c3532e0165884a625712bb92a895e12a495719b226f60591db5e9bfcec162b094df3f88b75789e7ced5cf1e25f4f95e1695f666f1fdb41167fb99ee78e4f7faabac70765ec2c252e7ea415d5f123ede0abf5d67c6dcb6df529b377a89dabb861b853f670f57a57212c953d5795c16a55f0681dd7cfedfadcdab83e50bd466d5eb1f965a98e69c6a58c491993b683c7ea599efde77f8bd3a7ff53cdb2cf2cedfdc4dfcc3f54a7b517f6edb49b539f29e54c29674a39535a9ea9c31b2cc9c2d2e6c9ea10d6113eb8d2087f9d30f8311d6f5adb717fb5e38b3ab549ebd20e9ea2836deb0298d4902e1a9db12983111a2ec38df3d08623fd49bdc0f7ec7da0f8faedef6fadcd8a8da5081bb86d6bb4a363f5969d397dbe387deafc465b767c830273e1c1fc0d0e3738075240afecb13a94c4932db66c11658b1b5ba8d8e2a33aac7fc4f15d0d5b993e7bec78f1b3278f17cf583b76bcbead2885d490d90dfbdf24b337b9ad6c76371dffc4a5d7dbe2c3f2671c1eb838a74efe9f9c7a85d7c5f35772c5bf786901b178175ebedcb83d0978bf03ff72e49ee2dcaff64ce629d1d5ef554a2c6befa4aaaf93aa7e4eaada3859ad775dfd9a54b56852d59889ab1fd7a6c6aad6fb5b9d76b832d7a69dbfd78b7370f7278bfd3b3eb82ec369758f5619ee6c5da9fcf6d80fca4aa5ed9de3c7a3ae876f7dfbacd537d7b906748da06ba4cb2140d3089a46d1306e99d130d2e380f468eba177d02d8a6e913ebff53bac03cf6813457b28da43d1178abe50b483a21d145da0e802a5de57ea7da576576a77a516576a71a5c6566a6ca576566a67a526566a62a5d6556a5da596556a591de617eadd2347dab5595a1747d5d4354f249c2f200945eb0b3a0f9406bf698ff71db7dc52bc7cf06051ec7a4b511eefee6a3cb4bcb2e46b05ab87a8c5d6b4e2799c60f6a6e8af3d5c186cdb1e38d8b665137762a5d3b67730068f6ca48cc4e03bf01df80e7c07bedbc2609193829c142727e1ba705db8ae3d7e30484a41525279627e39b91e4c7f09a31d4929484a9bb30449294e52527e23298d95941e9c07e7f12e8f71212b055929c84a71b292e441488b0fe7c3f9703e9c0f87b414a4a538696965234c0013c00430010cd252909682b41472a6b19232840be142b8102e8443560ab252909582ac34c8499b4224828d6023d808164929484a41520a9252aca41cc0201d05e9284847413a0ad251908e827414a4a341321a2b196358a4a2201505a9284845412ada5c2e4845412a1a2b111338a4a1200d056928091cf2509087e2e421ef4d61521824a12009054928484271921026a52f2b0933b80c0e29284841410a0a52509c1484cb48d284bd410eba3499c3e7f04841410a0a52509082e2a4207ccebb8730439821cc10061928c84071321066489fc841b55270043b821dc18e6047b04841410a8a9382f437e2dc8ce1c67063b8311c32509081820c1464a02003656cb9d0690e99c04e6027b0484041020a1250908082041424a0200105092813c631859fc24fe1a7f0c84241160ab2509085822c1464a1200b656a79d662063f839fc1cfe0918b32839fc1cfe067f033f819fc32dc32dc32dc32dc32dc32dc32cc32ed2bb4add0b642db0a6d2bb4add0c70aed2bf4b1326885f39a71cff6fb16d58cfd3aad9c7afef7655a2945a157373476ef2e1becb19a04010d63d7f0d23fced705ae5405ae647118ce6f7777b3ffc9ddecf686af8b7aa5a83714f54d8afa6655d4374942a6d34971dea6369bc56f3d577ce6a10bc5a63bffbdbfcc6653c66695e5049b314612b6bbb079eecc48eaeca6cd262478e98e317eeff2bbad39c9245ad5fe8224911e6d3dda6c0564eb51f7518a67328692315c7deae1e3e1630b012e02633f4279bccf8323632819437d389f762e08633f40f9b4fbb4932d34b0d515ed01fd902dac04305c20c67e7c0a280cc8144aa6d01026b485c694cb84dfc8084a4650328246b44561ad450c178e899054f6235384aa8e50c8113564842f9942c9143ac0870ca16403b5955dcc734c1f317dd822864bcac4f4613f1ac5f411d3474c1f317d901994cca0093e096cc26f64022513b87a3da51f3281da4288cbcdd80f432973210b68d677f53c1287e8a7cd7e04ca588f8cf520ea95a857a25e897ae5da422f51f3c2d98f3f395c0e47e42b91af44fe3cead57d00a28d2857a25c897225ca7514561f7ad8cbd1acfa88c3be8f791ef33ce17c4ce877c2f384e7296767caff53fe9f4ddf106e5c369565a4726d2a2752dbdd37016e76c7792e782bd9d35b2c7a236dda1d27269a59fce6705ed551b85cce3799abc3cb1059d75cdaebe252f8dab09437381cdeea9569c12fef547b4fdafb2d5c731fd9bbc4de13699dafaf0be7b5b495d5dfd8b6b5f8ca5d1f9a6c2cada30de5b5b9485e9b4be475b44e62eb7a897dfdeababc76d6aecd4612fb1d75ee7a70ef136b8bcd1bc38d05faba55dd04f490db703bc797bebba738f3c3478ac7b7df5dcd9323c8a2992a75982a5d982a1d982aec4d15daf3efc5a60a4d5385a4a9c2cc54a165aaf0699621f23f");
        deltaData[3] = SSTORE2.write(hex"cd586d885455189ef3ded99dd9f9dafb31333b63ae12e40f23a20223417731758be883d8c630b1906cfd20c5655bd155210aad2cb7cdec4b8970d735b33fa66818a2195208651122a6209415cab66a99a1159e9e73eeb96767f4ee756fa5f5e3e59d61de73ce739ef7f3ccb8da486454241261bc75eeac183e10abb22036b1ea5a88492c9682a42199f1309e011b8377adcbf07d479a393f7e4b562eaaae238ae588c58b1449da1449d9646420b5f86c416c7cce427236511e9bd6418a38a498251a56241a9e83d4111b5e20aa2f36e2a0d112d5ded51be215a8aa1c3f6493d43588af68b4f8f647eeac761761d7ea9c444671480d24916b827151eebef2d9b6a86ba8eeebee781f0cae97bbeddfbd8b7fb9ef932ad708475565b063023bc62135f7c3b0551a763cd7c027b43414a56102bb254da224b0a6a053d069e83474063ae310d542d7e2bb897b99b0b7f0ddc2771bda8676a01de82c74163a079d83cec33e6f372b848c9fdcfc967bd7047e94078a45628130761e8261bb7459cf9e6efed1c19dbc6961ab464940291611508a8504940c2809289942c9809280928092809201250125034a024a06940494e250024a71b0e1a22ce1f0e5929ecd8bdbf89e5d2b47f8ba32064e1518526048812105a69cb27230a4c09002430a0c293082320218cadbd33565877a1f0ea2ec516df8eada2ed7309a842034a222026a2009208fb7a82835f88905d3785fe74cfed41d37ab9d71a564868c14248bcfb90c76ceccd251dad27181974a25b53b488b5a14a93221c08ad08ec4ccd9301e2b77c7aebceff42ffce8b1be8487dbf39cc02e124d7a04771009a6ee31071bd4cbd3b0969f3ef3a71bea82652c908196b3e7e95c38b8fc016550c1486b98cc6ad3d48111cd0403130c4c3030c15c261669c36d0b9f0c7246070c4bf2785572ecf2724331948c383ec70bb2f478a585eac0504108ca4ba16eb032b34439904421e0cf2c9d1ff3f29c90e7ac5a78199e8fc5207148cd522c484bd8075adb9934b69ca74341f4873768255c1986fe55ba6c7eb6b33b5e1e5b2c6acbdac5aa44e94cbb65339eeed4bb9f6d1cc35f6abe7b505750de79390c9457605c13115884512466add11effa0677690c75f574563a0c96cda52aa0fa2d4c02686c883b4c805088a8481c260a02818280886cc0b27203a06a5ff0d7d67905396de8eaa548eaa3412f9ba3004bd33488f71eba2a801846644b14c77d820edc102cb6be9e41a0bc3f406d5ad185f7e6adf30f72296ee564c752ba6ba1553dd4af401a6fa4079b762aa5b31d5ad98ea564c752b36d0adde0b43ccfb618cb7f944bc6fad76c989c7b763c1ad72c1e1e937242aea9dbcafe3de53decd517792a1b9030b975d3afb5c171496439d834284e3873a89827215a1b853938866c73f7f6c41455b2214631a684bbb751feb58f12e3fdb3af6b24097d93510e87b34eb8830359ea5f47ce413921f87f1e97e6d7ca4ab8d6f5a323708fb0135df10bf7df177fc89de8b3aaeafc148f1150e5fec12d7d4c03f5d329977b74cbe0c80a100180a80a100b8a5ca94e5aa1c80a100180a80a100180a803100e0908e87bd8be604c5c361cd69e598e25bc78ec2786a794373fe5ecf1d348cbff781ed3b269c80614e7411399944a2190886a391d023cdd303f3cdcf17797fffef7ef3cd3918cd9347adfa7142c5747e15ebdd6f3aa13a3be7f1535bdb2a464e2fa1ca183fef3337f9faf18236fc694b6f90e11fdae102029c1ee470c3fc8f9e3151d373e1f193bf8af9d6cf8535309a23effcf6b7ed85abe7428d2a61862c6f96e2afa23714fe95de109c4805d3ab7ea200bdb06cd9b5ac7e451c3e461e3ea57d2e6f983e51b7530a68a76e1438c34c6f1679737d97420d8e13e0389954a520e9968334741a3a039d81ae85ae8536616fc2dec2770bdf6d681bda8176441949aa529254e504f6f974bd39c4163aca0cd1b3469be5e97666ebc6a074bbd1f45e11185adc57442c7593e90d26e3d6bc166630b9cd74df89d8ad776aaa223d446a887410a9e0a581087f11fa22ecdd701f635ee1ef90f13a4b4ff59fe7fd7de7fdb274a20ec56deb1bf9d73beeba96a13809874f166d423cd979df375ff01f4e9c13f52415f4df11e11184011b0ddaa4a848441c16cdd94d611c7f0f8c57c993c5745e36068cf021120b2c3240873c51b60168f9728196af1781c4a128e8888a570ce8304087013aa2f245032d5f35d0f265032d5f3702b9fbbf8b91b7efd5b1d4b5bb274c2c3da89303efc1a0e428e9130e1f3816e6842961c89d16c67886f93f18d01f0f8378e6504b518bce50b845255fc5ac34dfc76fbe03559be9fd1d584652f11f91347472dacdab3c573e8f0326e864c453d91b2b9257783223219348bc34120c3a977e514f005bd76e1cca1f295d58305ef20a3e25afb8a23cd5e38b65c51f736e5019975ccbc0958c62767598e0f90b");
        deltaData[4] = SSTORE2.write(hex"b5986dc81c5715c7f79e739fd9d9dd99d979d99d7d4d5b0b8a7ef10d0a0a62a1d2fa4110ad14213548d54631445262a4899694d688140c212a9ad660a81aab20d580481a3126246aa16d2ca8d8587ca160d560b4b558a4d8f177676627cfd33c4fcc83f5c3657666ceffde3be7fecfff9cb35f8a5badadad564b8b7df745c5a9b3ef298aa75e3fe281186f24d21e3246627c7efb6369f5526905a968c4e8f33b61a4fc1e3086a9481e8b19c522633093943110994e44e6cc33e7d97c2cb261721f8bbed2ad517ce6daa4f8fec6ebbc72c1258cbc61b5a8cfe830bac34318dff2d21d0ed6daa1f127e5ce9a9d8c3276e3c6e0bfedea3b2cf40ae635c5df8f1cae76d48dc4f4180163c01832f2e8586d28c5c33ffa6171e6d4c9a56afbccbcc44a1eabb60346741cc3dbca19f79c3f35ad660c1821b3f6ea997bd5ec21d7906bc435e2dae7dae71a631f639f709f709f724db9665c33b7ab5ebdb35ebd3becf3f0c72cfcee7287b5cf924bf96b1d3e3ab59e933bddf8e9f483278bd347177e629b5e17e3b698b6cfe83c8a61685bad76f18be3c78b27cffcbcf8e5cf1e2ebeb5f5aa62f74d37178fddf4b6e2ce4fef7aa1fa842e037f786e128ed84b179330f0018e376ddeb5fb0cf78ecff23b0c703eef7c9efbe03a1ebbf4453bbcebf0ae03b6138bed64b2d41930868c9cb3c2aedb66f80cd6e862dbed55cce8f6c5765306982e982ef6bd258627da6b33d857af235eafcbe8310246c888c4f66269f71206d81ed81ed8006ce089178009c004d8c20d1bb04e807d807d807d807d908b17fa0c6c436c436ce18f0db10db10db10db10db10d993b5a122fc21e7e7911fb88b0876736c236c236c236c236c2b6df16af8f2d1cf4fad8f6b1858bed3e767decfad8f5b18b9933c62e660f317b88b187af1e7cf562e68e1306fe89c1c460623009df98f08d09b8045c020e6e7b09b8041c1cb7097b4a582b0197804bc0a5ec2905938249c110075e0a2605433cd8144c0a2605938249c164ec2f039381c9c010335e06260343ecd80c4c0626039381c9c00c3c069801980118e2cb1b80198021ceec00ff0ec00dc00dc00dc00dc00d21f310cc100cb1e80dc10cc1109376086608660866086608660826c71739ebe56073b89283cfc112c35e0e36078b8cd91c3fe6f831079b83cdc18ec08cd8e708bb117623d640eeec085bc2796984dd080e8fb01db3ce9875c6f077ccdc63306330636cc7cc4be85b42df8e870cec27d84fd8cf049e4fb09f603f81ef13d6401aec04bb0976536ca6cc39e59ba7d84cb199b1ce8cbdcd7837e37b66c4eacc3d27ee66c4dd2c414ac0ccc1cc7937e7dd9c671b88ab0dacb701bb2b787f45ff71442129c5f3dc138f4a19fc55a0ff7a3d1af4c47a8c7fd72cb977efd66a4962dbe4d953eb99e52f18bfa69ce5b68f7ed8af0c519ea5b0913ee339a56ae4ef1c806bcad9f7df757bf1962f7cb15b82900643b80b612c84a7107a4248081417286ba09f19667f6db2d6e9dddfbc54d67a16c313a6d5b22b44f6b1dd87b6ac2aac6b88ea4562ba9a90ae219a4e2857134883405609913911485b7e79258606313441800066a5881944cc20604ea40c22e544c8c47e9d242b7131088b41509c681844c3201a65e244100c8250254fde23048b80af1229eb945ead82d90eb38b82d405e122f82e04567051d0181730cb02c41020669500592b382e1118cf35fcfafcbdfb2a7e59c016639b561c5bea5787d966f8e1f37519b2a2821a5faa227899eabc17d61336ff5e8fb1214c7794c6bb6e786bf1cfe33fa8ab2b7c404616b2ab4022216b4a1942711d46711d4a71154e642821430919a70aadb80eafb80c3141e9054208ea2d90415062418993751e4008e08e960b3db7dbdf1fbcbb38ffedfdc5e16db73635a150132a2120c4ad52130ab1abd484424e5772b690ab957c2ce46125c72a7457f2a6902f156a0b3950a1b590d7142a0b71afe42171f9877c2279982555a56f8a837fd831a916febf17a283641d873ac2f80de50e83fd075768a0095df4333834c341190ec95cd0c049b2d0eda71fff5a9d2a4ac74feb9392e29ebbb717777dea63ed6af950647529be12c0ce3254dc49fde493d717f76fbe7ec529090e531c26384c7198e030c56182c3b43e25c56182c30487090e531c26384c7198e030ad1da6384c7098e230a94ee9aaf538eceae6481f79f699c9f208304440e5bcb876605c3b31ae1d1957ce24020c11608880cab171eddcb87670bc7032c7896d9ebe2ab928bd597c68396feb521c1ab5e4fcea573ef5fdd7013850faf4c8bd878b073eb7a338b07bd3d5979117f9c40b3e9797f85c6a9fbbc8903a3296fb5c6a9f4bed731719b2cce772c1e76f6cbee8c4feafd7093b69fa39e3f5eb8c1854b46a47d701084bc0f71e3a664a40d0bb8187b79627f7d057bf5b6cb9f28f79f9827c695cbe24471a72a4713992dc68c88dc6e546f2a0210f0ac5bda0b842e12e21578a72417d85a256505ea150958c2b85a70cd2b72755c9608b33474f16c75c7b55b5588d1c51468b22478a6f2d726491235a02513f7c47f3bd3f3d7affe59ce03b01ec11b7dac65bce16e9ab9f2bb6dcf1afe2cd373eff95b54e91c26fe549b65da29932e610382f138df8dcfbf38acc1d924787fbce5c94fa459d8a771dc979d69d97daa894072ef2b4e7149e67f4485a3342e99114172a2eb4f44796fec806ac1160477fa475942aaeb5f444969ec886bc0f791f754b8d2da337621e5cef129fa51fb2f443361a13d1dd26b25d42b4fd191acc337a9e468f63a7cde089292dfb1ef031b5327d8f8d478c3163c29832c0d3fb68a90e41a9104a92557a1bad954253e6e2f895e3b7f43436652efa1a9b3257ca5c2973a5cc953217fd8dd6caa2d0c4663ca37fd19af14adfa250c725704bcf62e959ec80efa25fd15a815c62b7f42696dec40ef1cd10dfe4bca727512245e949949e44cb5e043bfa109b63976337c26e84dd083b7a11a50fd111e734e2dd98e794484adfa1f41d3aa68ca4d79031673be6fce92764c2f94fb89f703f851f53e69d723fe57e067766fc9ef17b3e7bd7ea9abe2c03cb22034377f1c31b93c5df10ffb8f69ae24fdb6e5e5a915a6a75933cdb88e19f8d13aa6514ff445527393a53d7406103850d143665adc47d49613ea9c3ea50d9406503950d5416a82c5dde21cbe264194a1b286da074256a41256c3d27d9f332ed0b545ea881426585ca0a950d542e450f0a2b145628ac50d840e15204a1ee423514ea2ad455a85b0a63dfd571b34a1c632794fda6f85168aad054a1a9425385a60a4d159a2a342d8534492b2185920b455228a95052a1a4424985920a25153a96620b0d151aba5244a05fad5c50101cf4d3c1b812e1a1ab297906ed14da1968277954165a0acd149a293433d04ca096402d815a066a09543250c9402503950c543250c940250395ccd4b5a960a192814a062a19a864a09299cfde972c0a6397ed9f3cf291e257df78ef789147dd81292d4b594dba4af27fa9225d0559578f9a679b1a0ed7d2dd5e9e75a4fc177191759c6c471fa8f5de149b77dede5bb3342a33f945e5d1879a9ae2ecbeed2bfedcac926a549d51d5266e6e8c37edd953dc73e283def2f06a2dc58ca4fc93b3d58eb763bca1343e73eaa4fb37d436e9e74215bc33b9cc0e75575d26afe853662f4b9f72f9ff70ded924c7f30f1cf2574de18bf45da5eecf3600ca9bcb69f7f7361ee6288a8fbfe9b5dee29f86aa67c9ea9ea3fce7e1cb8df31e79ffb64b39ef406da8c5d3e75f2cfef6cc8bc56f7e7bae3a0ec75f1ce46a3b9cf21f");
        deltaData[5] = SSTORE2.write(hex"b5986dcc1d4515c7efcecedeb7ddbb77dfdfee4b6d8c06134549ac1aa2984a0256d0884d31d4103e3516a246529b400531c534584b6c443f802110e4a57c30549346ab44d35a428c0a5113140925d28468203eb636851ac2fa9bd9bddbdb3ef5fa3c2a1f4eeeceff9c33333b73fee79cbdf7faadd63b5aad96513e79f0812e0fc29036e2200361583da42f8c7657181da4dbbd0f8789b22b9f3e72b8fce5cf1e9795932784e5623cc478703f466fd346bb3eec9707367fa4ad8dac588836d241ba480fe9c70f60bc566fe1f62f7eae32ec87c2b0110789901849c2479bbd1efad683d55e2d1f09100cda6a698f7db2f70e7befb8df6ff67aecaf27cbe78ebe5cedd566af2e4e01bf71f018461f12cae893ebd797afffe5f93ddaa8cd9bb7d59b731a6d47bdd49915da41751a9d5ebd1a7847adcc6e3aeca4db5127258c5e1be1b9c71cfd36efda41c0fbccdb07b32d041b9b6787678767077b071b076c0036001b800dc006ace782b9602e980be6820dc1866043b021d810cc03f3c03c300fcc67ec33f619fbe87df6108005600158804d001e289cb5437421ba105d882e4417a28bc023f0083c028fc02385e313a38bd1c5e8627431ba185d029e8027e009e39471ca38659c629762978165601958069681e56039580e9683e50ac33f67ad02bc002fc00bf002bc001f818fc047e023f011f848e1dcd3187c0c3e061f838fc1c70ae76ec7dce104dd04dd04dd04dd04dd04dd04dd147c0a3e059f824fc1a704fc54e9bc03aba5d12f56c39023181b84a82c830b4e96efbfead532da78aa7ce7b6d35fae4275c4ac2952206366cf109ebb632688908410cc11b0de58987d1f09983844d0f71304ff3efafe5848f821619fb0c16ce67086423a60b05138d83bd83be81c740374037403748314619d01b80bee82bbe02e3e2e3e2e7a371762886e886e886e08361c09e10d1130cf47d89b87cec3cfc3cfc3c6c3cf2b106c7dfc7d6c7d6c7c740163b82c03c6013e013e81c2f109b00fd187e843f421780816814560641711e113e113a18bf089d1c5e8c83a22068b79a798774ad863029eb0c7843d26e813f409fa047d8a3e25a7a43ec29c2973a69c538a2e03cfc033fc32fcb28810e7bc33ee2bc73fe739e7b9e0ae0aeeaf605c301ee13fe279c4f378f4e46aa2e6b7187f5c1beffdae5b1ef9d346af8a96b4325411d3e559474baedfcc50bbcfc073125cce1b14e0636cc760e34c8849febb6607375db9af7ce2b647fe6dc2e6787eff66ece019263d0e19da9a0c176e78ad5c7bf1ab9a14175df65a79f975ff3c50d12f46384c89a3ccaa0a6131a13a2b2b11a6056e71f056a1f3b9d98e6a22f1dcc934916437145637e23746929a54234d2cab4720f408845e8084488a640dc9649f20ea6303d92464939c908464b29f21f91cd986a25d134e423869a3b7d1db85269f9c239f74c09d4213cf9a239e9c239b7433d186646db7e07904c9ce904d0e997b9823e8209d05e9e41ce924a493104d423409d1e41cd1a48fef1cd164c03a10ac1d600bc9ac399249482643ec43e60ad1433839473809d164841eb2c9087d847e8e7412d249c826e7c826219b846c56829f265ca14927219d45d048482753ec52ec209d4cb14bb14b0b4d4099311f249490d0828412124a4828b39871c22f3e193e59de1053e6d8e7cc4b30ca9c582020654e2ce4d8e7d8e759435c59305f81be40af49ac083caa49acc84b5c8d23049f31e3098960422c4e88c30976d35098536276cafa537cd7108f6b18af61ae35d8acc99e25f02fd235e68f4f1ded579d0c05c84106888b0c111f0990108990d87dbe71dcb77fd36a1c8f3655edae7bf6d60d1715cd5215cd3dd31e753ab376e8cff54ab2dcbaebe672d386cbcb3b6ed9a19c3bb326d190be6859aa59a408d14b49faa756c73b86e3cdd898e58ecb2e29f7ddb9bdfcea5d3f2aaad442d654d50a9298aa2a410653552282df545587c037559521c84d55510866a12a08816baa0a41c09aaa32109ca6aa0004a1a9b23ec166ea34857d12fc6d796f59efd69041f5ba556b5bf596ddc1f19576adff6832e6330f7dbafcd2072eac8d5d7d0bc2694e1b63f7e46a12fc298cb718ead0b66db9aafcc6d7b6975b375fb16979f7ea569d6bd3b1f6e77a64bfe95645b787a0ebdac2ec0e74f76ad2bd8a5ef7acee55f47b55074bf76ad2bd0a1bbdcdd8394f773aeb4c9775a3aa13ed9edd81ce3a4e3a4c73d661ce7794ba8b54bf5d6126bd73bac85ed53dce7786cbbac041dd01f66061ff9c6e6f5187471c4cfd379a9b39f4f975e5bdd7ac6bee5ce8a85491a5a24adfb919b45aeb340f9e3e78b8fce96387cb27941c3cdc44160955984496496449224b1259821be1e42d9caf99af9ae18aaa661a369dc57fa8a09d60960f3ef8edefd4f9a00e5b0865402603221990c7803846d884b35bbf9628afde7e4379c9b59736ce6281b3a89c87c18c30afec7f6811613c0cafd7abfce4befde5539b2e4db531e169a8f054e1d8e3b9a73ea2b84efd41d5537c6032c684a3b0795f0719202e32443cc44702244422244692380d56f0499b05ab60e6b499f1851797ca175f3a71be0fcfb73433eed9f8d1f20fd77d6c5144bdb53e942a419e78784bf9d2decdc9b90952d40952d40952e804a99223d5a5498c2a29560951d40951d409519c49886f67c1585fd7376fbbdfd40ba95e96526964e905cdfb2d9d28cba5bfbf7ebef77b77b0ec9b68f1e7fa7b83e5e566a1c3fb70b85bd3ac668a4eb1e5b1f7ac5dc41893136ed981ae262d27d0d544b26d390c44cb47029ea340570919077595a05ad082ac92691737e7f4dc2ba739a7a5fa9c6cce69a0bfb3453c588fd1766db4f3c153e5af0f1eafeb1eafd92729a83f0774b9b6eb926dd765dbae4bb75d956f0f7b8f497dbb2ee5765dceedbaa4db75a1b1eb62837d32b882c5dfa5e34a65aa3a4b7566a59e36537340504b4ccabca086884eef4a9c6ed54eb373e7cc478bce5c9db73e6bced99c3b67539d731cfc3759ec13ab21e4a79ad0baf186cfae24b43636d9ea07dfdbba285b6d6ab6b163d723e5a19bae6fcabba8cbbbe0d44555deaf6eaefa577b7e5c9ebefb40d3e2183583ab15bc3a1b7b7552f5eac4ea55c915261b30d9a0c5a912ad57275bafced65ebd43afde25f649f099ffa5285d8bf38dfa3c7efef8eeb302d4787303f4d6607963b6f09f95afd43b3d2b38b3ff4b702e0ec89dcd4e7f78cfc32bd9e91d2ba93b5faf6715b31bebcc472fdf5d84fb2c7ad56db9bb71d8d052dfc7bb6fdf56eebce50be5cbcffea65c7ae19572e9f81bea4f50fbdcee76b69a595db5fe03c8e22cdac4951507772ee7cee2f7fa17");
        deltaData[6] = SSTORE2.write(hex"c5986da81c5719c7e79c7d666777dedf6777efbdb91414f443c58069a1588b45d2aafd525b115a4229941a6d28696d4a139446d4a21625b401b5bed5a69a56f321b6946291946ac0b78afa45447c8382894de88d36d858a4c7df99d9bbc96d924bb6227e78987b779fe73f67ce39ffdf7976be9e3bceb5e2387d63e2d8ecde7fb13177d6e659adcdbf4efec398132f45ca71b43388898448898cc8b5338cb41ac65a0f13222532dd1be64441944445d4daf10322d4ca27df27df27df27d727d727d727d727d727371810be5641a025a026203f48b41ba01f50135013501350135013501352130eb50a7daed485d485d485d485d485d485d485d485d485d485d4452ed1273c028d684870ef088d28d4fd88f146e844e844e844e844e844e844e844e844e8c4e8c4e8c4e8c4e8c4e8c4be96188d188d188d188d188d188d188d188db8240f8db82646da49d049d049d049d049d049d049d049d049d04998bb048d048d048d048d8431248d7652ea53ea53ea53ea53ea539e27a536a536650c296348a94fa94fa94f4bbeab889a402343234323432343234323630c19739aa191a191a191a191a191a1913186ac22184786468e468e468e468e468e468e468e468e468e468e468e468e468e46ce3872c691338e1c8d028d028d028d028d028d826729589b82f92878a602ad02ad02ad02ad02ad02ad82f1148ca7603c055a255a255a255a255a257ba544ab44ab44ab44ab44ab647f976895689568956895ac73c9fa94ac4f854e854e854e854ec5982a742a742a742a742a742a742a742a742a742a742a742ad6ba624c353a353a353a353a35e3a9d1a9999f1a8d1a8d1a8d1a8d1a8d1a8d1a8d1a8d1a8d9a396aa86da86da86da86d0282da86da863dd250db50db50db50db50db50db503be2de236a47f865c43d473191e8de2825a8195133a266c49a8c19eb18ff8ec91ba33f8603e3846b4a6484cd618e2711c17713c63d811193ec1b80e5ad8ee328f3e0437b06fca1954b819b1385567d44fa8878087b087bf1c3b382e71e78b42b109e4a4810125c9ed4e549fb039289c1e091b3ef20280a77117b171ecbb57789ba3b0ca203145cd4161cfbe22dfdb6001e3930c681170e7bc061fd98ffef93b864bf3747b7df685ebeffe3d226b3d9ed82681644d7c59324bdb94dbaef8acc3c75c3959da25b69b682d61e3120a0a0f6aba7668a2f1e7bd5acfcfdb54ed1620d1c286b872a3f74cef159065a9ed93daabaf1fd98c43ff61cc733f95b4e9ab7bdf794b9e8b257cca5d7be62366e3e65f6dcfcb8b9eaa65757ba19c154c2a24b438cbab9774baded305d36b6cbe7ee989830532c7c9f05ed2f3063fced91ef2d6a1914da1d945c2b02ad01b90372068bda05fc02f805f00be017c02f3cb2007e1936041a43f287e8007ef1c907fe02fcfbc0df03fe02fc5de02f3ef9fe88603c3e353e35c0df63965ce0df07fc1ee017c02f805f02f203f203f203f203f281be007d17e8f701be007c01f802f025243f2437243764ec805d00bb0bd805a80b5017a02e405d227223b401b7006e17700bd0f680b607b025e67ba0edc56362c2df0b809adc845c002dc0d903ce1e7016e02c095ac99820375900c4e4026301c6028c05180b0096949c949c143d602bc0d605b6c2de13402b805600ad005ac9d004a6c2ee7181a9005201a4024805900a20959c31e68c314733e7be005300a60b3005580ab0146029c05280a51468168ca120bf600c405180a20b14fb00d1038852920f14a5241f304a497e497e493ef013e0e702bf3ee0f3009f003e17f049453e6013c026f848f0511fb0096013c026804dea866d8966cd3ad5ac53cd9a023417a0094013802600cd056802d004a049836e434d434d434d430d4013802600cd056802d004a0c988b18ca8195133a26644cd889a1135404d809a8cc91f730fe02663ee31261fc8c998bd3c26774cee04bd09df4ff87e8227267c3ec1139345ad168845fcb3087417a959e4ff2598b184e796f0db12791b00ec06bcb981fb6fa07619df2df3ff325acbe42c8f0ecff8d242e88a4d532200218ca0d9dc9a05d14cb2aa8b9f939cb5e8f8cd5db7ebd544be78de42920fc4fcf217379867be79d05cbfe5b8d9fbf0659f6993a094f26a4835247c68352086f46d9cd7f47532b5b7c2de0a7b2becadb0b7c2dedaf708f2fde1d4dae461ebf6c6585a61691d90434f676d2c5858d1bf2946afb0b1b2166eedcae7f4678a2752d855615765eddada93efe8b914f654d853614f65edd9da92ef2c3cb1a5c2960a5baa2468fba4ce8a7c4f9fa4b0a2c28a2a61a95adbf1399653584e9dd1ff7476e33bfa1a8b7a65edd6da8bcf720b693e3ba34f91d64a7c47dfa1b092c24aca5aa9b50c9fd343285648611965edd25a83cfe909945d35aca1b086c21addf91fccceffce26e46211169120178ba8f6ec8f5b4bc8d4120a4b28eca0b0836acf777ba647b3735d6103850d143650d840d9731d0bd8b3bc3bc7f3e9394efdb8fef5eca4fad5e11f999f1dfaa1ac9eacfaf489fa279276b449bb36bfcb3c7d70e7a4db7221bb2162c503c276e05c6d274e47ad6d271d73b5dd30aba46d379b924f77aa33feb7dd65ced576887479da76777468da76667458da76567448ba8efecccddfcdfd7ae6c9bbb79903b76d35db6fbd3b7cbd39da36ddb6d9b64db66daa6d338b35a67901a14fb4427bbe1a9bc3bfbfce9817debed00af59bee04f7b0e280bf07d87830a657e0778ffd2d617b78f696c35e716c0f6bfbc5cab605cc67db7b7193910d8e5a50b33ac77a32d67a11dd453e030d7a697c84410c1d6b5d7b63272c8ecf7cfffc4ddbcd4f3fbb7f3ddfbf344bdeb7fb16b3f78e6bd6b40dede49f6e1b4e92bcb185c49e43fbfcae01293adf597f591f59afd8bd6ff7baddd376ff56859915fe6ecb9be62954c56a8b76c7473f3c6d02d99d6ed4b5677ddbcfb1eb3dafebe9bca150306e0bb65ebd69da23ad697fc299e24f7ef0c88528a6c505745e79b1baa52c6b1fbaee9de69a4b96dec896aa8ad5166ed77da7176e365bddacd8c4856215d8ecbb0ed896b14d7ef14ce1f39ffa58ff9c6d70d7fe6e9c4ed5ac49edbdae49dd54acee0d5c6cddbc460db6e268b0dfa95d52ccd97d5f3a1d67cfac1c7bcd1c39fa6f73f46f6be7b6d7cdede5b3077af9e0a3eb4dc99533c5237f3d6e564eac98232f1e9f2a5a70300c00d1aba2f7cc1eec997b3e697efbed0fad710816a2979fadc8e6e2ecdf21eb6e98ab8a392c757531c78f80f7cd93fcfe62d5738f1dfce03c9efb00853bdb69b46c7eec0b3bcc57eedd32e533fb82135ab76f53ec9e4edbb722ba7dbbc1b57d43c1952656236edf14684e4addfee2e7fff6573bd7f617b7ddf769fb2b59b7bf7667fbeefad30b7e46d3a2ce589ae982df589c798afce189ade71da5fe2f47a9cf1ee5cd33d23c77cf4764cdb6ec4677eb3cabb5f5fff928b79dc3bbebfe10de36db5b9c9cfe1aca724cdb1756b689b22f7cec0b1bfba2654adf3bcf81b773fe42dd4162d426eebc7d9bea5acd7067f106cf9f5df390ecde354bf1cf679f9e2d85fadf2fc5fdc59cef24f69c7d9eadcfdd0729b0bdbbb48f77e289efd847342b5ffadce26a0b665fb46a96a5d7be44e5dabe14e54a1bd6637d7bb4613dd6b8471bd6639d7bb4613ddab01e6d588f35ef59cab2ee3ddab01e6bdf6b5f94716d5f7471a50debd1a8ea3ade3b3d5cdbc3ca3dcf61f5e5e2025f6b7c6ddec9fb160597b74b4d81f9cbf153e105bc67eab600e793eecea77db3cd05aecc5d0f7cfabc43e481f7cf0385efce92df7160b75daaf53ab9efcda37c60de99fa0f");
        deltaData[7] = SSTORE2.write(hex"cd987ba85d471587cf9ed9fbbcf6e3ecb31fe771cfb9b71694526da5010505934284685191224568a8205831486b62724543a541632806424d22d688a86d1241b02f68b5d11a12e22350ac115b82f8c06a6242d59be4e20b4bc66f66cfd9f7dc07871e68217f0c6b66ed35336bd6acf55bb3f6a369a57263a55291eac2d6cd6af7ed9bd5af0e1facc2104e3312c2a7059190192d8f84d3897ec8843edf1d75eea2728da01f0b274a849340f3e41802b39a6f565cdc7b5f21d466a54e400b69d129843e60b6557fbe459dfaed87d483df885a5ab0e227a21224c58a2dfa6d5a423f4bf4ea4c8e85ecc6427453217aba6542f6135a76864543a3da2fb7cd3b76d717607edeecc40e6627761c988fd5ae10b59cd6154e9d7ebd07ed971a483490631a4834905603678506a2c71a68e1f4e9cff48518b2ee10deb027c46cff4594b8dbd14a6cbffb76b577f7bcfac49defbba350a2416bd27c1a16aeb68453abd3e0d7e0d7025a486ba35c8d5647d1068d6f755fc83adf1a55211b35211acc6b568568d26f22d7648d2672be27a40fdfe7bbcf38801f79b42a8d3523f82dc62dc63134d6147e0cbf4dbf0d4de027f413f829fd947ec6ba99a6f0727839fd9c7e877e47d3ba901df6ea32eef2ad0bafcbb847bfcf7967a033f006bab1c7806f03f41b70a621bc6143c821e359becdf26d56f7b1cf1cfd39fa73ac31877de6909fc376735ccc5cfb1cc67e9371c0c55bdfae161f3f5cbab3833b3bb8b3833b3bb976c8e83cc2379b9bb9f2f41dead8b71e577ff8cac6f79809b88653eb94d6d6d6150dfa0d766ea42bacccd537e1f9356b659cd4e7c6fc940dd138601c300e18878c43340de947f423680bda82c62d216364636463d68ce1b5f9d68626d0049a4253e6a7f433fa19f219f219e39c71ce38679c33ee30d6eeda61dc61bd0ebc6ecbb8afecc2ebc2c38d9d1e323dc63dc63d3dce689cbfd7b16e9d1ad776faf0fa9d8b18ed7a13685ffee2f6c2ba2e57e172152e57e1350a17aed7ff565ec59e5bdbeaa93b3716c21ec151cd8be0abd31ab466fe770b458e7af2d0d17a21884a1edb7b691118d5782c20a2cb4c3822f4dd9d7ee2a03a3bbf55eddabdf3c8eaa86242355c8a2ebd489585abc98a48f3c717a7e9488c8bc8ab69d9b48c401d794e1d591b7d0ed1e734e0350213813aea8471383c9fc8737c3cd90f68da01e105f002e6044448005f3b65083f841fc20fe187f0c36855a4ca087e142d456c0b7e0b7e0b7e2b5a23823d1bc53513c9b28d1c68bc2ca213f809fc245a8aee54473afc147e1a99687746d19ec1cf02931796457e0e3f0f6caed028502d9180605b8104e8d6f30a34e831eee93177d187d7d70801af0fafaf79cd25b4988137036f46f3348a60f341750d14e1db2028d064c0de03ee73c07d0eb8cf416211a66e50c6d12833447e88fc50a30ff243e487c80fdb2b1008b959e466c3028d66db1310a93542a52ba5779fd87fb8f06e970f2e935dede1087badc251b503d6c3ff5d0b89eb9535b23d478cd03081e6e15504d61981ad1fff4cb310482dcea516db528b5fa9c52c8d53a92a93f5f11f3d54246bbf56c9a6c00b998db67ee8e9374cb3b5c7c413cb2cfbcd3fcddf34c9b2127c9706d35362556339140c976c2423289bc916940d35764bb05bb619b3b9e45924514082d91225a4c16ba8c1e9b478d080cf52e3f374b7d3c84638fce2910fdb2c972e59a138ad06fd6c1abbf64ae1333bee553bf6ef2e5716ac2c5859b0b22856be211bbdf69e3f75529dfec98fdd916b8b25977ef334dbbfa5bcd6b377bdd15eab4ddb060d35f245e63de918b42ad3f94d4cfc0ef255f5fc3327d54f1fa341776edaa02e3f72405d3874e0fa62571ea15e68d413a40859236593060469c06d06c26b86c2c3c73d36ad065036f642289b7b111405bc161425bc18f918f9366314f288090fa5bc148a625e0645392f8702891e0f60af13de62af4daa8597afaabf5e78455db878b50c2e417049161279b82e1b61c6cf9f79f8d560c6dbb25520333985ae2f6fe6d29347d58e77bc75d5d35fa0bf289efe1bb36b0091de5d1ef1c0a107eb6bbe3d3c9df8eba337c8a66927bcb774c07537af9f06576e63e23633f1677b76ce1486d4ef81b0004de3c5bef564df7ab36f3dda2fbc1a8772702807872a3cdcb75eee5b4ff7adb7fbe601ebe0504e27dc6c6fd151dffdf662ad78bc8e1e2c18b8de1e4f7c77213c6fae1cd453a7fef5f02a4dc56ba4a9b09a8a254d3ff26a11eba3a5e089cf6e9924b8e55a70ca4f591f13fa41acbe70dfbdb595c15aa2217127eae1a799b0c568ad4b8e4f5e775edd78ffae8e9944b9e1e8e24e1773941b8e2e3728359ca62e2ba0941782524270021142436804e53422817212914253286581d0a7eae7dbd9f01ed6774b33bdbc70452d5c5ae84ccc7be43c579b891ce6e653e7a72f95e872fee0036adf076fab8e9ba5e2c5343404922ab5788f3589a39edbb0a157fe5830371edbf01b554db10dc3d8564db65a22e3166119dbd01c5549b1f598d87a8da9861e60c3f5463b6b9260dc14faf8234f9870c4bd6b40f44474d99fadaa722663fac1d2888fecfa983ab8edfdcba261948e6d347ccd5eb3a32a279fed1782af3bfc7c7d9af47e1461c714dcbf79e2b8facfaf4f2bb5e386771598959a224a345a341cad816f34e937dbb67822747cc614d632a04f616d2281825a47822e8c0405b58e065d141505117214d7a2d5b68511d99e225b6897a1302a8a216428b2459b3512fa14da269228b47524e942475068eb682a8a1b6428b4852eb2cb22471738f0b46bd9224750680b1330eda28831458b3fc2e1ef4f63b547cb67d61f5f5a502f9dbf52fe7913f6cf9bc8931f942beedb778ffefb36e9e1762c1bfff1b7dcb58aec2fed8f3f9bfd8f4f78b5146ac8428d93a5ae97eedfa416b7bdd35df6a6c8cc6abf98e6f4cfd9151df5bdcf6df7d67cd6d4a233a57effb8f84fb570f9aa3a77eedf6be9f7824dd3cb3246ef35c91893e1f06c36e50f8edf31e1abc87923238d6b7cddb8c1a4d5dcad758de124dabb682f358a15462c4fe1710a6fec141ea7f038856bffacba00bcdbd3adfcb32a5c4ee3721a97d3484ee3cef67fbfc6bb6a2290fda57c1efdf7d9a7eca3a35dfc3a7b7d81feff");
        deltaData[8] = SSTORE2.write(hex"cd986da81c5719c777ce99dd9ddd9d979d999dd99dddbd37f5832d1515450afdd01712688548a5b65caaa92d82a6c6e24bb42f9248b51f928ad662daaa605f2c448c0a2db695345c7c295eaa458d2de20bc542100bb6a526b74d152ad41c7fe79cd9b99b7b6f6ef6821ffcf07066cef9cf99679e97fff39c79b157abed746a35a96edaf90175e7be5bd4ae1def5ba8d56ac269b49036d2414224124ed343986f32dff491008985e335114f08af85b0e67584f4586b35846c358568f15cbb21449beb36b8367bb4c175ea427698efb0dee1de673eac230d843d43e623ee23eebb8c5d3d32df653ee63a664c984fb84e984fb94eb9eeb16f4f8fcc65cc655c675ce75ce77af484cc79579ffb3e6b7de6fadc0fb82ef8de21e390b99116de31626d847e23be69ccdcb825e498fb39d6e6589bd3d7d8679eeb79aee7d9631efbcc839fc776f35d247e0963dfa26dabf65e7e89faca6db70d8da1db3106493042174985f0197dc68031600c1943c6883162ec82ef828fb98fb94f1813c6943165ec31f61833c68c31079f272779f99e9af6b47ef9afbe70993a78c3656b1490a502b25440960a48149028205729204b0564a9802c1590a502724581d751e07cdee7a813575de99917d7099d7a82a436bc1adda9b00adfe4813963ae175efea77afed82bae79489b29e421fdd959f29f6ad77bef3b607775d9c5656757ef8cf1eb7ae7c0eeea05a778e0ad6657efbc7f29ff81d71bd606a8c0b73b7cb783ee8ed13b8d320b76d4e3f71d6a9ea6f35a7dd36cad2ac4810bc005502736ea3a9f3c9b479eb7259ba872c7a5b13abc639b55a59e09d1409a8887b49076762ee03f49edbf2bb76e55b7efdbabbe7ce3e75f5b9ba9befdd849c66a151ba8dc4856656f675a75446777f7b46cd659ec78be361a02c603e381f16293d90e99edb4c0b4c0b474b683694526d34d76b7596bb3d666ad1d9a6c77c876a7d3b2d9de61bdc37a2720f662137b8e0fc607e3b3b7ef5946f0353380f5c1fa60fdd8c4a713800dc0066003b001d8006c0036001b800d6213c36b5825d44c0336041b820dc186b189f38a7122b0916620b011d8086c0436021bc52617d6b052176c176c176c176c976f8feb255b352d63c56062303198184ccc7e716c72e934364b34bb814dc0261df22c367956b15caa190f4c0a260593b25fca7e29fba5b1c945cd84ce84097b607b607b607b607b607b607bb1c9d7d39832039b81cdc0666033b019d82c36396d99b451b1a9a3d934079b83cdc1e6c12a76f52cc3f6c1f4c1f4c1f4c10cea967507600660069a85c10cc00cc00cc014600acdcc600a300598a26d99ba0053042b8c3d647dc8fa90f5a16672d687ac8f1aebb039eb23dfb2fa88f81c11bb23e27b14972cef19a67734d38fc18ec18e7505003b063b063b8e5755017073e0e6025b11e6e20daa4234a90ce755d4f1f4e2c1921b01d603cb6093e46e362749fc761ed843dd76d51f1f7b529d7c62412ddf7bad3a76f7b60f99879ba9a58f666eb3962c15add464a3667a09db69b677abac63dd8f0cf3bb657689209a2a419129413623c04691294536fa9b55b48b6e24dc2e7b4c2a44372da3df46ba882353b29c84484aa2b26c4553a52b32d5c32d23526491a922ee9aa8a387c859cbbb93ea423d4fab88137dd6fa3cd767ad8f1efdb48a2631e09901f303e607bc63d043b0d5202f230b4cc15ac15ac15ac15a919751d5b1d1314ade51798cca304b357b4f45f62fedbe563df6dd5d55ddb1453f2d8bb6fecaf402c0fb4db13e707fa89efacbd5ea078f2ecc59b2ef97aeede35aaebd016361dca8dda6c9ce16ebd4108a260c4d04da9cb618a315a6d12659f97cf6e2931dfdb9c3428831fb8f991b0f84982b2e5cfba91b97d88b78e002f3a97f7de801f5dc33c7dab670dbf26a032ab5bd8c691f52e3fcb2ec5ecac35b6b3ab2afbae1c3eac89123eae8d1a36a6969a96336f16cbd11a6b6047cb62f5c3c2b0c1768ae886cce8f3adbd8289e9463613da47329786f36e92b9effc7bfd5f2abcb655f415c53050cd366c11580de629e7ef5f143676c1170d5fb01bedbe8fbece292fac98f96d42fb52c2e35279612584a6229c9eb5d2ce56229d10caee6c16f83a94faa7fe56bf5c2bbce99ee0464e973b7d9371d81c4ef2e7e97f8bdec0e44ad93889a9f883aad513de23a4612ae7b48960817bf4b93122906d3d243fa42e27789df5dfceee27717bf4bfceece15d7a0e015260851c828868291566cf23247f761532f737899c3cb44f9b2e9202b5ff4c1d25c8e9adfbebd8c0bbce2230112221112230992223d240bafafdc7978cffdd69db617f95895587beff8bebaf9c27796de0acdce829d85dd016f85bb36d3727d6233e0cf6c06bc1bf0dd26682ebee462b5b0b0a0cebdfe3a956ddfbe653abd6af52e0255c124359a33a9a9bb6cd265d9a4cbb249976593ee964dba84822514ec964dba2c9b745936e9b26cd265d9a44b6854e6c9e7327b4aa89b53c2c9433b8d518fdff911f5f7033b06d6b03afbc83c0c2cc819d71899511b9ace4be046811b056eac9b9aa0bb1bee71a7a04311a97608789c22e82c5c1c23e818041d83ccc39baae45c7e79592dbf766abde4bcb5023dfbd492faf5cf7fea56b9b6c2467b37e3902f56e9bec2cce14a68ae04d0be8a0c3f7be3c767e1fdfd993df4c9e9f42e36a2f2497649b24b4e659724bb64966c86babf5625cdef6ffeb4a83e2b0fbfbe19e3dc531a4768536b93d72dd87eb38e4ec1f78a66f8ad59fcf260053a71fc0d75fc9537d6f3f0a18a263ef5c8eecdd0c40fab07fd7b1e3cadee38e618a09b18dd94e82644b7d215973fbc198b3c0278d1d54e3dff4bb7abdffd7687fadbd1cbdfe6cc7a18fb1f1cc48447ce7a3dab94979ff140265b18bf0587b412ab7c2b5ff78026daec39f911403d91edfc2c07b6c8b490b31dd8a2eaafc62c873639d57ace76708baabf24b31ddea2ea6fca2c0738495b2b686bc59ab6f66c87baa8fa4bb3d1c1ce49fca996d8fecd99e59027a75ae7d90e7ab6bd9eeda0675bef590e7aab5b71911367793ed30150b7eab6555869d5659fb8eeb3473f9fe98028069169ebe5aa965e9a967e86c36341092ad0a188abd65f9ad63f3ffbc172483e0e79ff90f70e3509a3f730ff7f3f701e86c032c3760f7fe721dd34d9e2604f214f540cfde28953533fde56189a083952f1e575fbf7abaffee2a38d0d5a972757aafa4945cbfde67a9cbf5451f745dff8e66638ff373c789729b1934e7af1ae9f6d39137dcb09c39da59392ab3a29b9b94eea99aaa3f8f3f7aed9e800f1870af8e35b3fb951ebf15cf533f2e9c58367fb19f95f");
        deltaData[9] = SSTORE2.write(hex"95987fa81d4715c7776667677fddddbbbff7defb5ea0fe2158b156c5d42a9242aa05b1222aa5345a50b0b5d5441a9b14098604da0a0d62d39afa47b5282dadfe238d11c5b46af191a022528452b0d68a55624aac8158a94ac9fa99d9bdf73e8d79260f86b777e69c33bfcef99eef993fd58ef356c77144b7e33bb7457c4811a7528c68092da58d6939ada095b48a56a727507cbd91ef3e7fedb7bb3b6fdbaead7254628036a255b4ba94b2294f223cb5b31cb8f3766505bd420a3d96c21fd1929711781dfd6e77fad4d9eecf275feb4ebe74b6178c6329d344ba05ffebe4ef8bf53ef18dc3fd7a83901649110634be43be239fc6ef88df31df71f0ea42f1dd871e18363aac33a1a5b4312da715b472b1fe7f2c96f6f4d1b5eec9c7d7bae38faff54b5399942a97ae2aa4eba5ff42f0523bc3ce4f7f2a980b08040402c2e3d83c36ac13b361969cbcb638c247f67fb23bb4f3daff3842c9d2e47084a229cf227cd96219c7cd328eaef9fd518ea4f4125a2aa58ea4ebfb52fa012d741ac7d96d951e79eae1ee89678e76d7dcb173dacf8202476b6e5b8e627be33289edadcb34b6372fc7b1bd7d993141867c1e5b4f905c85f10659c6d62364155baf90756c3c43ba0d77da24a2996feff8be6f75bbae7cf3b0bd749874e14a08a712e15c9a956efbc4735df18657ba777ce8d5fd1b1da2d42bf620a5dfd266b45573a85206131abf835529c3298def7055ba9cab1b211bf13be2779cd1b83dceda8de98fe91b8d69f473f6eea8a23534c6468c258c258ce12e6ed2d2b09dd09fd29fd28f0bb9293a293a29e3e954ba63c6c68ce15aee98bef18a7433fa32fa32e6cef09c8cb10cbd0cbd0c990cbd6c464336473647364716d77473c60bfa0afa7053b740af40af30fde815e815e895c894c8e0c66ec958495f455f451f3ee556e855e8558c55e8d58cd58ce16b6e4d5fcdde6af6d6d0dfd0df307fc35a1bc61bc61bc61bc65bc65bc65bc65b6cb6d86c39af96b109fd13fa27e84dd09b54524e38fb09f732457fcaf794ef5943e3ce66fc9ef17b05fd15be57f85e5d49165ef4c5abf2eefbdbb6f65ee4d53800cda705b49016d5b3a60f41b7fbdb559b8dcb75bfdbbe651155725d5449b3d3a65c45e1c78cabeee0d7d2eed8731fe9f65cb3a57bfec82d6fb44abaed67c0c544d05ad71201c715e552458554b890c2a8c265148615eea1700f853b28dc4171f58aab575cb5e2aa1557a9b846c5f529ae4f71458a2b525c8b62518a2b501631f9cf912b8e5c70bc72c2fc53bea71ce18ca35b654dabf4ad726c9ba697b0894d16787e76f461af3f1ee20428104081000a841f5e8ad00df61c879d961bedd0acc0cedcb29a8969d5ff5bc59b98e09daee378dde77e28bbc37fc83bf377f38eaddd5777affdbc476a561510bd01c603223a2898b0914e085e84446e082c84631a1387398dc9c286bb8ba513814106b3800f19211321c33570e9c04964b1cc894734836bc8c4ccc3f548225cc6cc1323370ab9ff483ae09d331a11d909ff4db6436e84dca8e8fd63846c826c822c98e826c826c89a8cc815cb04d90459ae5a26c8a6c8a6c8829b6eca1a48578ec99cb8814c914d91c51d64cae18e911d47165b9d31b263d66b322cae22c7c88e911d6373ccbe410c3146274327432743678ec5193aa088c4b564867c8e4c1e598c7672ece606af4de64606f490396799631304710a8fa6c170740ad65db0bf82359b0c8f6bca02f98275e0a2b2a8a5532adcd4a369bef1a812bd123df0df2dd12dd1357900779625ba25bab8b52c5957c99c20902827d2a9b05361a7c24ee5d3f0cc0a5b15b6c8216ec5ba4d1e211c64859daae863b542b746b746b746b7f6a557a35ba35b4736ef3835fbad4d0e42af46af66dd0d3a0d3a0d3a0df335e834e834e834d089061d528f24d464837c8b7c8b7c8b7ccb3e5b645b645b645b645b64413ad9223be10c279ce184f109f34fb8970932136426f827c827a6f44fe99fd23fa57f4aff94bd4d199b4101669cf70c3f9d110fb3fc3202684af8faddd5c7bfd45d7ec5e6aefbe35bba3dcfeeeedebf7fadfbe72b67ba2e4db7081bde4c4a1a74348bd46c4a8736dca566329b1a0d1330e44a9bd027bad900444bda74c9980f6c13f54ee01184c8041c4e10581a250364036449a50e01eb10b00e01eb10b00e01ab4009112a8216dd10ddd0b7944b86e811c88a20f608628f20f608624510bb21d81656b49a46c0472e41ad681c62a41774cd81ae69025d13e88a40f708749f40f7e6781b61838077236cc4d888b1116323d6739ac777488ba406103480a001040d207800820f207800828a8b1eb763ec010c2ac6de085b23f634e2f247d81a05603a76000b1fb0f0010b0d587850041fc0f0000c0560a8812a28404359ba80b326d84ab095602bc156822dc04403263e60e203261a30f1a0143e80e201280a40b1b923c116a0a212d6946223c5468a8d94bd01340aa0d1008d0fd0f8008d0668bc818278808d026c6cee818aa8143bd01105f038636c8d39a731773dc61640a400220d1069804803441a20f206cae201460a30b2f96b5c218fbf004a0ea0e4004a4e86ad8c7565d802a05c004a01501a80d2009402a03ca88e0f4879f3fc07cd51809582ea3839ebc8d105b814c0a5012e0d7069804b035c1ed4c707bc3cc04be5459f3773d691b38edce81b20431700d310521f10f301310d887950241f20f300320590d95c0b55528099822e1910734ae606c81440a601321f20f301320d9079037df200330598d91c5d327769c0d0e833b70534f60d7869c0cb07bcfc0a7d00cc1ba89607882940cce6762897aa981fdaa52ca0b10640cc01c41420a601315db37f804c03641e94cc870f78009a02d00c2f503536003655e36735360033059839809986746b004d01681eb4cd27837b038730b44d35e80272aa692cb8392d7303700a8053009c6ed107e41420e741eb3cb2bf07d8a996b9a1760ad053d03b07c053009e06f03480a7003c05e029004f59aac7194d5913e0a7013f0df829c0cf05fc14e0e7027e0a16a1a6a57466c4ea0cd0070c1d80d001089d15706405b915e68459b8ab53a936b1df4dede503cf91ddd3c7d6ba5ffce447cb2a6c5917bcad9957615f79f06030af8f04f5d18214e9783d317afb8260fe7ad767bb67eefee079f92255d8e68575a8d6603def8b59afec0b5a9dcd8b5a5a7a45739145e1954d5f6e8aee2f871f3d6f4dcd52de652a262bf8c0973f2cad60bfa92d0b0b14dbbd05c58e156b52e614c27ee741f01e93704c3ee9cefce0baee85fbb65edd5b216bfb646d80dc54897dc1160fef021cdf502d0a004d0c15a30094fab782a87f2f18d88aa91c0560200c5b21c8fb778468784be0ff50410a82480c55a42018c450490a9c5be0dca2af286da12870586133327d38acc061050e29704881438a89f9cd99527f089385714a018515505881738a097bc329054e29704a81530a93912db52d2dbd1553e4a6cdf51cd007d673e6ec8238f3c63c791b46af5b6fb4b85822be81f18f2edcedc8838f5d887f7e0c855b6dc5640a9f338fddd49d38685668dcceb06bc39cb32112b23e1a2c032e7b466bea5acb4091cbcb9e315a16580e2cce444e66a3a76759c5c731bed34e38afb86039938d8ec0215b3b645a97cce692911cb28103aabb20ab6ba8de859dfb4d0bf4f8fd8ba7bb174f9c199e9732cbcf2defad8b9b11fa8d0d8967befb54f7ab5f6ebbbd0f89725899098b78285498195e23e135b6fa84d72c0b14c60c8044a62a6d6c71d21725457f94f00e09e730c5c8b2e8a86ce121e110cbe2a2b20586840b2c8b08fad2c6e671534498e2a12f1acc75547df190793637f721d8170bf68a3264c8c1a660909929063c5b309842c11408f60ac9b14bf25fd90240923397a4beb2c47e49cef94d4e3324bc27e0457fdde42a43c225b94a40c205245c40c0cf25dfe6068d7b5496844bf29380840b48f8927423430e32c45b92839644bb58579d9ab00e07a24dbff102c2584ee927cf881910b152dcba00c7efddb17d2378fdccb948ffdf28ea453dfbeed1f40bc35b9bb49174cfdebdb30b8ba26c88a4acbfc24534654344651712557b17dbda75ff5d1b6d6b1f82372e56f9fc915baaffb9caf9cace59d5b92b12eb57d4afe6ae45a8fd74c7e6eea11b36abf9cb9f8d82fec5ef1e8412bbe41307f6082b304a0f2c92f143efcbbb276f7cef46af3df72e849f7df47a53206d94b90f5e6c22be1f85fb2c500d0f4fdddd7f3d76c9f996639e845c1bf6f5f0b2582e5f12e7af86f357c2f98be0fc05d0bef095cb57bdf9cbddfcb56efe32d7bfc21d6ae60fd2a74e9fe97efbc2a9eef44b2f9f036620e3d711aced96efddf74dd70ab4c53c27fe1b");
        deltaData[10] = SSTORE2.write(hex"c5987b885d471dc7f7cc9c73dff7ee79dc7bcebdd9dd40c10aa558aa127c2056058b56048b6e7d6015a460a3a435daa02e2ce94322151afa888a29a56a928affe8b65661134a48300a1a6d2da2363ed0146b31368f06a5a8307ee67166ef6eb287bd56db3f7eccecb9bf99f9cdf7fbfdfd6666bf914f4dbd7a6a6a2a506fdaf3e5161d11b4331174b02ed6c3a6b1044bb10ceb63836c89815bf00fd5e3cb47d5a1ef1e55c7b42d1f6d9849c258883011324c858c7a228ca64558eb0a51ef0ad9e83ecae0edda4fbdf223d7abc135d78ccca056caeab18b207651c42e92d84423a6631b519c60a91049eca28b5d84b18b327691c63a5a11e4f8e7e90f58f855ac254dd42ee2ba593cea08111121d18a5a4bc87a9d681b58f32083ba06a385abdf1cd8489343fee3cfb7efb01f93ec301f2f331f1fd9fb9007220088002002a60e0022008800208246f718032e31038edcbbbf66e3c039c2b9a61d63eb58effdc4cffce3e56f6e64e69f3260de407cf7fd3df5c313ef4dcda05ac18e06588113fdc69076248202be0ae01d6aeb63fc3e62e211fd4d2321661933cbb7d9a11073a32799fc5233f9aeab12f5fd0fbdcd858e536d601768604dac3538e9f778fca39fb28e2dc26d631dac8f0db0bcf78c9ff5d4ee1bd489c58f3967424211023508181586cdec59ef3cff953d6a7e7ebe360eca54146309e1d0d6e35393c47bb602b9d5a8893c9e14b9f32f97f2c3e20201a1f800c51bf1a0f8a0d6463c75ac81352306ec3091debeff1feaf8f2b94d365206b5489376db51d8b6347669bbb43dda1eed34ed346d8c7fcc22097f27fc9dd2a6b4196da6e96f3b09b49d0cf0cfbbb5a224ecfc555bd4c2ae6f7929f8f264cb101c64cd6202765b38df692ac097eef88c4e68b5f0e09ecd7680cbba7ac724916851bf2046428c64550931929525c448889110232146428c84180931126224c448889110232146428c8418093192a825c44822971023f3b44d40495933840d4413d2edf2c3c8d686cf6d0d57e58dcd970c876dc661f9aec736aca3608d8e82c974947bb08f6cdba2ae7d6baf2a4947387f703c95b2aa22f45fa4d38c5735f5b3b1aa7e46d9580ded9475f4155ed59afa1fed5a70aaa654809d003bbb8dd86e05ec04d809b0132e0705d809b0132e0705d809b0136027c04e641a82d8c1101b2804d8893cbdb4282be1df960e5455c2cbbd23f25f57fa007c4561cb892c0156eae92b8755204fb55331d541a53d6c9a7e82a5f4fbd8205d21a11af8d778719246e145d2e7b5385cbb36b278bd4aaa23d9e0caaf731347a63430a999fc5707deaf17eaadc54a30718997648130cf44c422128dc9a1b6be88582c1af5df529427fae2e2a23dd13735dfe59960852acade8de3d6b5fbcd5f1413d5385ce71810ea17b7dca46e79fd15d22762c768e3c33e37eedb7bb7bb32506443e80975d56f62baea376cc56f34b64e5247b7e1fc3573ff2bf7ab2960cf9754ed59129edeb7aea766ef841ab2ff706cffa1de3f948583d4d449ad0b096d1396869b0970aecca1689d1cfaacdf32678c3abef3264fb1806201c5028a85a5786155edb87371f1a5ac1db715175e2d2bd9bc631236bf58bc4cd7927b2e22d2ca7bed7d0cb8cba4ff03ef4cd4a1ebdf3e9e6f73e35b944e8361bd305b95e8304487521f3576db3e072334188d6930428311fa0bb5f6d05d88d6245a93682d446b215a0bd19a446be1dce8ab17eea2fa72b5d797cfb38f3c14ae7a7659617edda957a83f3ffb77f5db3f9c724e6db4d435b72831e81e58392696f6571d13df768e529d7eee9c3a7de60575e6f97fbb19b53a5373591183f43b6e23429fa7eaf4eef7d5d79ea9c29da9fa2527eabd25afb2b33baf56e7b7bfa1ea3af03d178628df8bd1f8ec6265f647fdc61ede7763d5c60efacbd3a9a77e662f4f16e0c73c23db3ff1f18d5c0c8e4d922e4f4ee2fc6b8fa956296ab598e6ba9ae9138f7086daa862284c8cfa272699fdf7ced96cb47ef117a4dfe41f715e5c7b48cdfc4fae0b1b2fcc7f2a267999aebfc045277f9ac98f986309dcd4ad5f5850bff9e495eab29db75e6ec53160520cec02d25f98a3a88fe568551f47f43bf4bbf4bbf4bbb9cd8e1efd5e0e02b4d3b4316d4c9bd026f8684452fa29fd8c7e463fa36f8e32fafd5c671788d11fe4e6389339fd3cb737918272324cfd8d440e07cfb0910381dec82f0f1f564fdcfe69f5d48d1f50bf7bfc891b2c5a2d5b146b3dcb712d2d958fb51de7fc56d71732fd1bc8359a18e31a7c6b30a65943440d8cef4dbe37a9754d16071cd9cc01a826c2561d91e1d36a7276f35b8befed08636c9bdfda0dc04b3c884187df3a35404c3c98b29b7830835e0490c918a089073588230f6c90441e5c99261edc20e37b967880833e6bf5130fb21c241ee4202796bce6de5916eca0a80376df002e0bfe1ee233aca126da11f86dc266f87b86523da3fbe039433ecdd2ce82d12cfd39da39309e03c7cd7cdf3cfd177fd92d0fa5cebd0fc41559eb1e94997b4866f601691e8d997b2cea8762f657260e027dda9ddcb74f1d7c70c9c8f9f43db7a99337bfe38da5a44b66c7d92c9914630c8614d192c592bd5007e2d80b75409eb592b115f907d3e9ba295032b4c28cbec9659e197beef34d5fc41d43d1581a04056816894f87b154d0b97e66929a78ce1f1fbc9cab8e8fe78b09ff5ff7c22461fcf3fffdfafdd785e1575f3b82a1bdc1aeaaffa31753ffd7465c11ad1c96d7e7e73eff1e75eefe1d2fe5f5391c96c4eddebd4dff7fb1ea9ef21f");
    }
}

contract CrypToadzDeltasC is ICrypToadzDeltaBank {
    mapping(uint8 => address) deltaData;
    mapping(uint8 => uint16) deltaLengths;

    function getBufferAtIndex(uint8 index) external view returns (bytes memory buffer) {
        return BufferUtils.decompress(deltaData[index], deltaLengths[index]);
    }

    constructor() {

        deltaLengths[0] = 6141;
        deltaLengths[1] = 5983;
        deltaLengths[2] = 6097;
        deltaLengths[3] = 747;

        deltaData[0] = SSTORE2.write(hex"ed985988664715c7bf3ad5df7af7fdde6f691014c98be44510711b9180415131c3e0c4208861d48c308313898326132279500ca30c22b8268e1b44262e21841897618288883eb93d0941094aa6c771c10daebfaa5b7dedced8437f2dbef9507cdd75ceffdcaa53e7fccfa91ad683c1936a30d0edb77ef970fbc64387daf6d40bef180c06a2a6a5c82c6444a266312361a4225e28ca8b457b0923e5ef9c5130d0f791f9c87ce67de67de67de603ec04d809b013640c6401b2005908260413623f4416220b998f988f988ff84e84bd0859842c4216632fc65e8cbd185c8c3c461e238f91276013b009d80459822c4196204b91a5c852e653e653e653e6336c66d8ccb099319f319fb1c60c590e260793f3ad9cf99cf99cf982f982f982ef14d82b9015c80a6425f64aec95d82bc195c84be425f2127905b6425621ab90557cb3425e21af90d7c86be435f21a798dbc465e23af9137d86fb03f2f3d0ef14e7366ede99b5ed13ef6c8fbe7f6003930b1071633320e875f9f5f0e413804c1e982c305270bce151c293852709ce030c14982830487080e111c2039bf6c580a7ed9949469cac757f6e33fb974b1fde177bebd613fbe81d2901d0c59e128c8513a6c95ce7e2a6c2ffdeacda9551a5522e38251899af0f7a4e6b7c16a6c5d23b8446a3372063a0dbf73e44b304bfe5fd622aba6c2f80bacf1af7fe19deda997bc68d46ddfc4696863d29e9f39ab32ac51be01b96abffff1f3936ea91ec367042c77ca98b1b289a831633269003416f0f3b7dddcedcd648089f4ceeaaafffcfdaf4cda478fbebafbfc90358e8a6e7f13c694312b6e749f97f6890b17dba72e5c1c77ca9cf110d70fd9ecc8780c078c03c0e1cb003ccf0270ad71f1b00398b5b2b1d10ca50963fa72144f5ac58f9efc4c3bbbf0e7a6f3426ab3d504807201a05c00281700ca05409f492e00940b00e50240b900502e005c54bfd6ad50b53ffbe2915daedfe124e3fa9bdd0a87364cfff8910fb497ef3ede3e7dd7b1f66f4f3e5a3e3764b50b59ed4256b362cd6af5ae50e57f17a2da85a87621aa59e1062b1c96e9ebf8f0bdd8df683f7cdf7bb723b06d9fbe71d1f9922de374211ad5d8b78ed763138d9568225288c801443780d4364206643480540610c846ce20f17569a2958f12a5d2b030225513a99a48d544aa10a97ad5bc8185bc65671a64074b8374af5478933b0bdd5e7ef60fede5adbfb65b57ffe982d61c362b35875aa4b7a078c82a5eb9e7a6f6d7c75ed5fee2b6e7fbdb87272e6f34bcade1670d176b3855c39d3aebf249ba433dd2e7d3c9771f9b6ca7beda203436521ba38e02ac5fd52438ba4ebadcda2b7ff37dc74d02baf8ca1ca3658e914c3066b7f59bffddd63fda67b7fede5ebef21f37fff65d7cf997ef3ee6f892b39f91749ee71ce075e411785d010b3d5bac24f26c7192d867a09f78b6e048ead9e22299d71593dc738ef2acb3a444bf0c6ee7e31fb4abbc2610f78883ede0d366073b824f137ca6ea1c204e8eb188643b6765dba7f8f00e042fb6aef9e953f7b65f79e4f06c9bf13a5784ce05a1db7268b7ea92fc3d26cf86666b37dc73a6bd7afe447bf8fc99b72abb357875647815ae1df95d3c8c429b7796ec46c4cb28ed38778cee18ddb1d7e7a31aa33b46776c8811ddb1d1cd9cbb4adc34365ccd0033f14d9c31c04cc04cc04cc04c70d704c298909b84989a8e18e0a660a660a660a660a660a660a614f529fa84a2a6195233f467ac6be6f5b162998e06c99096c6837a86ed19bade9081bec75e3c30c494f2c07841e74c4bc9909897da48d634519a064af9e07c703eebf2d98f0fde074f2c2a1fbc4fbcf991abe589cd004da3a569b2540036001b800dc0066003b0c4af0ac006816dc2bafa9fd812a069c4344d980ac1866043b021d8106c0896985721d8106c18b99e21b1c9644a87a659d3346b2a021f818fc047e023f01178724545e023f051e47a0df084b129399a864ed3d0a9187c0c3e061f838fc1c7e063f0e499327946c327347c3df9d3f0691a3e4dc3a712f009f8047c023e019f80273755023e31791ab9de067ce28a074da1a6295429f8147c0a3e059f824fc193d32a059f824f23d713a5b62c6a1a474de3a832b019d80c6c0636039b8185075406360b6c63d9f551a92da59ae652d358aa1c6c0e36079b83cdc1e660e10e9583cdc1e691ebbd5837296f184fd3846a1a5055802fc017e00bf005f8023c9ca30af005f822723d5b62c8cfb2a5a651d534a9aa045f822fc197e04bf025f8123c7ca5cac036b186625cbf47ad034f23ab69625505be025f81afc057e02bf015f80a7c05be8a6c6d141a5da1d1d5d094a6c9d534b9aa065f83afc1d7e06bf035f81a7c0dbe265f6884854658688485465843711a8ad334c24223ac1a6c34d868b0d160a3c146838d061b0d361a6cd02c2b9ae5ae3667b63e4b03be013f073b073b073b073b073b073b073b073b073b378d369c30874716e82fd05fa0bf407f81fe02fd05fa0bf417e82fd05fa0bf30fa70d512fd25fa4bf497e82fd15fa2bf447f89fe12fd25fa4bf457e8add05ba1b7426f85de0abd153a2be49bc836916d22db44b6896c131b9bc837b1b1999cea5bb2d3f77fb92f99caf680a68f333d9ca5fb3b8da265ec331f3addfef84747db739f7fe96bfeb78cbd7fb6de0f438b65e87cdf2c2d6bb2b4b62c7d3086d6076268d3ea1e849dbb2bf4faacdc5db1d767e3ff8689bbabf9fa0c6caeedc901d8d75c0f9203306f77e55f9f71bb278183316dc7b2b236cbc68e5df303b06bc7acf27f46dd8b51ef5af79a73770ff8c1e30f4d765ef21597fc9e45ffcd961feb39fbbe13c7afc7d9e7d6b9407dc2ddb955fbc907cfeebae67464173ae20a1d09858e54424712619ff05d02872e21439760a14b98d02540b81dcc9f5e67959f43b9b0abbcfcc02dbabb0bcdb64bcb83fb7d5f78a87f89facdd69fdaad2b5bbbee7eaabbfb7d15a577990267ef27cf7cf6dc11abc47a94a94c5413a19ad875d96a9276b74d2a86d88a11db2311aa81d86a10f5cf2a02cb8b65f9a87f6211cbde51ffd4229695a3fec9452cdbee7ec8346c2a9649a3fe29462c4346fd938c58e68bfaa71981d5c4b25a649f694cb8088c2596b122fb6463c2476023b16cf4dc8749f39e87ccb24d74cdc3a4c02a02ab886595bd1f25bb2b6766af9d0a36504df9707f7cbf7fe01dd73bbeaf9993b11763732bbffaa5dbdbdf9e3d5aeeef2533ebead78e67a17dbc5c7e638fa7b52e4585f414d253c6e1e37d603d73e256b38d8d5daf105d5a3e712d430cfdfea1ae6fa5c6e3edb8fede3a197209e5d7ef7c398af7f57274fd57807f01");
        deltaData[1] = SSTORE2.write(hex"ed985da81c571dc0ef9e99dd99dd9d999def9933b3bb45b0141f94f6e1825049aca5fa60055154ac162a141bfb85d106dbd0d0a012242a041aa5a6f621511b7c90da0f0bb795422e4d3fb0501091e247fa50ac566bae498df8d9e3efcccccebd4b6e2f77154a1efaf06767f7fccef9ffe7ff71ceffec53f9d2d2c54b4b4b421dd819a89f5cf3be9efed2e92642f4100bb1913e32489e6de1efedbf5e1dde7d750d0f22d11946423848cc7382a4d1cf80dfc17847dd7de4905d81a68f044888060f19894ecf151d0bb1dde799705935e1856bdf3ea8260c811cc4453c648404488844488c24de0b4cbcaa9af8cd97af18d526a16188360771110f19213eda7dc6029e43244262244152c6d2f0d41bbca3575923b046d45a81bd9780dfc9b8a95efdc275ea1747af502bdf39a20e5e7979eb1881630c1c63e218513be61526eda9343c7c74a7faf9a31f286a38c0c52113fc6a92c0f4caa3982f5c3e7905e1f1c96b88119fbc8ae05504af2202bef33a22e4935712918e845f4543f06a5ab1e0f5441a9e45f92d95af2e3df9a89cf3154a2b7fa1b4f2194a2bbfa1b4f21d4ae7fc87d2ca8728adfc88d2ca97550af84d1a543e3db748defca34d837bdebbaf4983a8b12a6aac891aed51a3b59afc2f26ee8337d4a17b3df5e4af3eaad44b9796d502bdac4e652b23d178b6733ea5581a8662c90985e121239e0324e43946127c9bf21a19fecbb030d71223ac217181e4b990428c5977cc6fe35c8889fc4f9bf50f1db97f3b59fffa2205d82362270cbdfab30f1e3e5dbf5a1f192043c4a957eea1a5a7b5a0b987e61e9a2d1b81b5602d58cba92db0602d580bd682b5348b3f6d0b618e0d6b3bda5204d686b5616d581bb6df4360fb707db83e5c1fae0fd787ebc30d6006e81dc00c60066e5d5003986117617c886d439821cc1066e836e5cfb8c3b8830e077b1c3807ce8173e01c3817c68571615c1817c68571615c1817c683f1603c180fc683f1603c180fc68319c18c604630239811cc086604338219c1f8303e8c0fe3c3f8303e8c0fe3c3f830014c0013c00430014c0013c00430014c0813c28430214c0813c28430214c0813c14430114c0413c14430114c0413c1c430314c0c13c3c430314c0c13c3c430094c0293c02430094c0293c02430094c0a93c2a430294c0a93c2a430294c0a93c16430194c0693c16430194c0693c1e430394c0e93c3e430394c0e93c3e49a21ae124ec249380927e1249c849370124e6a8e1c29e00ab802ae802be00ab802ae802be00acd916f05f956c297f0257c095fc297f0257c095fc297f0257ca979f2780c3f861fc38fe1c7f063f831fc187e0c3f861fc34fe0267013b809dc046e02378199303e656ccad894b1296353c6a6ac31657cca1ad3c0a290cf19baea296475d3452ffff3ad62ae8b59389c53ecc9db296ae1c2bae1b68a5b78b0ecf3175a918b10bb3873b653ec22828dc26d15bd886139c7de2afe0baef86d39eb70de73f85b8b34ba03396b2e9e5e395637175d3474ddbab198ed1c9635db2102396b2e4edcb2aceefbe472dbcc8a0dcdaca89bd9107852c1a77e7f4ebdf8c7bf99b5697e5d37bad54bc21828a84cd875e00e51013a910befa24655659b55db8637bae1faeeb5be4b5d0cfcb60a3e79d7f1b906bbf2c27a837d496bd3da8bafaa5f9ffad379368924bc6cbbab2dafaff6ca9a5a3bf3fa66ab5ddeae76e2f6cf6db5da8e261ac6acab55bfbd79c71bde168cd4bbba8dc61f3eff29f5ccd78ecfdd12666d70734bf8446386a14efff98c3abdf677b576f6df73f61ab5bdd7b411b9edddefaa2352dbf969b94067791db0ac56796de7b239d775d7ddf5671659edb3f20268c56f68e223d4c1af7c517df9ce5b9bac646fdcbc5a762d5a5e37b5a98286da1f2680c924534fead7a06ddf2c6757bebdefdfa17ef3d0ae37f3ca776b1b5aacac433babcaba226f6bcb82d8ebac37375ecf74fc451a7d09e86315d484345c0fe77c28ff8750ddc1e2cbd5e21fdf73a3da71ed95edbd4f6c71ef6b2e8dfbe4ec4a7bcfd1436fd695f6ae36574e7fe4c3f6a6a1efea7cb16729b07fd16cfcea22057710f8431ba3e36f556c6d84b68ecadd2c7a153b4a57edfde51e5dc1ea83fb57d5efd6feaad6feb2f6f55a418a354ce8e595a28e95227cb7726158a530ec92a6918cede3b87e8cc0f45361f4cb3abf06fc36488431288559358b3ae762610ccb3a688e1486c3b38be12ecf6e89b7f46d0e1d1ebf7992209654c5ac39d3cd1b3a7cecf0617c181fc62f10d609626156cd970e34ba43d81036840d6143d810362cebe0473051592740cc730c1fc3c7f0317c2c455737503a3112c613c613c6139c9d309e607352eafa2169184f194f194f999f329e329e966d232574139511104aa793c167f0197c069fc167f059d93454ba9922197378caac5395197c9ed681cd89415eb6cd94d0cd9424e83268821e5581ef48e64874489d0cac2f4bb154f05ca08fa4300aec2fe14a92a3842b192b192b192b599fa4e98cf97d9638637c38c68713ec98f0db047622ef6df7cabd078ecffdffb3e190d107df77e5027fc0dd27cfffb3685badd4b145aaeb079b34189bda7e7f0bbef6e3ef6fd53bfcb0d9f04cf5fccaaa7afc81557552cbca6afb9791300361981c7eec0e6677244cee8282eec9b0dd07fe9fc90fcf4d6e26aa071f7bbc3df044b32709f62483fd48b01f096e9ba6337c6411afad00efae34ad1efbb67aec1b77aaeb6fff917aeeec996ce31e2d9a3d5a347bb43ef88ce6e0339a836f7d8f8eeaaea7d99f45b33f8b667fd6879e99863f6dadd4e7d97aba9d1f09917a4fb41bf9ee1b6fb0e7fad66eb459effad4223ef82f");
        deltaData[2] = SSTORE2.write(hex"c5986dc81c5715c777ee99d9f79ddd9ddd99d9d9e7050b165a10693f14db20ad08a6a4be40d4564cc117142a3691445ba9b1690b0d35b414d21a4b69bf8426d15028a9812a25a625a152a41451a42da26009158b1a8b8f34867eb8fece9dd979f6c9f364cd52c10f97ddf9df73eecbb9e7fcef39f7f5ac52d9e1552abe7df5956df6c0c14df6bebdbbedcf8ede7a4ba552315e2d315e63604c63488b697c37231a5813acc977ab67a4d5377e0bac05d6026b7769e06df036781bbc0dde01eb8075c03a601db0102c040bc142b010ac0bd605eb8275c1ba60bd1ead4f63fe1e780fbc07de47b68f6c1fac0fd6078bc022b0082c028bc0066003b001d8006c0036041b820dc1866043b0182c068bc162b0182c613f097327cc9d8027e00978ca9ad2c89894ef14fba46023e446c88d621adf19ffb3016d4803cb923f60f4add857eceecdd7dbd71e7fd29e3ff95ccf19bcd9c7a80c88510d063418cc6020a30661f386cd1b366cd8a06143860d185d308b3349f426035fc9389eddf5cddbea6ec0a04debd042e3559bb416a75aa3d5698d33285cae72f6811bfaf6b96d1fafe64a6ca54aabd1ea717ef4cdf8ed52f8b5235fb03f3df48d5c587d41cf5ecf59ed88ddb0d15fe719f9ef08efa23f70065979e86e7bf69eedf6cc5db7a961920b0d236e36f5ae813390e04d82f7887a4b6924bef5f4dda90f9ca1c4ad4e4f77607c0c1624d1d9d2603f7c627f6e301f03f918cd57a335686ab47a6eb07afd9fe5b6eedfb9ddbefee59b66d96005e1934ef8478ffdc3be71fb551f72c27546ad336a83111bfc6f34cb00f39a1c4d13bcd9980a30b056bd0cae49304d0268123493409904c6241826013071fa89a34f9cdb4c39b44907b9238ff81d818de2770b13e1ac0ffcc49e3dfe1d3dfd35bb96b5bb7e6f9e93b7f30857c693a5a8031ebaefebf6c0ae4fad5b8aac2ea53e9e63f426c277bad1f73f19da977eff396bcf5c9539856a9a0bd7524e8efff511bf99a9b422536947381fadcbff3e2de2ff901647b9354b4ba60515f07f9c19b3c8788b608b236396b2709c47c09ac947ef6bf2a4e7f8e9bf4cdc65e2251701474fde1fe4e681c00214026c5885f86ae102425b9c1d8bd57567ad6cedcc1bcebacc8097b9017ff5c22fecaf5f3a5dcc9ccf6aaa28d7dab4f083e509fe65e7adf68e6b3f5c1c77c871d3dab4212d86dd92f0f2f1249a8f3ff1e34b89e62b50b8a6a2b7df8963a7ed2f7f477b9e76ec74a9ccf56504651f65bf50f651967afdda7269efdcbbd9aeecba6ed6d2368dd7130d56f231b51fe5ec1c60ea2acbacd1ea9debcb73612f85750a0a5fa5ef8f95a3befcfc53f50d0f0f537a98d28d5a0b6f9c27206e42f861c7ca85f0b46f2e4d2b4ae1097e2d750308dee0e30da2de900f56fa6b80bf0653fe1ae0af01feeae33582d7f8788de0af82e7f8788e8fe7f8788ee039fe52f6c9f1fa2b6ee6963ffdff8aaccfcc63ebad08df3c1d61d12545d83a82d970259f5f1f17b36df6c579fd6adb3c7bfd12c29f30ea57d115ffb2b7ef396f9ffeeed3363af59ebdeeb3e71ecaf7bdc0a8acbf36a62db267ae41b777beeb8b0cd4a5b122bd321b190dbcb1684483af495f912d784dbd52e96ba2d36a9139687082b7f86e73edb65b04b8062b3ae4aa46fd93eb35e07a0ddaccd746ae835c0726e8d0c7951b70e5061dfa3af485f485f485e893c31af56daee380eb3808b17d97fe2efd5df5f905ae65be7b7cf798b3d72db395802b3be8c534f47a296d44cb68631a7a7df4fae8e18926e27fc4ff087d725ca331c4151f44e873cd0711fa11fa11fa11fa11fa037406e80c901df03de47bc8de95a0868c430e6c340e490d02528360c8da6364626c162b89698cd247ba10c4ec3d66ef09fd0963261dd2cf50d34f322a644823820499049914991499943952e62057f652f011d8a843436fd42d7265ce69b458e4c89c69c677c6f798b31f33de98ef31df0bf8c502ff17f8bfb8f095f57c309bf3bf3a9e3347de8ec2d5ee9278f1c4e3f6e62d37da7d77efd6c0a84dd37825201c091221307c02a352eb7d0bc5471c7f4e9847ef304d5d60a0e559f12da433ca425a532913690db5116f6adde2b8536b15e54f52b94b60a66f97b7afa674c70e3f186c94c4923fddb926e1d28c77f506de30e1baab18d9b32bcf1e2e053d043d043d1d3517fcfe3c84b107e1ef95f5d2bb0fdf62cfdfbb659c8f4e96d0ecac0637012d04b447c04a2774c12961e88250ba1a74c8f7386a8249faa10b248942171c32085d500841e14d1c3f69ab83dfa3ab35ea02ca58976d3a673fb2f59cbd7af3bff7e6abc64303ac1b707aacdeab66058361fdda688ac572f65a652bee9366ead8498aba465adc74ad9163288195a4a873fc36388c24edccb192dfa16f52fb74e88391fc4ee6584960237155b5d645f485785417cc55d55a27713b77190b461258487a797129309150590b0c243090c0400203090c247de45ca54d7f1f7dd8475c95ad7516f2308ec03802e3088c2303fa8bda4b06f40fe8877904b691a2169321f8901b3e062bea3289c160188933c73242e52d495ee00a0c2309fdb08b9f648e610466715903ec22b08ba4f4a7e8a799631a19a14b452e54e43ed5b86876311a39a699641902e348465f964eb14ece36662199621bce930882758cb784672ed1b744df32bfcbe82ed3b79cfda0706dcf9e7af470ede204e3c8655f19077f3eb0cf3e78ea6bd50b49a502a968420ca13c525217235f4a127970de8bffc8bcd9d551147ee3552a55f77e74f6e841f78674e57068ed6f3f6a9f7aec033bf277a4d8bd25194a5f53d772977296d2d7349aee7d49287f855897063294c08612d850024fde9a84525828850da5b0a1145e7d738a1cb908a5b1ac7b778a1ce908f7b94cbd3d792e62c0a6de9e945b3d172de053ef4fcab79e8b18f00ddea0847b5bd6bc4181bb08015ff30e05ee22057cea2dca73d10136f516a5bceeb9e8009f7a8f529ef75c8480976f52bd35ef52c2fd2bdcbfd5e25dca233f94148c925ed6bc4d7198e48c9337aa6af146555d7da37aa674cc3b1edd6b576eb866d643c7f179d8fce7e51df1b7678fccba234e1417af67773cb3b3e904a178cfd13b0d5af7a0740f1af7a0700ffaf61c75872fceb39c53457de0e95bd378f2d6e43c0f2fcb97d5cb978607a9f7a8d7a8b7a897a877941e8117e8e9eba9eb69eb29eb09ebc9e6dbea155b7327f6726987d5a7b470758bf956b4767c05c1cc09bef5b6f5733b40202101c8f5e5c59d572f524de78c63601c03db985ae38dd2a2fb5f38348f45ff88e29e0b8ba885ff491175e96f247f9a37737b737cf177d6d5bc41730697e06b22af79429123b8845b136d4d9cc90b5c329ce70367e671b0b7decf23c33bebdf0d6613f27f00");
        deltaData[3] = SSTORE2.write(hex"7d923b4803411445775e7e9bcf6cb24936c9e65389424044908095a2a0959d58a8858dd809116c8c8d55b00a22568a8d8ae9053b11224114047b5b1b0b51110b0be5793363d6541697bbb37366e6dd79f39e378cb2611882cff64f4d7c90f027201b4a920858509c4450920841a6fcc402572db85baafad582488a44144a4399d437005b014fd545d20076c958be8261f477c6dc68acf2cd7633d89da4281483d290a360e9c1c75bcbbcb736e3c1a207161ab60097147cdfbee2dbcb0b7f3708fd054817ba75e1f8debab298d8c0d8c7b5e931bede9ce2a395a9bc0662441189faa2e453c7c23b474bb8845b70cb225f1c1ec76609f009f036c636e693f0243c054f754a86ab8c70944e19f01999f3b2d6ea4d5e1f1dfa2f6b1ef084aab6b57bc2afefccaf6f5f319d370ac520342a108622c86da2719069ea1496d45539b2afd06de4cbf387be3000028000201c3900604e9db4736071fb6196f971d85660304b1472a02c76c6b79983bbb88324f2e0f96471f339ccb978426e9a28ef1215c117f1af98232ab9652f737ddce6f385499d390028e8e8cd4d280c459c41af75e8d06febf0409dc488b74b6bb5c287f395ff9ed40f");
    }
}
// File: @openzeppelin/contracts/access/Ownable.sol



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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/utils/introspection/ERC165Checker.sol



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

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Library used to query support of an interface declared via {IERC165}.
 *
 * Note that these functions return the actual result of the query: they do not
 * `revert` if an interface is not supported. It is up to the caller to decide
 * what to do in these cases.
 */
library ERC165Checker {
    // As per the EIP-165 spec, no interface should ever match 0xffffffff
    bytes4 private constant _INTERFACE_ID_INVALID = 0xffffffff;

    /**
     * @dev Returns true if `account` supports the {IERC165} interface,
     */
    function supportsERC165(address account) internal view returns (bool) {
        // Any contract that implements ERC165 must explicitly indicate support of
        // InterfaceId_ERC165 and explicitly indicate non-support of InterfaceId_Invalid
        return
            _supportsERC165Interface(account, type(IERC165).interfaceId) &&
            !_supportsERC165Interface(account, _INTERFACE_ID_INVALID);
    }

    /**
     * @dev Returns true if `account` supports the interface defined by
     * `interfaceId`. Support for {IERC165} itself is queried automatically.
     *
     * See {IERC165-supportsInterface}.
     */
    function supportsInterface(address account, bytes4 interfaceId) internal view returns (bool) {
        // query support of both ERC165 as per the spec and support of _interfaceId
        return supportsERC165(account) && _supportsERC165Interface(account, interfaceId);
    }

    /**
     * @dev Returns a boolean array where each value corresponds to the
     * interfaces passed in and whether they're supported or not. This allows
     * you to batch check interfaces for a contract where your expectation
     * is that some interfaces may not be supported.
     *
     * See {IERC165-supportsInterface}.
     *
     * _Available since v3.4._
     */
    function getSupportedInterfaces(address account, bytes4[] memory interfaceIds)
        internal
        view
        returns (bool[] memory)
    {
        // an array of booleans corresponding to interfaceIds and whether they're supported or not
        bool[] memory interfaceIdsSupported = new bool[](interfaceIds.length);

        // query support of ERC165 itself
        if (supportsERC165(account)) {
            // query support of each interface in interfaceIds
            for (uint256 i = 0; i < interfaceIds.length; i++) {
                interfaceIdsSupported[i] = _supportsERC165Interface(account, interfaceIds[i]);
            }
        }

        return interfaceIdsSupported;
    }

    /**
     * @dev Returns true if `account` supports all the interfaces defined in
     * `interfaceIds`. Support for {IERC165} itself is queried automatically.
     *
     * Batch-querying can lead to gas savings by skipping repeated checks for
     * {IERC165} support.
     *
     * See {IERC165-supportsInterface}.
     */
    function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) {
        // query support of ERC165 itself
        if (!supportsERC165(account)) {
            return false;
        }

        // query support of each interface in _interfaceIds
        for (uint256 i = 0; i < interfaceIds.length; i++) {
            if (!_supportsERC165Interface(account, interfaceIds[i])) {
                return false;
            }
        }

        // all interfaces supported
        return true;
    }

    /**
     * @notice Query if a contract implements an interface, does not check ERC165 support
     * @param account The address of the contract to query for support of an interface
     * @param interfaceId The interface identifier, as specified in ERC-165
     * @return true if the contract at account indicates support of the interface with
     * identifier interfaceId, false otherwise
     * @dev Assumes that account contains a contract that supports ERC165, otherwise
     * the behavior of this method is undefined. This precondition can be checked
     * with {supportsERC165}.
     * Interface identification is specified in ERC-165.
     */
    function _supportsERC165Interface(address account, bytes4 interfaceId) private view returns (bool) {
        bytes memory encodedParams = abi.encodeWithSelector(IERC165.supportsInterface.selector, interfaceId);
        (bool success, bytes memory result) = account.staticcall{gas: 30000}(encodedParams);
        if (result.length < 32) return false;
        return success && abi.decode(result, (bool));
    }
}

// File: contracts/lib/SSTORE2.sol



// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import "./Bytecode.sol";

/**
  @title A key-value storage with auto-generated keys for storing chunks of data with a lower write & read cost.
  @author Agustin Aguilar <aa@horizon.io>

  Readme: https://github.com/0xsequence/sstore2#readme
*/
library SSTORE2 {
  error WriteError();

  /**
    @notice Stores `_data` and returns `pointer` as key for later retrieval
    @dev The pointer is a contract address with `_data` as code
    @param _data to be written
    @return pointer Pointer to the written `_data`
  */
  function write(bytes memory _data) internal returns (address pointer) {
    // Append 00 to _data so contract can't be called
    // Build init code
    bytes memory code = Bytecode.creationCodeFor(
      abi.encodePacked(
        hex'00',
        _data
      )
    );

    // Deploy contract using create
    assembly { pointer := create(0, add(code, 32), mload(code)) }

    // Address MUST be non-zero
    if (pointer == address(0)) revert WriteError();
  }

  /**
    @notice Reads the contents of the `_pointer` code as data, skips the first byte 
    @dev The function is intended for reading pointers generated by `write`
    @param _pointer to be read
    @return data read from `_pointer` contract
  */
  function read(address _pointer) internal view returns (bytes memory) {
    return Bytecode.codeAt(_pointer, 1, type(uint256).max);
  }

  /**
    @notice Reads the contents of the `_pointer` code as data, skips the first byte 
    @dev The function is intended for reading pointers generated by `write`
    @param _pointer to be read
    @param _start number of bytes to skip
    @return data read from `_pointer` contract
  */
  function read(address _pointer, uint256 _start) internal view returns (bytes memory) {
    return Bytecode.codeAt(_pointer, _start + 1, type(uint256).max);
  }

  /**
    @notice Reads the contents of the `_pointer` code as data, skips the first byte 
    @dev The function is intended for reading pointers generated by `write`
    @param _pointer to be read
    @param _start number of bytes to skip
    @param _end index before which to end extraction
    @return data read from `_pointer` contract
  */
  function read(address _pointer, uint256 _start, uint256 _end) internal view returns (bytes memory) {
    return Bytecode.codeAt(_pointer, _start + 1, _end + 1);
  }
}
// File: contracts/ICrypToadzDeltas.sol



// SPDX-License-Identifier: CC0-1.0

pragma solidity ^0.8.13;

import "./GIFFrame.sol";

interface ICrypToadzDeltas {
    function drawDelta(GIFFrame memory frame, uint tokenId, uint8 deltaFile) external view returns (uint32[] memory buffer);
    function getDeltaFileForToken(uint tokenId) external view returns (int8);
}
// File: contracts/ICrypToadzDeltaBank.sol



// SPDX-License-Identifier: CC0-1.0

pragma solidity ^0.8.13;

import "./GIFEncoder.sol";

interface ICrypToadzDeltaBank {
    function getBufferAtIndex(uint8 index) external view returns (bytes memory buffer);    
}
// File: contracts/BufferUtils.sol



// SPDX-License-Identifier: CC0-1.0

pragma solidity ^0.8.13;

import "./lib/InflateLib.sol";
import "./lib/SSTORE2.sol";
import "./Errors.sol";

library BufferUtils {
    function decompress(address compressed, uint256 decompressedLength)
        internal
        view
        returns (bytes memory)
    {
        (InflateLib.ErrorCode code, bytes memory buffer) = InflateLib.puff(
            SSTORE2.read(compressed),
            decompressedLength
        );
        if (code != InflateLib.ErrorCode.ERR_NONE)
            revert FailedToDecompress(uint256(code));
        if (buffer.length != decompressedLength)
            revert InvalidDecompressionLength(
                decompressedLength,
                buffer.length
            );
        return buffer;
    }

    function advanceToTokenPosition(uint256 tokenId, bytes memory buffer)
        internal
        pure
        returns (uint256 position, uint8 length)
    {
        uint256 id;
        while (id != tokenId) {
            (id, position) = BufferUtils.readUInt32(position, buffer);
            (length, position) = BufferUtils.readByte(position, buffer);
            if (id != tokenId) {
                position += length;
                if (position >= buffer.length) return (position, 0);
            }
        }
        return (position, length);
    }

    function advanceToTokenPositionDelta(uint256 tokenId, bytes memory buffer)
        internal
        pure
        returns (uint256 position, uint32 length)
    {
        uint256 id;
        while (id != tokenId) {
            (id, position) = BufferUtils.readUInt32(position, buffer);
            (length, position) = BufferUtils.readUInt32(position, buffer);
            if (id != tokenId) {
                position += length;
                if (position >= buffer.length) return (position, 0);
            }
        }
        return (position, length);
    }

    function readUInt32(uint256 position, bytes memory buffer)
        internal
        pure
        returns (uint32, uint256)
    {
        uint8 d1 = uint8(buffer[position++]);
        uint8 d2 = uint8(buffer[position++]);
        uint8 d3 = uint8(buffer[position++]);
        uint8 d4 = uint8(buffer[position++]);
        return ((16777216 * d4) + (65536 * d3) + (256 * d2) + d1, position);
    }

    function readByte(uint256 position, bytes memory buffer)
        internal
        pure
        returns (uint8, uint256)
    {
        uint8 value = uint8(buffer[position++]);
        return (value, position);
    }

    function abs(int256 x) internal pure returns (int256) {
        return x >= 0 ? x : -x;
    }
}

// File: contracts/GIFDraw.sol



// SPDX-License-Identifier: CC0-1.0

pragma solidity ^0.8.13;

import "./GIFFrame.sol";
import "./IPixelRenderer.sol";

library GIFDraw {
    function draw(
        IPixelRenderer renderer,
        GIFFrame memory frame,
        bytes memory buffer,
        uint256 position,
        uint8 offsetX,
        uint8 offsetY,
        bool blend
    ) internal pure returns (uint256) {
        (uint32[] memory colors, uint256 positionAfterColor) = renderer.getColorTable(buffer, position);
        position = positionAfterColor;

        (uint32[] memory newBuffer, uint256 positionAfterDraw) = renderer.drawFrameWithOffsets(
            DrawFrame(
                buffer,
                position,
                frame,
                colors,
                offsetX,
                offsetY,
                blend
            )
        );

        frame.buffer = newBuffer;
        return positionAfterDraw;
    }
}
// File: @openzeppelin/contracts/utils/Context.sol



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

pragma solidity ^0.8.0;

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

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

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



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

pragma solidity ^0.8.0;

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

// File: contracts/lib/Bytecode.sol



// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

library Bytecode {
  error InvalidCodeAtRange(uint256 _size, uint256 _start, uint256 _end);

  /**
    @notice Generate a creation code that results on a contract with `_code` as bytecode
    @param _code The returning value of the resulting `creationCode`
    @return creationCode (constructor) for new contract
  */
  function creationCodeFor(bytes memory _code) internal pure returns (bytes memory) {
    /*
      0x00    0x63         0x63XXXXXX  PUSH4 _code.length  size
      0x01    0x80         0x80        DUP1                size size
      0x02    0x60         0x600e      PUSH1 14            14 size size
      0x03    0x60         0x6000      PUSH1 00            0 14 size size
      0x04    0x39         0x39        CODECOPY            size
      0x05    0x60         0x6000      PUSH1 00            0 size
      0x06    0xf3         0xf3        RETURN
      <CODE>
    */

    return abi.encodePacked(
      hex"63",
      uint32(_code.length),
      hex"80_60_0E_60_00_39_60_00_F3",
      _code
    );
  }

  /**
    @notice Returns the size of the code on a given address
    @param _addr Address that may or may not contain code
    @return size of the code on the given `_addr`
  */
  function codeSize(address _addr) internal view returns (uint256 size) {
    assembly { size := extcodesize(_addr) }
  }

  /**
    @notice Returns the code of a given address
    @dev It will fail if `_end < _start`
    @param _addr Address that may or may not contain code
    @param _start number of bytes of code to skip on read
    @param _end index before which to end extraction
    @return oCode read from `_addr` deployed bytecode

    Forked from: https://gist.github.com/KardanovIR/fe98661df9338c842b4a30306d507fbd
  */
  function codeAt(address _addr, uint256 _start, uint256 _end) internal view returns (bytes memory oCode) {
    uint256 csize = codeSize(_addr);
    if (csize == 0) return bytes("");

    if (_start > csize) return bytes("");
    if (_end < _start) revert InvalidCodeAtRange(csize, _start, _end); 

    unchecked {
      uint256 reqSize = _end - _start;
      uint256 maxSize = csize - _start;

      uint256 size = maxSize < reqSize ? maxSize : reqSize;

      assembly {
        // allocate output byte array - this could also be done without assembly
        // by using o_code = new bytes(size)
        oCode := mload(0x40)
        // new "memory end" including padding
        mstore(0x40, add(oCode, and(add(add(size, 0x20), 0x1f), not(0x1f))))
        // store length in memory
        mstore(oCode, size)
        // actually retrieve the code, this needs assembly
        extcodecopy(_addr, add(oCode, 0x20), _start, size)
      }
    }
  }
}
// File: contracts/GIFFrame.sol



// SPDX-License-Identifier: CC0-1.0

pragma solidity ^0.8.13;

struct GIFFrame {
    uint32[] buffer;
    uint16 delay;
    uint16 width;
    uint16 height;
}
// File: contracts/GIFEncoder.sol



// SPDX-License-Identifier: CC0-1.0

pragma solidity ^0.8.13;

import "./lib/Base64.sol";
import "./IGIFEncoder.sol";
import "./GIF.sol";

/** @notice Encodes image data in GIF format. GIF is much more compact than SVG, allows for animation (SVG does as well), and also represents images that are already rastered. 
            This is important if the art shouldn't change fundamentally depending on which process is doing the SVG rendering, such as a browser or custom application.
 */
contract GIFEncoder is IGIFEncoder {
    
    uint32 private constant MASK = (1 << 12) - 1;
    uint32 private constant CLEAR_CODE = 256;
    uint32 private constant END_CODE = 257;
    uint16 private constant CODE_START = 258;
    uint16 private constant TREE_TABLE_LENGTH = 4096;
    uint16 private constant CODE_TABLE_LENGTH = TREE_TABLE_LENGTH - CODE_START;

    bytes private constant HEADER = hex"474946383961";
    bytes private constant NETSCAPE = hex"21FF0b4E45545343415045322E300301000000";
    bytes private constant GIF_URI_PREFIX = "data:image/gif;base64,";

    struct GCT {
        uint32 start;
        uint32 count;
    }

    struct LZW {
        uint16 codeCount;
        int32 codeBitsUsed;
        uint32 activePrefix;
        uint32 activeSuffix;
        uint32[CODE_TABLE_LENGTH] codeTable;
        uint16[TREE_TABLE_LENGTH] treeRoots;
        Pending pending;
    }

    struct Pending {
        uint32 value;
        int32 bits;
        uint32 chunkSize;
    }

    function getDataUri(GIF memory gif) external pure returns (string memory) {
        (bytes memory buffer, uint length) = encode(gif);
        string memory base64 = Base64.encode(buffer, length);
        return string(abi.encodePacked(GIF_URI_PREFIX, base64));
    }

    function encode(GIF memory gif) private pure returns (bytes memory buffer, uint length) {
        buffer = new bytes(gif.width * gif.height * 3);
        uint32 position = 0;

        // header
        position = writeBuffer(buffer, position, HEADER);

        // logical screen descriptor
        {
            position = writeUInt16(buffer, position, gif.width);
            position = writeUInt16(buffer, position, gif.height);

            uint8 packed = 0;
            packed |= 1 << 7;
            packed |= 7 << 4;
            packed |= 0 << 3;
            packed |= 7 << 0;

            position = writeByte(buffer, position, packed);
            position = writeByte(buffer, position, 0);
            position = writeByte(buffer, position, 0);
        }

        // global color table
        GCT memory gct;
        gct.start = position;
        gct.count = 1;
        {
            for (uint256 i = 0; i < 768; i++) {
                position = writeByte(buffer, position, 0);
            }
        }

        if (gif.frameCount > 1) {
            // netscape extension block
            position = writeBuffer(buffer, position, NETSCAPE);
        }

        uint32[CODE_TABLE_LENGTH] memory codeTable;

        for (uint256 i = 0; i < gif.frameCount; i++) {
            // graphic control extension
            {
                position = writeByte(buffer, position, 0x21);
                position = writeByte(buffer, position, 0xF9);
                position = writeByte(buffer, position, 0x04);

                uint8 packed = 0;
                packed |= (gif.frameCount > 1 ? 2 : 0) << 2;
                packed |= 0 << 1;
                packed |= 1 << 0;
                position = writeByte(buffer, position, packed);

                position = writeUInt16(buffer, position, gif.frameCount > 1 ? gif.frames[i].delay : uint16(0));                
                position = writeByte(buffer, position, 0);
                position = writeByte(buffer, position, 0);
            }

            // image descriptor
            {
                position = writeByte(buffer, position, 0x2C);
                position = writeUInt16(buffer, position, uint16(0));
                position = writeUInt16(buffer, position, uint16(0));
                position = writeUInt16(buffer, position, gif.frames[i].width);
                position = writeUInt16(buffer, position, gif.frames[i].height);

                uint8 packed = 0;
                packed |= 0 << 7;
                packed |= 0 << 6;
                packed |= 0 << 5;
                packed |= 0 << 0;
                position = writeByte(buffer, position, packed);
            }

            // image data
            {
                uint16[TREE_TABLE_LENGTH] memory treeRoots;

                (uint32 p, uint32 c) = writeImageData(
                    buffer,
                    position,
                    gct,
                    gif.frames[i],
                    LZW(0, 9, 0, 0, codeTable, treeRoots, Pending(0, 0, 0))
                );
                position = p;
                gct.count = c;
            }
        }

        // trailer
        position = writeByte(buffer, position, 0x3B);

        return (buffer, position);
    }

    function writeBuffer(
        bytes memory buffer,
        uint32 position,
        bytes memory value
    ) private pure returns (uint32) {
        for (uint256 i = 0; i < value.length; i++)
            buffer[position++] = bytes1(value[i]);
        return position;
    }

    function writeByte(
        bytes memory buffer,
        uint32 position,
        uint8 value
    ) private pure returns (uint32) {
        buffer[position++] = bytes1(value);
        return position;
    }

    function writeUInt16(
        bytes memory buffer,
        uint32 position,
        uint16 value
    ) private pure returns (uint32) {
        buffer[position++] = bytes1(uint8(uint16(value >> 0)));
        buffer[position++] = bytes1(uint8(uint16(value >> 8)));
        return position;
    }

    function writeImageData(
        bytes memory buffer,
        uint32 position,
        GCT memory gct,
        GIFFrame memory frame,
        LZW memory lzw
    ) private pure returns (uint32, uint32) {
                
        position = writeByte(buffer, position, 8);
        position = writeByte(buffer, position, 0);

        lzw.codeCount = 0;
        lzw.codeBitsUsed = 9;

        {
            (uint32 p, Pending memory pending) = writeVariableBitsChunked(
                buffer,
                position,
                CLEAR_CODE,
                lzw.codeBitsUsed,
                lzw.pending
            );
            position = p;
            lzw.pending = pending;
        }

        {
            (uint32 c, uint32 p) = getColorTableIndex(
                buffer,
                gct.start,
                gct.count,
                frame.buffer[0]
            );
            gct.count = c;
            lzw.activePrefix = p;
        }        

        for (uint32 i = 1; i < frame.width * frame.height; i++) {

            (uint32 c, uint32 p) = getColorTableIndex(
                buffer,
                gct.start,
                gct.count,
                frame.buffer[i]
            );
            gct.count = c;
            lzw.activeSuffix = p;

            position = writeColor(buffer, position, lzw);
        }

        {
            (uint32 p, Pending memory pending) = writeVariableBitsChunked(
                buffer,
                position,
                lzw.activePrefix,
                lzw.codeBitsUsed,
                lzw.pending
            );
            position = p;
            lzw.pending = pending;
        }

        {
            (uint32 p, Pending memory pending) = writeVariableBitsChunked(
                buffer,
                position,
                END_CODE,
                lzw.codeBitsUsed,
                lzw.pending
            );
            position = p;
            lzw.pending = pending;
        }

        if (lzw.pending.bits > 0) {
            position = writeChunked(
                buffer,
                position,
                uint8(lzw.pending.value & 0xFF),
                lzw.pending
            );
            lzw.pending.value = 0;
            lzw.pending.bits = 0;
        }

        if (lzw.pending.chunkSize > 0) {
            buffer[position - lzw.pending.chunkSize - 1] = bytes1(
                uint8(uint32(lzw.pending.chunkSize))
            );
            lzw.pending.chunkSize = 0;
            position = writeByte(buffer, position, 0);
        }

        return (position, gct.count);
    }

    function writeColor(bytes memory buffer, uint32 position, LZW memory lzw) private pure returns (uint32) {
        uint32 lastTreePosition = 0;
        uint32 foundSuffix = 0;

        bool found = false;
        {
            uint32 treePosition = lzw.treeRoots[lzw.activePrefix];
            while (treePosition != 0) {
                lastTreePosition = treePosition;
                foundSuffix = lzw.codeTable[treePosition - CODE_START] & 0xFF;

                if (lzw.activeSuffix == foundSuffix) {
                    lzw.activePrefix = treePosition;
                    found = true;
                    break;
                } else if (lzw.activeSuffix < foundSuffix) {
                    treePosition = (lzw.codeTable[treePosition - CODE_START] >> 8) & MASK;
                } else {
                    treePosition = lzw.codeTable[treePosition - CODE_START] >> 20;
                }
            }
        }

        if (!found) {
            {
                (
                    uint32 p,
                    Pending memory pending
                ) = writeVariableBitsChunked(
                        buffer,
                        position,
                        lzw.activePrefix,
                        lzw.codeBitsUsed,
                        lzw.pending
                    );
                position = p;
                lzw.pending = pending;
            }

            if (lzw.codeCount == CODE_TABLE_LENGTH) {
                {
                    (
                        uint32 p,
                        Pending memory pending
                    ) = writeVariableBitsChunked(
                            buffer,
                            position,
                            CLEAR_CODE,
                            lzw.codeBitsUsed,
                            lzw.pending
                        );
                    position = p;
                    lzw.pending = pending;
                }

                for (uint16 j = 0; j < TREE_TABLE_LENGTH; j++) {
                    lzw.treeRoots[j] = 0;
                }
                lzw.codeCount = 0;
                lzw.codeBitsUsed = 9;
            } else {
                if (lastTreePosition == 0)
                    lzw.treeRoots[lzw.activePrefix] = uint16(CODE_START + lzw.codeCount);
                else if (lzw.activeSuffix < foundSuffix)
                    lzw.codeTable[lastTreePosition - CODE_START] = (lzw.codeTable[lastTreePosition - CODE_START] & ~(MASK << 8)) | (uint32(CODE_START + lzw.codeCount) << 8);
                else {
                    lzw.codeTable[lastTreePosition - CODE_START] = (lzw.codeTable[lastTreePosition - CODE_START] & ~(MASK << 20)) | (uint32(CODE_START + lzw.codeCount) << 20);
                }

                if (uint32(CODE_START + lzw.codeCount) == (uint32(1) << uint32(lzw.codeBitsUsed))) {
                    lzw.codeBitsUsed++;
                }

                lzw.codeTable[lzw.codeCount++] = lzw.activeSuffix;
            }

            lzw.activePrefix = lzw.activeSuffix;
        }

        return position;
    }    

    function writeVariableBitsChunked(
        bytes memory buffer,
        uint32 position,
        uint32 value,
        int32 bits,
        Pending memory pending
    ) private pure returns (uint32, Pending memory) {
        while (bits > 0) {
            int32 takeBits = min(bits, 8 - pending.bits);
            uint32 takeMask = uint32((uint32(1) << uint32(takeBits)) - 1);

            pending.value |= ((value & takeMask) << uint32(pending.bits));

            pending.bits += takeBits;
            bits -= takeBits;
            value >>= uint32(takeBits);

            if (pending.bits == 8) {
                position = writeChunked(
                    buffer,
                    position,
                    uint8(pending.value & 0xFF),
                    pending
                );
                pending.value = 0;
                pending.bits = 0;
            }
        }

        return (position, pending);
    }

    function writeChunked(
        bytes memory buffer,
        uint32 position,
        uint8 value,
        Pending memory pending
    ) private pure returns (uint32) {
        position = writeByte(buffer, position, value);
        pending.chunkSize++;

        if (pending.chunkSize == 255) {
            buffer[position - 256] = bytes1(uint8(255));
            pending.chunkSize = 0;
            position = writeByte(buffer, position, 0);
        }

        return position;
    }

    function getColorTableIndex(
        bytes memory buffer,
        uint32 colorTableStart,
        uint32 colorCount,
        uint32 target
    ) private pure returns (uint32, uint32) {
        if (target >> 24 != 0xFF) return (colorCount, 0);

        uint32 i = 1;
        for (; i < colorCount; i++) {
            if (uint8(buffer[colorTableStart + i * 3 + 0]) != uint8(target >> 16)
            ) continue;
            if (uint8(buffer[colorTableStart + i * 3 + 1]) != uint8(target >> 8)
            ) continue;
            if (uint8(buffer[colorTableStart + i * 3 + 2]) != uint8(target >> 0)
            ) continue;
            return (colorCount, i);
        }

        if (colorCount == 256) {
            return (
                colorCount,
                getColorTableBestMatch(
                    buffer,
                    colorTableStart,
                    colorCount,
                    target
                )
            );
        } else {
            buffer[colorTableStart + colorCount * 3 + 0] = bytes1(uint8(target >> 16));
            buffer[colorTableStart + colorCount * 3 + 1] = bytes1(uint8(target >> 8));
            buffer[colorTableStart + colorCount * 3 + 2] = bytes1(uint8(target >> 0));
            return (colorCount + 1, colorCount);
        }
    }

    function getColorTableBestMatch(
        bytes memory buffer,
        uint32 colorTableStart,
        uint32 colorCount,
        uint32 target
    ) private pure returns (uint32) {
        uint32 bestDistance = type(uint32).max;
        uint32 bestIndex = 0;

        for (uint32 i = 1; i < colorCount; i++) {
            uint32 distance;
            {
                uint8 rr = uint8(buffer[colorTableStart + i * 3 + 0]) - uint8(target >> 16);
                uint8 gg = uint8(buffer[colorTableStart + i * 3 + 1]) - uint8(target >> 8);
                uint8 bb = uint8(buffer[colorTableStart + i * 3 + 2]) - uint8(target >> 0);
                distance = rr * rr + gg * gg + bb * bb;
            }
            if (distance < bestDistance) {
                bestDistance = distance;
                bestIndex = i;
            }
        }

        return bestIndex;
    }

    function max(uint32 val1, uint32 val2) private pure returns (uint32) {
        return (val1 >= val2) ? val1 : val2;
    }

    function min(uint32 val1, uint32 val2) private pure returns (uint32) {
        return (val1 <= val2) ? val1 : val2;
    }

    function min(int32 val1, int32 val2) private pure returns (int32) {
        return (val1 <= val2) ? val1 : val2;
    }
}
// File: contracts/lib/Base64.sol



// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;

/// @title Base64
/// @author Brecht Devos - <brecht@loopring.org>
/// @notice Provides a function for encoding some bytes in base64
library Base64 {
    string internal constant TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';

    function encode(bytes memory data, uint length) internal pure returns (string memory) {
        if (data.length == 0 || length == 0) return '';
        
        // load the table into memory
        string memory table = TABLE;

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((length + 2) / 3);

        // add some extra buffer at the end required for the writing
        string memory result = new string(encodedLen + 32);

        assembly {
            // set the actual output length
            mstore(result, encodedLen)
            
            // prepare the lookup table
            let tablePtr := add(table, 1)
            
            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))
            
            // result ptr, jump over length
            let resultPtr := add(result, 32)
            
            // run over the input, 3 bytes at a time
            for {} lt(dataPtr, endPtr) {}
            {
               dataPtr := add(dataPtr, 3)
               
               // read 3 bytes
               let input := mload(dataPtr)
               
               // write 4 characters
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F)))))
               resultPtr := add(resultPtr, 1)
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F)))))
               resultPtr := add(resultPtr, 1)
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr( 6, input), 0x3F)))))
               resultPtr := add(resultPtr, 1)
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(        input,  0x3F)))))
               resultPtr := add(resultPtr, 1)
            }
            
            // padding with '='
            switch mod(mload(data), 3)
            case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) }
            case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) }
        }
        
        return result;
    }
}
// File: contracts/IGIFEncoder.sol



// SPDX-License-Identifier: CC0-1.0

pragma solidity ^0.8.13;

import "./GIF.sol";

interface IGIFEncoder {
    function getDataUri(GIF memory gif) external pure returns (string memory);
}
// File: contracts/GIF.sol



// SPDX-License-Identifier: CC0-1.0

pragma solidity ^0.8.13;

import "./GIFFrame.sol";

struct GIF {
    uint32 frameCount;
    GIFFrame[] frames;
    uint16 width;
    uint16 height;
}

    
// File: contracts/lib/InflateLib.sol



// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.13;

/// @notice Based on https://github.com/madler/zlib/blob/master/contrib/puff
library InflateLib {
    // Maximum bits in a code
    uint256 constant MAXBITS = 15;
    // Maximum number of literal/length codes
    uint256 constant MAXLCODES = 286;
    // Maximum number of distance codes
    uint256 constant MAXDCODES = 30;
    // Maximum codes lengths to read
    uint256 constant MAXCODES = (MAXLCODES + MAXDCODES);
    // Number of fixed literal/length codes
    uint256 constant FIXLCODES = 288;

    // Error codes
    enum ErrorCode {
        ERR_NONE, // 0 successful inflate
        ERR_NOT_TERMINATED, // 1 available inflate data did not terminate
        ERR_OUTPUT_EXHAUSTED, // 2 output space exhausted before completing inflate
        ERR_INVALID_BLOCK_TYPE, // 3 invalid block type (type == 3)
        ERR_STORED_LENGTH_NO_MATCH, // 4 stored block length did not match one's complement
        ERR_TOO_MANY_LENGTH_OR_DISTANCE_CODES, // 5 dynamic block code description: too many length or distance codes
        ERR_CODE_LENGTHS_CODES_INCOMPLETE, // 6 dynamic block code description: code lengths codes incomplete
        ERR_REPEAT_NO_FIRST_LENGTH, // 7 dynamic block code description: repeat lengths with no first length
        ERR_REPEAT_MORE, // 8 dynamic block code description: repeat more than specified lengths
        ERR_INVALID_LITERAL_LENGTH_CODE_LENGTHS, // 9 dynamic block code description: invalid literal/length code lengths
        ERR_INVALID_DISTANCE_CODE_LENGTHS, // 10 dynamic block code description: invalid distance code lengths
        ERR_MISSING_END_OF_BLOCK, // 11 dynamic block code description: missing end-of-block code
        ERR_INVALID_LENGTH_OR_DISTANCE_CODE, // 12 invalid literal/length or distance code in fixed or dynamic block
        ERR_DISTANCE_TOO_FAR, // 13 distance is too far back in fixed or dynamic block
        ERR_CONSTRUCT // 14 internal: error in construct()
    }

    // Input and output state
    struct State {
        //////////////////
        // Output state //
        //////////////////
        // Output buffer
        bytes output;
        // Bytes written to out so far
        uint256 outcnt;
        /////////////////
        // Input state //
        /////////////////
        // Input buffer
        bytes input;
        // Bytes read so far
        uint256 incnt;
        ////////////////
        // Temp state //
        ////////////////
        // Bit buffer
        uint256 bitbuf;
        // Number of bits in bit buffer
        uint256 bitcnt;
        //////////////////////////
        // Static Huffman codes //
        //////////////////////////
        Huffman lencode;
        Huffman distcode;
    }

    // Huffman code decoding tables
    struct Huffman {
        uint256[] counts;
        uint256[] symbols;
    }

    function bits(State memory s, uint256 need)
        private
        pure
        returns (ErrorCode, uint256)
    {
        // Bit accumulator (can use up to 20 bits)
        uint256 val;

        // Load at least need bits into val
        val = s.bitbuf;
        while (s.bitcnt < need) {
            if (s.incnt == s.input.length) {
                // Out of input
                return (ErrorCode.ERR_NOT_TERMINATED, 0);
            }

            // Load eight bits
            val |= uint256(uint8(s.input[s.incnt++])) << s.bitcnt;
            s.bitcnt += 8;
        }

        // Drop need bits and update buffer, always zero to seven bits left
        s.bitbuf = val >> need;
        s.bitcnt -= need;

        // Return need bits, zeroing the bits above that
        uint256 ret = (val & ((1 << need) - 1));
        return (ErrorCode.ERR_NONE, ret);
    }

    function _stored(State memory s) private pure returns (ErrorCode) {
        // Length of stored block
        uint256 len;

        // Discard leftover bits from current byte (assumes s.bitcnt < 8)
        s.bitbuf = 0;
        s.bitcnt = 0;

        // Get length and check against its one's complement
        if (s.incnt + 4 > s.input.length) {
            // Not enough input
            return ErrorCode.ERR_NOT_TERMINATED;
        }
        len = uint256(uint8(s.input[s.incnt++]));
        len |= uint256(uint8(s.input[s.incnt++])) << 8;

        if (
            uint8(s.input[s.incnt++]) != (~len & 0xFF) ||
            uint8(s.input[s.incnt++]) != ((~len >> 8) & 0xFF)
        ) {
            // Didn't match complement!
            return ErrorCode.ERR_STORED_LENGTH_NO_MATCH;
        }

        // Copy len bytes from in to out
        if (s.incnt + len > s.input.length) {
            // Not enough input
            return ErrorCode.ERR_NOT_TERMINATED;
        }
        if (s.outcnt + len > s.output.length) {
            // Not enough output space
            return ErrorCode.ERR_OUTPUT_EXHAUSTED;
        }
        while (len != 0) {
            // Note: Solidity reverts on underflow, so we decrement here
            len -= 1;
            s.output[s.outcnt++] = s.input[s.incnt++];
        }

        // Done with a valid stored block
        return ErrorCode.ERR_NONE;
    }

    function _decode(State memory s, Huffman memory h)
        private
        pure
        returns (ErrorCode, uint256)
    {
        // Current number of bits in code
        uint256 len;
        // Len bits being decoded
        uint256 code = 0;
        // First code of length len
        uint256 first = 0;
        // Number of codes of length len
        uint256 count;
        // Index of first code of length len in symbol table
        uint256 index = 0;
        // Error code
        ErrorCode err;

        for (len = 1; len <= MAXBITS; len++) {
            // Get next bit
            uint256 tempCode;
            (err, tempCode) = bits(s, 1);
            if (err != ErrorCode.ERR_NONE) {
                return (err, 0);
            }
            code |= tempCode;
            count = h.counts[len];

            // If length len, return symbol
            if (code < first + count) {
                return (ErrorCode.ERR_NONE, h.symbols[index + (code - first)]);
            }
            // Else update for next length
            index += count;
            first += count;
            first <<= 1;
            code <<= 1;
        }

        // Ran out of codes
        return (ErrorCode.ERR_INVALID_LENGTH_OR_DISTANCE_CODE, 0);
    }

    function _construct(
        Huffman memory h,
        uint256[] memory lengths,
        uint256 n,
        uint256 start
    ) private pure returns (ErrorCode) {
        // Current symbol when stepping through lengths[]
        uint256 symbol;
        // Current length when stepping through h.counts[]
        uint256 len;
        // Number of possible codes left of current length
        uint256 left;
        // Offsets in symbol table for each length
        uint256[MAXBITS + 1] memory offs;

        // Count number of codes of each length
        for (len = 0; len <= MAXBITS; len++) {
            h.counts[len] = 0;
        }
        for (symbol = 0; symbol < n; symbol++) {
            // Assumes lengths are within bounds
            h.counts[lengths[start + symbol]]++;
        }
        // No codes!
        if (h.counts[0] == n) {
            // Complete, but decode() will fail
            return (ErrorCode.ERR_NONE);
        }

        // Check for an over-subscribed or incomplete set of lengths

        // One possible code of zero length
        left = 1;

        for (len = 1; len <= MAXBITS; len++) {
            // One more bit, double codes left
            left <<= 1;
            if (left < h.counts[len]) {
                // Over-subscribed--return error
                return ErrorCode.ERR_CONSTRUCT;
            }
            // Deduct count from possible codes

            left -= h.counts[len];
        }

        // Generate offsets into symbol table for each length for sorting
        offs[1] = 0;
        for (len = 1; len < MAXBITS; len++) {
            offs[len + 1] = offs[len] + h.counts[len];
        }

        // Put symbols in table sorted by length, by symbol order within each length
        for (symbol = 0; symbol < n; symbol++) {
            if (lengths[start + symbol] != 0) {
                h.symbols[offs[lengths[start + symbol]]++] = symbol;
            }
        }

        // Left > 0 means incomplete
        return left > 0 ? ErrorCode.ERR_CONSTRUCT : ErrorCode.ERR_NONE;
    }

    function _codes(
        State memory s,
        Huffman memory lencode,
        Huffman memory distcode
    ) private pure returns (ErrorCode) {
        // Decoded symbol
        uint256 symbol;
        // Length for copy
        uint256 len;
        // Distance for copy
        uint256 dist;
        // TODO Solidity doesn't support constant arrays, but these are fixed at compile-time
        // Size base for length codes 257..285
        uint16[29] memory lens =
            [
                3,
                4,
                5,
                6,
                7,
                8,
                9,
                10,
                11,
                13,
                15,
                17,
                19,
                23,
                27,
                31,
                35,
                43,
                51,
                59,
                67,
                83,
                99,
                115,
                131,
                163,
                195,
                227,
                258
            ];
        // Extra bits for length codes 257..285
        uint8[29] memory lext =
            [
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                1,
                1,
                1,
                1,
                2,
                2,
                2,
                2,
                3,
                3,
                3,
                3,
                4,
                4,
                4,
                4,
                5,
                5,
                5,
                5,
                0
            ];
        // Offset base for distance codes 0..29
        uint16[30] memory dists =
            [
                1,
                2,
                3,
                4,
                5,
                7,
                9,
                13,
                17,
                25,
                33,
                49,
                65,
                97,
                129,
                193,
                257,
                385,
                513,
                769,
                1025,
                1537,
                2049,
                3073,
                4097,
                6145,
                8193,
                12289,
                16385,
                24577
            ];
        // Extra bits for distance codes 0..29
        uint8[30] memory dext =
            [
                0,
                0,
                0,
                0,
                1,
                1,
                2,
                2,
                3,
                3,
                4,
                4,
                5,
                5,
                6,
                6,
                7,
                7,
                8,
                8,
                9,
                9,
                10,
                10,
                11,
                11,
                12,
                12,
                13,
                13
            ];
        // Error code
        ErrorCode err;

        // Decode literals and length/distance pairs
        while (symbol != 256) {
            (err, symbol) = _decode(s, lencode);
            if (err != ErrorCode.ERR_NONE) {
                // Invalid symbol
                return err;
            }

            if (symbol < 256) {
                // Literal: symbol is the byte
                // Write out the literal
                if (s.outcnt == s.output.length) {
                    return ErrorCode.ERR_OUTPUT_EXHAUSTED;
                }
                s.output[s.outcnt] = bytes1(uint8(symbol));
                s.outcnt++;
            } else if (symbol > 256) {
                uint256 tempBits;
                // Length
                // Get and compute length
                symbol -= 257;
                if (symbol >= 29) {
                    // Invalid fixed code
                    return ErrorCode.ERR_INVALID_LENGTH_OR_DISTANCE_CODE;
                }

                (err, tempBits) = bits(s, lext[symbol]);
                if (err != ErrorCode.ERR_NONE) {
                    return err;
                }
                len = lens[symbol] + tempBits;

                // Get and check distance
                (err, symbol) = _decode(s, distcode);
                if (err != ErrorCode.ERR_NONE) {
                    // Invalid symbol
                    return err;
                }
                (err, tempBits) = bits(s, dext[symbol]);
                if (err != ErrorCode.ERR_NONE) {
                    return err;
                }
                dist = dists[symbol] + tempBits;
                if (dist > s.outcnt) {
                    // Distance too far back
                    return ErrorCode.ERR_DISTANCE_TOO_FAR;
                }

                // Copy length bytes from distance bytes back
                if (s.outcnt + len > s.output.length) {
                    return ErrorCode.ERR_OUTPUT_EXHAUSTED;
                }
                while (len != 0) {
                    // Note: Solidity reverts on underflow, so we decrement here
                    len -= 1;
                    s.output[s.outcnt] = s.output[s.outcnt - dist];
                    s.outcnt++;
                }
            } else {
                s.outcnt += len;
            }
        }

        // Done with a valid fixed or dynamic block
        return ErrorCode.ERR_NONE;
    }

    function _build_fixed(State memory s) private pure returns (ErrorCode) {
        // Build fixed Huffman tables
        // TODO this is all a compile-time constant
        uint256 symbol;
        uint256[] memory lengths = new uint256[](FIXLCODES);

        // Literal/length table
        for (symbol = 0; symbol < 144; symbol++) {
            lengths[symbol] = 8;
        }
        for (; symbol < 256; symbol++) {
            lengths[symbol] = 9;
        }
        for (; symbol < 280; symbol++) {
            lengths[symbol] = 7;
        }
        for (; symbol < FIXLCODES; symbol++) {
            lengths[symbol] = 8;
        }

        _construct(s.lencode, lengths, FIXLCODES, 0);

        // Distance table
        for (symbol = 0; symbol < MAXDCODES; symbol++) {
            lengths[symbol] = 5;
        }

        _construct(s.distcode, lengths, MAXDCODES, 0);

        return ErrorCode.ERR_NONE;
    }

    function _fixed(State memory s) private pure returns (ErrorCode) {
        // Decode data until end-of-block code
        return _codes(s, s.lencode, s.distcode);
    }

    function _build_dynamic_lengths(State memory s)
        private
        pure
        returns (ErrorCode, uint256[] memory)
    {
        uint256 ncode;
        // Index of lengths[]
        uint256 index;
        // Descriptor code lengths
        uint256[] memory lengths = new uint256[](MAXCODES);
        // Error code
        ErrorCode err;
        // Permutation of code length codes
        uint8[19] memory order =
            [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];

        (err, ncode) = bits(s, 4);
        if (err != ErrorCode.ERR_NONE) {
            return (err, lengths);
        }
        ncode += 4;

        // Read code length code lengths (really), missing lengths are zero
        for (index = 0; index < ncode; index++) {
            (err, lengths[order[index]]) = bits(s, 3);
            if (err != ErrorCode.ERR_NONE) {
                return (err, lengths);
            }
        }
        for (; index < 19; index++) {
            lengths[order[index]] = 0;
        }

        return (ErrorCode.ERR_NONE, lengths);
    }

    function _build_dynamic(State memory s)
        private
        pure
        returns (
            ErrorCode,
            Huffman memory,
            Huffman memory
        )
    {
        // Number of lengths in descriptor
        uint256 nlen;
        uint256 ndist;
        // Index of lengths[]
        uint256 index;
        // Error code
        ErrorCode err;
        // Descriptor code lengths
        uint256[] memory lengths = new uint256[](MAXCODES);
        // Length and distance codes
        Huffman memory lencode =
            Huffman(new uint256[](MAXBITS + 1), new uint256[](MAXLCODES));
        Huffman memory distcode =
            Huffman(new uint256[](MAXBITS + 1), new uint256[](MAXDCODES));
        uint256 tempBits;

        // Get number of lengths in each table, check lengths
        (err, nlen) = bits(s, 5);
        if (err != ErrorCode.ERR_NONE) {
            return (err, lencode, distcode);
        }
        nlen += 257;
        (err, ndist) = bits(s, 5);
        if (err != ErrorCode.ERR_NONE) {
            return (err, lencode, distcode);
        }
        ndist += 1;

        if (nlen > MAXLCODES || ndist > MAXDCODES) {
            // Bad counts
            return (
                ErrorCode.ERR_TOO_MANY_LENGTH_OR_DISTANCE_CODES,
                lencode,
                distcode
            );
        }

        (err, lengths) = _build_dynamic_lengths(s);
        if (err != ErrorCode.ERR_NONE) {
            return (err, lencode, distcode);
        }

        // Build huffman table for code lengths codes (use lencode temporarily)
        err = _construct(lencode, lengths, 19, 0);
        if (err != ErrorCode.ERR_NONE) {
            // Require complete code set here
            return (
                ErrorCode.ERR_CODE_LENGTHS_CODES_INCOMPLETE,
                lencode,
                distcode
            );
        }

        // Read length/literal and distance code length tables
        index = 0;
        while (index < nlen + ndist) {
            // Decoded value
            uint256 symbol;
            // Last length to repeat
            uint256 len;

            (err, symbol) = _decode(s, lencode);
            if (err != ErrorCode.ERR_NONE) {
                // Invalid symbol
                return (err, lencode, distcode);
            }

            if (symbol < 16) {
                // Length in 0..15
                lengths[index++] = symbol;
            } else {
                // Repeat instruction
                // Assume repeating zeros
                len = 0;
                if (symbol == 16) {
                    // Repeat last length 3..6 times
                    if (index == 0) {
                        // No last length!
                        return (
                            ErrorCode.ERR_REPEAT_NO_FIRST_LENGTH,
                            lencode,
                            distcode
                        );
                    }
                    // Last length
                    len = lengths[index - 1];
                    (err, tempBits) = bits(s, 2);
                    if (err != ErrorCode.ERR_NONE) {
                        return (err, lencode, distcode);
                    }
                    symbol = 3 + tempBits;
                } else if (symbol == 17) {
                    // Repeat zero 3..10 times
                    (err, tempBits) = bits(s, 3);
                    if (err != ErrorCode.ERR_NONE) {
                        return (err, lencode, distcode);
                    }
                    symbol = 3 + tempBits;
                } else {
                    // == 18, repeat zero 11..138 times
                    (err, tempBits) = bits(s, 7);
                    if (err != ErrorCode.ERR_NONE) {
                        return (err, lencode, distcode);
                    }
                    symbol = 11 + tempBits;
                }

                if (index + symbol > nlen + ndist) {
                    // Too many lengths!
                    return (ErrorCode.ERR_REPEAT_MORE, lencode, distcode);
                }
                while (symbol != 0) {
                    // Note: Solidity reverts on underflow, so we decrement here
                    symbol -= 1;

                    // Repeat last or zero symbol times
                    lengths[index++] = len;
                }
            }
        }

        // Check for end-of-block code -- there better be one!
        if (lengths[256] == 0) {
            return (ErrorCode.ERR_MISSING_END_OF_BLOCK, lencode, distcode);
        }

        // Build huffman table for literal/length codes
        err = _construct(lencode, lengths, nlen, 0);
        if (
            err != ErrorCode.ERR_NONE &&
            (err == ErrorCode.ERR_NOT_TERMINATED ||
                err == ErrorCode.ERR_OUTPUT_EXHAUSTED ||
                nlen != lencode.counts[0] + lencode.counts[1])
        ) {
            // Incomplete code ok only for single length 1 code
            return (
                ErrorCode.ERR_INVALID_LITERAL_LENGTH_CODE_LENGTHS,
                lencode,
                distcode
            );
        }

        // Build huffman table for distance codes
        err = _construct(distcode, lengths, ndist, nlen);
        if (
            err != ErrorCode.ERR_NONE &&
            (err == ErrorCode.ERR_NOT_TERMINATED ||
                err == ErrorCode.ERR_OUTPUT_EXHAUSTED ||
                ndist != distcode.counts[0] + distcode.counts[1])
        ) {
            // Incomplete code ok only for single length 1 code
            return (
                ErrorCode.ERR_INVALID_DISTANCE_CODE_LENGTHS,
                lencode,
                distcode
            );
        }

        return (ErrorCode.ERR_NONE, lencode, distcode);
    }

    function _dynamic(State memory s) private pure returns (ErrorCode) {
        // Length and distance codes
        Huffman memory lencode;
        Huffman memory distcode;
        // Error code
        ErrorCode err;

        (err, lencode, distcode) = _build_dynamic(s);
        if (err != ErrorCode.ERR_NONE) {
            return err;
        }

        // Decode data until end-of-block code
        return _codes(s, lencode, distcode);
    }

    function puff(bytes memory source, uint256 destlen)
        internal
        pure
        returns (ErrorCode, bytes memory)
    {
        // Input/output state
        State memory s =
            State(
                new bytes(destlen),
                0,
                source,
                0,
                0,
                0,
                Huffman(new uint256[](MAXBITS + 1), new uint256[](FIXLCODES)),
                Huffman(new uint256[](MAXBITS + 1), new uint256[](MAXDCODES))
            );
        // Temp: last bit
        uint256 last;
        // Temp: block type bit
        uint256 t;
        // Error code
        ErrorCode err;

        // Build fixed Huffman tables
        err = _build_fixed(s);
        if (err != ErrorCode.ERR_NONE) {
            return (err, s.output);
        }

        // Process blocks until last block or error
        while (last == 0) {
            // One if last block
            (err, last) = bits(s, 1);
            if (err != ErrorCode.ERR_NONE) {
                return (err, s.output);
            }

            // Block type 0..3
            (err, t) = bits(s, 2);
            if (err != ErrorCode.ERR_NONE) {
                return (err, s.output);
            }

            err = (
                t == 0
                    ? _stored(s)
                    : (
                        t == 1
                            ? _fixed(s)
                            : (
                                t == 2
                                    ? _dynamic(s)
                                    : ErrorCode.ERR_INVALID_BLOCK_TYPE
                            )
                    )
            );
            // type == 3, invalid

            if (err != ErrorCode.ERR_NONE) {
                // Return with error
                break;
            }
        }

        return (err, s.output);
    }
}
// File: contracts/Errors.sol



// SPDX-License-Identifier: CC0-1.0

pragma solidity ^0.8.13;

error UnsupportedDrawInstruction(uint8 instructionType);
error DoNotAddBlackToColorTable();
error InvalidDrawOrder(uint8 featureId);
error FailedToDecompress(uint errorCode);
error InvalidDecompressionLength(uint expected, uint actual);
error ImageFileOutOfRange(uint value);
error TraitOutOfRange(uint value);
error BadTraitCount(uint8 value);
error BadTraitChoice(uint8 value);
// File: contracts/IPixelRenderer.sol



// SPDX-License-Identifier: CC0-1.0

pragma solidity ^0.8.13;

import "./DrawFrame.sol";

interface IPixelRenderer {
    function drawFrameWithOffsets(DrawFrame memory f) external pure returns (uint32[] memory buffer, uint);
    function getColorTable(bytes memory buffer, uint position) external pure returns(uint32[] memory colors, uint);
}
// File: contracts/DrawFrame.sol



// SPDX-License-Identifier: CC0-1.0

pragma solidity ^0.8.13;

import "./GIFFrame.sol";

struct DrawFrame {
    bytes buffer;
    uint position;
    GIFFrame frame;
    uint32[] colors;
    uint8 ox;
    uint8 oy;
    bool blend;
}