// File: contracts/MaA.sol



// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/// @title: MIKA animal ART
/// @author: manifold.xyz

import "./manifold/ERC721Creator.sol";

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   //
//                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   //
//    [size=9px][font=monospace][color=#808080] [/color]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             //
//    [color=#808080]                              [/color][color=#777777]_[/color][color=#717270]_[/color][color=#6c6f69]_[/color][color=#6a6d66]▄[/color][color=#676964]▄_▄▄▄[/color][color=#727271]_[/color][color=#787877]_[/color]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              //
//    [color=#808080]                       [/color][color=#6f706e]_[/color][color=#5f6c52]▄[/color][color=#546e3a]æ[/color][color=#4c6c2a]@[/color][color=#477219]█[/color][color=#2c4e31]█[/color][color=#3a513d]▓[/color][color=#4c6907]█[/color][color=#4c680e]█[/color][color=#3f600b]█[/color][color=#3f6806]██[/color][color=#364c0d]█[/color][color=#122002]██[/color][color=#38640b]█[/color][color=#356703]███[/color][color=#30540b]█[/color][color=#324f15]█[/color][color=#44542b]█[/color][color=#3a442e]█[/color][color=#505b40]æ[/color][color=#5f6a52]╦[/color][color=#656e5c]▄[/color][color=#6d6f6b]_    [/color][color=#787878]_[/color]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         //
//    [color=#808080]                    [/color][color=#67705e]▄[/color][color=#485b4e]¢[/color][color=#37555f]▀[/color][color=#355b60]▀[/color][color=#1f3916]█[/color][color=#1b3105]█[/color][color=#162402]█[/color][color=#2c5301]█[/color][color=#3a6b07]█[/color][color=#4a8108]█[/color][color=#4b8908]██[/color][color=#478a02]██[/color][color=#3d7201]█[/color][color=#243d06]█[/color][color=#4b770b]█[/color][color=#508707]█[/color][color=#559c0c]█[/color][color=#589c10]▒[/color][color=#65a60f]▓▒[/color][color=#589406]█[/color][color=#4c8b07]█[/color][color=#375510]█[/color][color=#3b6207]█[/color][color=#4d810b]█[/color][color=#5d9411]▒[/color][color=#67a011]▓[/color][color=#73a412]▓[/color][color=#598c0e]█[/color][color=#457910]█[/color][color=#4d7425]▓[/color][color=#506b34]@[/color][color=#325954]▓[/color][color=#354d4a]░[/color][color=#586062]▄[/color][color=#556573]p[/color]                                                                                                                                                                                                                                                                                                                         //
//    [color=#808080]                 [/color][color=#69705f]▄[/color][color=#718236]«[/color][color=#7fa813]▄[/color][color=#56990b]█[/color][color=#1f3e37]█[/color][color=#2b4734]█[/color][color=#3f6221]█[/color][color=#395010]█[/color][color=#2e5102]█[/color][color=#4c7d07]█[/color][color=#509109]█[/color][color=#58920e]█[/color][color=#609a10]▒[/color][color=#65a312]▓▒[/color][color=#55a00b]█[/color][color=#4a9004]█[/color][color=#264003]█[/color][color=#5d8007]█[/color][color=#709912]▓[/color][color=#6baf13]░[/color][color=#69b916]░[/color][color=#75ae16]░[/color][color=#97bb17]d[/color][color=#75a30f]▓[/color][color=#569c08]█[/color][color=#396807]█[/color][color=#518209]█[/color][color=#659c14]▓[/color][color=#68ac15]░▌[/color][color=#6cae18]M[/color][color=#77af1b]╣[/color][color=#80b61e]▐[/color][color=#6dae15]@[/color][color=#7aae16]░[/color][color=#86a813]@[/color][color=#88a210]▓[/color][color=#72950a]█[/color][color=#56850a]█[/color][color=#4e7c09]█[/color][color=#3e6d0d]█[/color][color=#4a692a]@[/color][color=#596b47]╦[/color][color=#60665a]▄[/color][color=#6f6f6f]_[/color]                                                                                                     //
//    [color=#808080]               [/color][color=#59654d]▄[/color][color=#32550f]█[/color][color=#3e720a]█[/color][color=#2e4d0b]█[/color][color=#203902]██[/color][color=#406809]█[/color][color=#335600]█[/color][color=#1e3b00]█[/color][color=#3f690f]█[/color][color=#599008]█[/color][color=#5da110]▓[/color][color=#60a112]▓▒[/color][color=#60a815]▓[/color][color=#65b613]@[/color][color=#62b410]▓[/color][color=#539b0b]█[/color][color=#2a5005]█[/color][color=#4a8807]█[/color][color=#72a412]▓[/color][color=#86b715]░[/color][color=#70bb15]░[/color][color=#63a915]╣[/color][color=#77b51b]M[/color][color=#8ab318]▐[/color][color=#78a213]@[/color][color=#488405]█[/color][color=#516f11]█[/color][color=#5c8e0a]█[/color][color=#5c8c0c]██[/color][color=#4c7c13]█[/color][color=#58791c]▒[/color][color=#5a782c]╝[/color][color=#58723a]▀[/color][color=#5c6e48]▀[/color][color=#626d4f]▀[/color][color=#636859]▀[/color][color=#62665d]▀[/color][color=#62665f]~~▀[/color][color=#606759]▀[/color][color=#5c6851]▀[/color][color=#546643]▀[/color][color=#4a6232]╨[/color][color=#3a551d]█[/color][color=#293d15]█[/color][color=#3c4c2d]█[/color][color=#495141]m[/color][color=#5e5f5e]▄[/color][color=#797979]_[/color]    //
//    [color=#808080]             [/color][color=#6d706a]╓[/color][color=#4e7f19]█[/color][color=#57900d]█[/color][color=#447707]█[/color][color=#2a4b08]███[/color][color=#4b850a]█[/color][color=#3f6d06]█[/color][color=#2c5302]█[/color][color=#2f5003]█[/color][color=#73a712]▓[/color][color=#68ab15]░▓[/color][color=#63ad16]╣M@[/color][color=#62b010]▓[/color][color=#5fad10]▓[/color][color=#4a890a]█[/color][color=#2f5803]█[/color][color=#68a311]▓[/color][color=#8fb216]╣[/color][color=#7dbb12]░[/color][color=#6bad14]@[/color][color=#60a112]▓@[/color][color=#689f12]▓[/color][color=#4f9006]█[/color][color=#407305]█[/color][color=#385c0e]█[/color][color=#4a5b34]╝[/color][color=#596050]▀                   [/color][color=#5f615d]~[/color][color=#556347]▀[/color][color=#3b4a2a]Ñ[/color][color=#2a391a]█[/color][color=#424f34]@[/color][color=#565853]▄[/color][color=#717170]_      [/color][color=#6e6e6e]_[/color][color=#32441e]█[/color]                                                                                                                                                                                                                                                                            //
//    [color=#808080]            [/color][color=#5d6b4a]æ[/color][color=#67a810]▓[/color][color=#6aa20f]@[/color][color=#325107]█[/color][color=#3c5e15]█[/color][color=#5e890f]█[/color][color=#628f16]▓[/color][color=#5b9e10]▒[/color][color=#589f10]▒[/color][color=#407509]█[/color][color=#1f3a02]█[/color][color=#5c900c]█[/color][color=#7bb718]M[/color][color=#74b917]▌[/color][color=#70bd16]░M[/color][color=#64b215]@[/color][color=#5d980c]█[/color][color=#6eae11]▓[/color][color=#72bd0f]@[/color][color=#427b08]█[/color][color=#4e8309]█[/color][color=#65980c]▒[/color][color=#71a00e]▓[/color][color=#679e11]▓[/color][color=#579314]▒[/color][color=#54980e]█[/color][color=#3f7705]█[/color][color=#425d26]█[/color][color=#575f4e]▀                           [/color][color=#355a71]▀[/color][color=#384b31]█[/color][color=#2c4016]█[/color][color=#3b4d1d]█[/color][color=#3d4928]█[/color][color=#4d5247]▄[/color][color=#676767]▄[/color][color=#7c7c7c]_[/color][color=#545452]▄[/color][color=#2f4508]█[/color][color=#587014]█[/color]                                                                                                                                                                                //
//    [color=#808080]           [/color][color=#4e662a]@[/color][color=#6fa010]▓[/color][color=#5b840a]█[/color][color=#223b05]█[/color][color=#4b7d15]█[/color][color=#638d0c]█[/color][color=#85a513]@[/color][color=#729a12]▓[/color][color=#66b613]Ñ[/color][color=#5aa112]▓[/color][color=#3a640e]█[/color][color=#538a05]█[/color][color=#80a510]▓[/color][color=#84b519]╣[/color][color=#8cc317]▐[/color][color=#6ab014]@[/color][color=#66ad1c]░[/color][color=#5f990f]▒[/color][color=#678c0b]█[/color][color=#8bb312]▌[/color][color=#6bae0d]▓[/color][color=#497d11]▒[/color][color=#508108]█[/color][color=#5f8e0a]█[/color][color=#4f840d]█[/color][color=#427808]█[/color][color=#395918]█[/color][color=#4f5a44]▀                                [/color][color=#39698b]L[/color][color=#224a5b]█[/color][color=#32570c]█[/color][color=#5c890d]█[/color][color=#719d12]@[/color][color=#619311]▒[/color][color=#4e7a0b]█[/color][color=#496e09]█[/color][color=#395c03]█[/color]                                                                                                                                                                                                                                                     //
//    [color=#808080]         [/color][color=#6b6e67]╓[/color][color=#40680e]█[/color][color=#5e8a0a]█[/color][color=#3f5e03]█[/color][color=#304c05]█[/color][color=#2b4e06]█[/color][color=#699f10]▓[/color][color=#94b315]▀[/color][color=#84aa13]░[/color][color=#7cbb18]▌[/color][color=#70c616]M[/color][color=#59a111]▓[/color][color=#2e5803]█[/color][color=#769f0b]▓[/color][color=#91a911]@[/color][color=#8bb21d]Y[/color][color=#7bb214]░[/color][color=#5d970e]▒[/color][color=#609e15]▓█[/color][color=#72a70f]▓[/color][color=#71990f]@[/color][color=#3a6c2e]M[/color][color=#3c6a0e]█[/color][color=#49740a]█[/color][color=#396704]█[/color][color=#41532e]P[/color][color=#60625e]▀       [/color][color=#706e6e]╓[/color][color=#7d4d51]ñ[/color][color=#a2304b]▀[/color][color=#a42f4f]½[/color][color=#744d53]m                      [/color][color=#506d81]╧[/color][color=#4a677d]╩[/color][color=#696d70]'[/color][color=#28331e]▒[/color][color=#457507]█[/color][color=#609317]▌[/color][color=#84c31c]▀[/color][color=#9bb817]▐[/color][color=#6b8c0c]█[/color]                                                                                                                                                         //
//    [color=#808080]        [/color][color=#616958]╔[/color][color=#4b6417]█[/color][color=#3c5204]█[/color][color=#405a0d]█[/color][color=#4a6708]█[/color][color=#2c4704]█[/color][color=#56890a]█[/color][color=#97b918]▀[/color][color=#94be19]ÿ[/color][color=#aac718]▀[/color][color=#82b716]▐[/color][color=#60a411]▓[/color][color=#58920f]█[/color][color=#3c6407]█[/color][color=#84a00e]▓[/color][color=#93b513]░[/color][color=#8cae12]░[/color][color=#649811]▓[/color][color=#518609]█[/color][color=#58980c]█[/color][color=#659c0c]▒[/color][color=#6b9508]█[/color][color=#39585e]▌[/color][color=#44698a]▐[/color][color=#273b28]█[/color][color=#52594b]▀          [/color][color=#3f271c]█[/color][color=#ae0d08]█[/color][color=#7e2b0a]█[/color][color=#881d05]█[/color][color=#9c190c]█[/color][color=#525251]▌     [/color][color=#786e70]_[/color][color=#7c6a71]._               [/color][color=#616261]╔[/color][color=#324307]█[/color][color=#172d00]█[/color][color=#456f0f]█[/color][color=#7fb520]▌[/color][color=#7bbd16]░[/color][color=#538a06]█[/color]                                                                                                                                                         //
//    [color=#808080]      [/color][color=#5c6b78]√[/color][color=#3f587f]Ç[/color][color=#395d7a][[/color][color=#273f46]█[/color][color=#4d6f1e]█[/color][color=#6a8b0d]█[/color][color=#51810d]█[/color][color=#345f04]█[/color][color=#6ea60a]▓[/color][color=#8ab814]#[/color][color=#8fbb17]▐[/color][color=#9dbf16]½[/color][color=#90aa12]▐[/color][color=#7ea611]░[/color][color=#73a00f]▓[/color][color=#58860c]█[/color][color=#548d0b]█[/color][color=#58960a]█[/color][color=#5a8e0f]██[/color][color=#508908]█[/color][color=#457d0b]█[/color][color=#3e6b0c]█[/color][color=#435f27]╝[/color][color=#505948]▀  [/color][color=#747474]τ[/color][color=#87434f]C[/color][color=#b72548]▄[/color][color=#c61b2f]▄[/color][color=#a22d2f]░[/color][color=#6e5757]╕      [/color][color=#807745]▀[/color][color=#887c21]╣[/color][color=#7b6e20]╣[/color][color=#7c754f]▀     [/color][color=#6e2b25]█[/color][color=#c01b13]@[/color][color=#8d2226]@[/color][color=#d51c3a]g[/color][color=#7e3a3b]░             [/color][color=#5c6059]╔[/color][color=#355109]█[/color][color=#41540c]█[/color][color=#355102]█[/color][color=#719310]▓[/color][color=#62910f]▒[/color][color=#46770b]█[/color][color=#456a16]█[/color]               //
//    [color=#808080]     [/color][color=#374d5c]╣[/color][color=#416b8b]▐▄[/color][color=#3b5f0e]█[/color][color=#597e0b]█[/color][color=#659b0a]█[/color][color=#6ca414]▓[/color][color=#63a30e]▓[/color][color=#4a8605]█[/color][color=#497f04]█[/color][color=#5f9205]█[/color][color=#67950b]█[/color][color=#67900a]█[/color][color=#64840d]█[/color][color=#58860b]█[/color][color=#4a7409]█[/color][color=#426a13]█[/color][color=#456325]█[/color][color=#4b6133]╝[/color][color=#556243]▀[/color][color=#5d6352]▀[/color][color=#636562]~      [/color][color=#676262]Σ[/color][color=#a2170d]█[/color][color=#b80404]█[/color][color=#6c3409]█[/color][color=#8a3903]█[/color][color=#844910]█[/color][color=#5e5e5d]L     [/color][color=#757575]τ[/color][color=#9e8915]N[/color][color=#8b7d1f]▐      [/color][color=#78703c]▐[/color][color=#6e5b08]█[/color][color=#76690f]█[/color][color=#83340a]█[/color][color=#563e2e]▀            [/color][color=#454644]▄[/color][color=#335e03]█[/color][color=#557117]█[/color][color=#526713]█[/color][color=#556e0a]█[/color][color=#53760b]██[/color][color=#4a7318]█[/color][color=#364823]█[/color]                                                                                    //
//    [color=#808080]       [/color][color=#61645e]~[/color][color=#5a5d57]▀[/color][color=#616958]▀▀[/color][color=#616c56]▀▀▀▀▀[/color][color=#62655f]~[/color][color=#676767]`                [/color][color=#716e5c]▀[/color][color=#837939]╧[/color][color=#887624]Ñ[/color][color=#aa9609]µ[/color][color=#73621a]█[/color][color=#7a7a79],     [/color][color=#5b5324]█[/color][color=#a43f17]▓[/color][color=#99760d]@[/color][color=#675f3b]▌    [/color][color=#72716e]╓[/color][color=#816e23]@[/color][color=#816e17]▒              [/color][color=#32352f]▒[/color][color=#3d6d06]█[/color][color=#669910]▓[/color][color=#658e14]▒[/color][color=#5b8415]█▒[/color][color=#72a522]M[/color][color=#548a0e]█[/color][color=#384c24]█[/color]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            //
//    [color=#808080]      [/color][color=#6a7477].                              [/color][color=#564f3a]▐[/color][color=#bba11e]▀[/color][color=#ad9610]▀[/color][color=#897e2c]M[/color][color=#797646]╤[/color][color=#7e7c57]▄╦[/color][color=#7e7925]%[/color][color=#c0a50d]▀[/color][color=#8a7a12]▓[/color][color=#b39a17]▌[/color][color=#d6ba05]▀[/color][color=#897d20]@[/color][color=#827e44]╦[/color][color=#7e7b46]╤[/color][color=#8b8329]ñ[/color][color=#baa00b]╝[/color][color=#c4a318]▀[/color][color=#645826]╣             [/color][color=#383935]▐[/color][color=#3e5109]█[/color][color=#4c8008]█[/color][color=#568d0d]█[/color][color=#668e15]@[/color][color=#64891b]@[/color][color=#71a11b]@[/color][color=#5f9613]▐[/color][color=#404f31]▌[/color]                                                                                                                                                                                                                                                                                                                                                                                                                                                                      //
//    [color=#808080]      [/color][color=#6a6c74]~                               [/color][color=#66601c]█[/color][color=#d1d80d]▄[/color][color=#eadb0c]_[/color][color=#e7d307]~[/color][color=#c9c10a]▀[/color][color=#bd9910]▄[/color][color=#e2cc0a]▄[/color][color=#b4a015]▐[/color][color=#367e94]▀[/color][color=#366a53]▐[/color][color=#ddc00d]▄[/color][color=#d4bd10]▄[/color][color=#c9b70c]▄▀[/color][color=#d3bf21]`[/color][color=#cab326]╔[/color][color=#d0a90b]q[/color][color=#686864]L           [/color][color=#585955]▄[/color][color=#585940]╝[/color][color=#726e34]▀[/color][color=#6f6b2e]▄[/color][color=#707526]▄[/color][color=#707823]@[/color][color=#756229]▄[/color][color=#615b22]█[/color][color=#4d6b10]█[/color][color=#3a432e]▌[/color]                                                                                                                                                                                                                                                                                                                                                                                                                                                                       //
//    [color=#808080]     [/color][color=#777777]τ[/color][color=#496377]E                       [/color][color=#535453]▄[/color][color=#4b5343]æ[/color][color=#465537]@[/color][color=#41582b]█[/color][color=#3f5b21]█[/color][color=#445d31]@[/color][color=#444b41]æ[/color][color=#616161]▄[/color][color=#666666]^[/color][color=#855910]█[/color][color=#a26413]╝[/color][color=#b4a519]▀[/color][color=#c9ac13]▀[/color][color=#b66b12]@[/color][color=#b78c05]▓[/color][color=#586626]░[/color][color=#2e93b7]_[/color][color=#2d91b0]φ[/color][color=#9e7c04]█[/color][color=#a87010]▓[/color][color=#ae6f0f]%[/color][color=#caae18]Σ[/color][color=#bfa51f]▄[/color][color=#a4511e]╧[/color][color=#543c0f]█[/color][color=#475244]▄[/color][color=#46603f]ñ[/color][color=#39602c]▒[/color][color=#356619]█[/color][color=#456923]█[/color][color=#3d5722]█[/color][color=#435239]@[/color][color=#545a51]▄ [/color][color=#6c6c6b]_[/color][color=#4c5847]æ[/color][color=#43632e]▀[/color][color=#5a7b25]@[/color][color=#4d6014]█[/color][color=#49660d]█[/color][color=#5e9311]▓[/color][color=#68a61e]▀█[/color][color=#4c760a]█[/color][color=#48760e]█[/color][color=#28311d]█[/color]                                          //
//    [color=#808080]      [/color][color=#4f555d]g                     [/color][color=#424242]æ[/color][color=#211a0c]█[/color][color=#333214]█[/color][color=#3c390c]█[/color][color=#384b09]█[/color][color=#4b7215]█[/color][color=#70a01                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        //
//                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   //
//                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   //
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


contract MaA is ERC721Creator {
    constructor() ERC721Creator("MIKA animal ART", "MaA") {}
}

// File: contracts/manifold/ERC721Creator.sol



// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/// @author: manifold.xyz

import "@openzeppelin/contracts/proxy/Proxy.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/StorageSlot.sol";

contract ERC721Creator is Proxy {
    
    constructor(string memory name, string memory symbol) {
        assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256("eip1967.proxy.implementation")) - 1));
        StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = 0x5133522ea5A0494EcB83F26311A095DDD7a9D4b6;
        (bool success, ) = 0x5133522ea5A0494EcB83F26311A095DDD7a9D4b6.delegatecall(abi.encodeWithSignature("initialize(string,string)", name, symbol));
        require(success, "Initialization failed");
    }
        
    /**
     * @dev Storage slot with the address of the current implementation.
     * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /**
     * @dev Returns the current implementation address.
     */
     function implementation() public view returns (address) {
        return _implementation();
    }

    function _implementation() internal override view returns (address) {
        return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
    }    

}

// File: node_modules/@openzeppelin/contracts/proxy/Proxy.sol



// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (proxy/Proxy.sol)

pragma solidity ^0.8.0;

/**
 * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
 * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
 * be specified by overriding the virtual {_implementation} function.
 *
 * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a
 * different contract through the {_delegate} function.
 *
 * The success and return data of the delegated call will be returned back to the caller of the proxy.
 */
abstract contract Proxy {
    /**
     * @dev Delegates the current call to `implementation`.
     *
     * This function does not return to its internal call site, it will return directly to the external caller.
     */
    function _delegate(address implementation) internal virtual {
        assembly {
            // Copy msg.data. We take full control of memory in this inline assembly
            // block because it will not return to Solidity code. We overwrite the
            // Solidity scratch pad at memory position 0.
            calldatacopy(0, 0, calldatasize())

            // Call the implementation.
            // out and outsize are 0 because we don't know the size yet.
            let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)

            // Copy the returned data.
            returndatacopy(0, 0, returndatasize())

            switch result
            // delegatecall returns 0 on error.
            case 0 {
                revert(0, returndatasize())
            }
            default {
                return(0, returndatasize())
            }
        }
    }

    /**
     * @dev This is a virtual function that should be overridden so it returns the address to which the fallback function
     * and {_fallback} should delegate.
     */
    function _implementation() internal view virtual returns (address);

    /**
     * @dev Delegates the current call to the address returned by `_implementation()`.
     *
     * This function does not return to its internal call site, it will return directly to the external caller.
     */
    function _fallback() internal virtual {
        _beforeFallback();
        _delegate(_implementation());
    }

    /**
     * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other
     * function in the contract matches the call data.
     */
    fallback() external payable virtual {
        _fallback();
    }

    /**
     * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data
     * is empty.
     */
    receive() external payable virtual {
        _fallback();
    }

    /**
     * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`
     * call, or as part of the Solidity `fallback` or `receive` functions.
     *
     * If overridden should call `super._beforeFallback()`.
     */
    function _beforeFallback() internal virtual {}
}

// File: node_modules/@openzeppelin/contracts/utils/Address.sol



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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: node_modules/@openzeppelin/contracts/utils/StorageSlot.sol



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

pragma solidity ^0.8.0;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

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

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

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

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